-
Notifications
You must be signed in to change notification settings - Fork 686
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
Intellisense doesn't work for referenced projects in .net core outside of project directory #2445
Comments
@rich-ware I'm having trouble reproducing this with small test projects. Could you share your omnisharp log and a more specific description of your directory structure? |
+1. VS Code is unusable for C# with Omnisharp in its current state on my machine - red squigglies everywhere, accompanied by the popup error:
Executing
I'd love to share the full log I get when I restart Omnisharp in VS Code but it's 10608 lines. This is everything to the first *** Request*** line:
|
@goobering it looks like you ran your dotnet --info command from inside a WSL prompt or something--your OS is listed as Ubuntu but your logs contains Windows file paths. |
I did indeed run VS Community 2017 is reporting that it's at 15.7.6, last update 6th August 2018, no updates pending. I'm open to suggestions if you have a link to something more up to date? |
@goobering Do you have VB projects in your solution? I'm looking at the
That appear in your log. That's not something I've seen before. |
Certainly not on purpose - that particular project was me screwing around with the Razor Pages tutorial here. I didn't create any VB content. It doesn't seem to make any difference what the project structure is - I can start a fresh, empty project and achieve the same results, i.e. the dotnet tooling behaves as normal, but the editor reports that it can't find any external namespaces. |
Deep joy. I followed this report, ran |
The root issue appears to be resolved. |
Environment data
dotnet --info
output:.NET Core SDK (reflecting any global.json):
Version: 2.1.302
Commit: 9048955601
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17134
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.302\
Host (useful for support):
Version: 2.1.2
Commit: 811c3ce6c0
.NET Core SDKs installed:
1.1.9 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.302 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
VS Code version: 1.25.1
C# Extension version: 1.15.2
Steps to reproduce
Reference a project outside of current folder of a project.
Expected behavior
The intellisense will NOT show red squiggly lines for all references. Including Microsoft references.
Actual behavior
The intellisense shows red squiggly lines for all references. This includes Microsoft references.
The text was updated successfully, but these errors were encountered: