Open Igorgro opened 2 years ago
I had this same problem.
In my case, OmniSharp was confused about which project in my folder structure to load. I had to Ctrl+Shift+P
and pick OmniSharp: Select Project
, and it allowed me to select my project (solution actually), and then these exceptions went away and I was able to see my hints again.
Your folder structure is obviously different, and I only see one project in your video, but I wonder if selecting your project manually via the actions I just mentioned might help.
You maybe shocked but uninstalling Todo Tree
solved it for me.
i had this issue since 1 year ago .
I get this in Razor. With and without useModernNet
You maybe shocked but uninstalling Todo Tree solved it for me.
Didn't solve it for me. Basically nothing is recognized. Happens only when there are multiple workspace folders and Razor project is not in the first workspace folder.
You maybe shocked but uninstalling
Todo Tree
solved it for me.
Did also solve my Problem. @Helius01 Thanks for sharing!
I need omnisharp for a c# script, which is not supported in the new language server as far as i can see, but i also experience crashes all the times as the others here, i have a plain vscode without any plugins.
I'm using omnisharp vscode extension and the omnisharp server crashes every 5-10 seconds with one the following errors:
or
If I enable inlay hints, one more similar error appears:
I cannot find the correlation between the source code I'm typing and these error and I'm not sure, is it a problem of vscode extension or omnisharp itself. I already had the similar issue before (https://github.com/OmniSharp/omnisharp-vscode/issues/5149), but now i've disabled inlay hins at all but still have tons of errors.
Technical details: Vscode 1.66.2 OmniSharp version: 1.38.2-net6.0 OS: Arch Linux
UPD. A small reproduce:
https://user-images.githubusercontent.com/22894169/165274347-8d829436-b44d-4ff5-88d7-50a97f1a48ba.mp4
It is just simple webapi project, where I'm editing a dto. When the file is saved, the problem is gone then it returns after some time.