Ton of errors in Visual Basic projects
Hello,
I am currently evaluating rider but with visual basic projects I encounter thousands of errors that are not really errors they are just marked as beeing one, the solution builds and runs fine.
What I found so far:
- it doesn't understand that when not using auto-properties there is no local variable generated and marks the manually created ones as ambiguous:
Private _customers As IEnumerable(of CustomerDto)
Private ReadOnly Property Customers As IEnumerable(of CustomerDto)
Get
If _customers Is Nothing Then
…..
End Get
End Property
Error: Ambigious invocation, Member with the same name or signature is already declared in Class '…'
- it doesn't seem to be able to infer parameter types when linq expressions are involved: Parameter → fieldList As IEnumerable(Of Expression(Of Func(Of CustomerDto, Object))), usage → {Function(x) x.Id, Function(x) x.Name}, error: Cannot resolve symbol ‘Id’, Cannot resolve symbol ‘Name’
- it doesn't seem to be able to understand linq queries like “from customer As CustomerDto In Customers Where…” (Cannot resolve symbol ‘Select’, In expected, EndIf or End If expected, Canncot resolve symbol ‘Where’ etc)
That's where I stopped.
I already cleared the cache and restarted but the same errors drip back in after some time.
I also noticed that the backend service is running at ~40% CPU but that's another topic I guess.
My question would be is there any way to get the same experience/analyzer as in Visual Studio/not having things marked as error when they are valid?
Please sign in to leave a comment.
I think I found the cause: JetBrains Rider supports Visual Basic up to VB 14 and partially VB 15.
Didn't see that before and was under the impression VB is fully supported, my bad.