-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidOperationException: Unexpected null #2054
Comments
this is interesting, this line hasn't changed in 2 years - however the underlying Roslyn code has. |
Unfortunately no, it's a very big project. |
It seems to happen when I control-click a class that is not in the source code, except for classes that are in the .NET SDK (3.1). |
I see now, this happens when you call e.g. "find all references" on something that's not a symbol e.g. "public" keyword. |
For me it happens with symbols too (e.g. |
I'm having the same issue
|
This happens to me and is 100% reproducible using the version v1.23.8. |
Same here, also getting it. |
@ctooqam I had already tried this and without success. But, after your comment I tried harder, and downgrading to version And a side note: I realized after the downgrade that this also resolved an intermittent build fail that I was having in a project that uses Roslyn source generator unoplatform/uno#4924 |
Downgrading to 1.23.7 and following this issue. Causing problems for me as well. |
Not sure how to downgrade via VS Code - would appreciate some help with the right setting(s) if anyone could please 🙏 |
Go to the extensions and click on: After that VS Code will list the versions so you can choose one to downgrade. "extensions.autoUpdate": false But this has a serious adverse effect for all your other extensions, you will have to check for updates manually. |
@microhobby thanks for the response! That does downgrade the VS Code plugin, but it doesn't affect the version of Omnisharp that the plugin uses. The latter seems to be the culprit for this particular issue. Any guidance there? |
Thanks for getting on this @filipw!!! 🎉 Do you know when we can expect to see a new release with this fix in it? |
I keep seeing this error in the VS Code output pane:
JSON:
The text was updated successfully, but these errors were encountered: