No IntelliPrompt error for unknown types

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 4 years ago by Sergey Vlasov
Version: 21.1.1
Avatar

There is currently no IntelliPrompt errors when the type is not known in C# or VB file like

UnknownTypeXYZ a;

Is this a SyntaxEditor limitation?

Comments (1)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Sergey,

The .NET Languages Add-on contains a parser that will report syntax errors but it does not have a compiler in it, which would be necessary to detect unknown types.  You could possibly build a custom IParser language service that calls our default IParser implementation (like CSharpParser), and also calls into a third-party compiler to detect things like this and report them in the returned parse data's Errors collection, part of the IParseErrorProvider interface for parse data.  That would allow squiggle lines to show for anything the compiler detected.


Actipro Software Support

The latest build of this product (v24.1.3) was released 28 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.