-
Notifications
You must be signed in to change notification settings - Fork 675
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
OmniSharp initialization error in VSCode: OmniSharp.MSBuild.MSBuildProjectSystem #1580
Comments
@mattcotton-justgiving: Could you provide the SLN file? |
|
Thanks for the help! It looks like the solution parser fails because it expects "ProjectSection" to be indented. |
…oject section This exposes the bug reported at dotnet/vscode-csharp#1580.
…oject section This exposes the bug reported at dotnet/vscode-csharp#1580.
I've just fixed this in OmniSharp. Unfortunately, the fix won't make the next release of C# for VS Code (1.11), but you can expect to see it fixed in the release after that (1.12). Until then, you should be able to workaround the problem by indenting the following lines in your SLN file:
|
Environment data
dotnet --info
output:VS Code version: Version 1.13.1 (1.13.1)
C# Extension version: 1.10.0
Steps to reproduce
Open VS code at folder containing .sln file.
Expected behavior
Should read .sln file and then recognise/load all contained .csproj files.
Should be able to navigate from a class reference e.g. "var o = new MyClass();", to its declaration.
Actual behavior
Produces errors when parsing .sln file (attached).
Can't navigate from class reference to class declaration.
Attached OmniSharp output
The text was updated successfully, but these errors were encountered: