-
Notifications
You must be signed in to change notification settings - Fork 685
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
Missing predefined types and namespaces #2295
Comments
@rchande No, it's solely targeted to net462. |
Are there any errors or warnings in your OmniSharp Log? |
Nothing but info messages. Path names changed to protect the innocent.
|
@coldacid And just to confirm, you are able to |
@rchande That is correct. |
I encounter the same bug when using vscode version 1.23.1 to open coreapp2.0 project. However, opening a netstandard2.0 project doesn't trigger this bug. |
I just remembered that one of the referenced projects is multi-targeted, but not my main project, in case that makes a difference. |
That may make a difference. I suspect this is the same issue as #2095. Is there any chance that you'd be willing to share your project with us to reproduce the issue? |
It's not my place to make the decision to share, but I'll try and put together a repro case project when I get home tonight. |
That would be fantastic. Thanks! |
Here's the repro. It looks like it might very well be the reference to the multi-targeted external project; commenting out the When trying the repro please make sure to clone the external projects as described in the readme file inside the zip. |
Thanks very much for the repro. I can definitely reproduce the issue. This will be very helpful. |
Again, thanks very much for the repro. I have a fix prototyped. |
The fix for this has been pushed into OmniSharp. You should be able to get the fix by setting the |
Thanks! |
Environment data
dotnet --info
output:VS Code version: 1.23.1
C# Extension version: 1.15.1 (OmniSharp 1.30.0)
Steps to reproduce
After opening an existing project, all source files in the project are flagged with these errors (types and namespaces can be treated as wildcards as all predefined types, top-level namespaces, and types imported from referenced packages or the framework itself are error-flagged):
Per issue #1855 I do have a valid and up to date install of Visual Studio 2017 Community as selected by OmniSharp:
I've confirmed that the path to MSBuild for VS 2017 exists and contains a functional install of MSBuild.
Expected behavior
Predefined types, and both namespaces and types from referenced packages would not be marked as errors.
Actual behavior
Red squigglies. Red squigglies everywhere. And every source file in the project shown in red in the workspace explorer pane.
The text was updated successfully, but these errors were encountered: