-
Notifications
You must be signed in to change notification settings - Fork 676
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 - Code suggestions are not working #4065
Comments
I have tried to remove all settings of VSCode and reinstall it completely. I also have tried to run it with another Windows account. The result is always the same: The intellisense suggestions are not working, the rest works fine. |
I'll join and say that mine has been spotty for the last few weeks as well. I've found that killing VSCode and coming back fixes the issue most of the time, if that offers any solace. Haven't been able to figure out steps to reproduce 100% of the time, either - otherwise I'd offer more info to support the bug. |
A consistentt repro here would be needed to fix this. |
In my case, it does not work at all. My repro is starting VSCode and start coding. |
@Patrick-vianexus Can you set the "omnisharp.LoggingLevel" to "trace, restart, and post your OmniSharp log? Maybe that will give us additional details to go off of. |
I've the same problem with version 1.23.2. When installing 1.23.1 code completion works as it should. |
@ssuraci when running OmniSharp with loggin leve = trace I'm getting this error: Completions requested |
@PiterGoCompany in #4072 I get no error and CPU always at 100% for OmniSharp process ... so it seems there are two different bugs |
I am using VS Code with Cake and after upgrading to 1.23.2 IntelliSense stopped working. Rollback to version 1.23.1 fixed the problem. |
Cake is not related to the problem listed in this issue. |
I can confirm I have the exact same problem: build works, it shows console errors, etc, except for the autocomplete... which shows only word completations :( Here is my dotnet --info:SDK do .NET Core (refletindo qualquer global.json): Ambiente de runtime: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: To install additional .NET Core runtimes or SDKs: And here is my OmniSharp Log (trace level) from a brand new console app: OmniSharp server started. Assembly loaded: OmniSharp.Cake No solution files found in 'd:\Projetos\Labs\consoleapp' Any help would be greatly appreciated and If any additional info is required please let me know. |
@joaopaschoal I've the same problem and someone is already trying to solve it. Look here. |
@PiterGoCompany , it looks like downgrading to previous version wasn't working for me because my OmniSharp was choosing the global VS2019 MSBuild instead of OmniSharp's one. After renaming the MSBuild folder in "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" to "MSBuild.disabled" downgrading actually solved. Thank you so much! :) |
I have tried everything, also the idea from joaopaschoal, but sadly my Code suggestions are still not working :( Attached you find the error log. It appears always when I try to open the list of code suggestions by CTRL+Space.
|
@Patrick-vianexus , mine has stopped working and I'm now receiving this exact same message as you, even these GAC versions... unfortunately I'm in a rush now, but I'll try to work around this later. Any news please let me know. |
Thanks a lot. I downgraded the C# extension of VSCode manually to v1.21.17 by downloading the VSIX today. With that old version it works fine. It can't be a solution forever, because maybe newer C# versions would not work. But for now it's great. |
For me it works for files that were created inside VS Code. After restarting VS Code the extension seems to not work again however. |
Same with me, if i start a new project it works just fine, but if i restart it, it doesn't "find document for file" |
Any progress on this? It's still not running and I don't know what should I do. I don't want to reinstall Windows. |
It has been fixed in the latest release |
Thanks, filipw. I can confirm it. It works fine now. |
Environment data
dotnet --info
output:.NET Core SDK (gemäß "global.json"):
Version: 3.1.200
Commit: c5123d973b
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.200\
Host (useful for support):
Version: 3.1.2
Commit: 916b5cba26
.NET Core SDKs installed:
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.403 [C:\Program Files\dotnet\sdk]
2.1.507 [C:\Program Files\dotnet\sdk]
2.1.509 [C:\Program Files\dotnet\sdk]
2.1.512 [C:\Program Files\dotnet\sdk]
2.2.203 [C:\Program Files\dotnet\sdk]
3.1.101 [C:\Program Files\dotnet\sdk]
3.1.200 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
VS Code version: 1.49.0 (User)
C# Extension version: 1.23.2
OmniSharp log
Starting OmniSharp server at 14.9.2020, 17:32:46
Target: c:\Develop\ElectronNet
OmniSharp server started.
Path: c:\Users\p. folster.KH.vscode\extensions\ms-dotnettools.csharp-1.23.2.omnisharp\1.37.1\OmniSharp.exe
PID: 30048
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 4 MSBuild instance(s)
1: Visual Studio Professional 2019 16.5.29920.165 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin"
2: Visual Studio Professional 2017 15.9.28307.1064 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
3: Visual Studio Build Tools 2017 15.9.28307.1064 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin"
4: StandAlone 16.8.0 - "c:\Users\p. folster.KH.vscode\extensions\ms-dotnettools.csharp-1.23.2.omnisharp\1.37.1.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2019 16.5.29920.165 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Develop\ElectronNet'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in 'c:\Develop\ElectronNet'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Develop\ElectronNet\ElectronNet.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Develop\ElectronNet'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Develop\ElectronNet\ElectronNet.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Develop\ElectronNet' on host 28864.
info: OmniSharp.OmniSharpWorkspace
Miscellaneous file: c:\Develop\ElectronNet\Startup.cs added to workspace
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Develop\ElectronNet\ElectronNet.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\Develop\ElectronNet\ElectronNet.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: ElectronNet
Steps to reproduce
Expected behavior
The intellisense menu shall show all available C# methods, properties, variables and so on.
Actual behavior
The intellisense menu shows only some "word completations". It looks like the C# extension is not enabled.
But the extension is working. There are syntax errors and so on shown.
The text was updated successfully, but these errors were encountered: