Skip to content
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 working for few seconds #970

Closed
ammarsabir26 opened this issue Nov 21, 2016 · 9 comments
Closed

Intellisense working for few seconds #970

ammarsabir26 opened this issue Nov 21, 2016 · 9 comments

Comments

@ammarsabir26
Copy link

Environment data

dotnet --info output:
VS Code version:
C# Extension version:
working
not working

Steps to reproduce

As soon as i start to type some word , intellisense stops working and then after few seconds it appears again. This behaviour is happening continously .
As you can see in the attached screenshots , Intellisense is working and i can see the references but in the second screen shot(taken few seconds after 1st screenshot), the intellisense has stopped working and would come after some delay. Kindly fix this issue

Expected behavior

Intellisense should work without any delay

Actual behavior

@wenchengye
Copy link

I've the same problem after i updated C# extension, and it also updated omnisharp.
the follow log show when i open VScode. the problem maybe relative with it.

[ERROR:OmniSharp.Dnx.DnxPaths] The specified runtime path 'default' does not exist. Searched locations
/Users/overspark/.dnx/runtimes/dnx-mono.default
/Users/overspark/.dnx/runtimes/kre-mono.default
/Users/overspark/.dnx/packages/KRE-Mono.default
/Users/overspark/.k/runtimes/dnx-mono.default
/Users/overspark/.k/runtimes/kre-mono.default
/Users/overspark/.k/packages/KRE-Mono.default
/Users/overspark/.kre/runtimes/dnx-mono.default
/Users/overspark/.kre/runtimes/kre-mono.default
/Users/overspark/.kre/packages/KRE-Mono.default.

trying to fix it.

@ammarsabir26
Copy link
Author

i found exactly the same error but my c# extension is already updated .
Actually this problem occurred after updating c# extension

On Mon, Nov 21, 2016 at 2:32 PM, overspark [email protected] wrote:

I've the same problem after i updated C# extension, and it also updated
omnisharp.
the follow log show when i open VScode. the problem maybe relative with it.

[ERROR:OmniSharp.Dnx.DnxPaths] The specified runtime path 'default' does
not exist. Searched locations
/Users/overspark/.dnx/runtimes/dnx-mono.default
/Users/overspark/.dnx/runtimes/kre-mono.default
/Users/overspark/.dnx/packages/KRE-Mono.default
/Users/overspark/.k/runtimes/dnx-mono.default
/Users/overspark/.k/runtimes/kre-mono.default
/Users/overspark/.k/packages/KRE-Mono.default
/Users/overspark/.kre/runtimes/dnx-mono.default
/Users/overspark/.kre/runtimes/kre-mono.default
/Users/overspark/.kre/packages/KRE-Mono.default.

trying to fix it.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#970 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL-Yl4rz22FtccFzI6MVsCcrUwUcteAYks5rAWU2gaJpZM4K3zsM
.

@HawkenKing
Copy link

I've had this problem for a while...

@ammarsabir26
Copy link
Author

so were you able to resolve it?

On Mon, Nov 21, 2016 at 3:47 PM, Hawken [email protected] wrote:

I've had this problem for a while...


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#970 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL-YlxyDspybGDC2xs5sbY1gZ8ZKMQo4ks5rAXbWgaJpZM4K3zsM
.

@DustinCampbell
Copy link
Member

@wenchengye: That would only happen with an old, old version of the C# extension -- possibly the "Legacy C# Extension". You might need to clean out old versions of the C# extension and install the latest.

@ammarsabir26: What version of VS Code and the C# extension are you using? Could you post your full OmniSharp log when it happens? I suspect OmniSharp is restarting.

@wenchengye
Copy link

@DustinCampbell: Thank you! I updated my C# extension. It worked much better now, except two little things. First, the "references" annotation still show up more slowly than before. Second, it show "0 projects" after the "fire" icon. Here is my OmniSharp log.

Starting OmniSharp server at 11/22/2016, 5:01:43 AM
Target: /Users/overspark/code/gameClient/gameClient-csharp.sln

OmniSharp server started wth Mono
Path: /Users/overspark/.vscode/extensions/ms-vscode.csharp-1.5.3/bin/run
PID: 10426

OmniSharp: -s /Users/overspark/code/gameClient/gameClient-csharp.sln --hostPID 10398 --> stdio DotNet:enablePackageRestore=false --encoding utf-8
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/Users/overspark/code/gameClient' on host 10398."},"Seq":1,"Type":"event"}
Discovered Mono file path: /usr/local/bin/mono
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in /Users/overspark/code/gameClient
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: False
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp#MSBuild] Detecting projects in '/Users/overspark/code/gameClient/gameClient-csharp.sln'.
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Users/overspark/code/gameClient/Assembly-CSharp-firstpass-vs.csproj'.
Resolved symbolic link for Mono file path: /usr/local/Cellar/mono/4.6.1.5/bin/mono-sgen
[INFORMATION:OmniSharp#ProjectFileInfo] Using TargetFrameworkRootPath: /usr/local/Cellar/mono/4.6.1.5/lib/mono/xbuild-frameworks
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[INFORMATION:OmniSharp#MSBuild] Add project: /Users/overspark/code/gameClient/Assembly-CSharp-firstpass-vs.csproj
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Users/overspark/code/gameClient/Assembly-CSharp-vs.csproj'.
[INFORMATION:OmniSharp#ProjectFileInfo] Using TargetFrameworkRootPath: /usr/local/Cellar/mono/4.6.1.5/lib/mono/xbuild-frameworks
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[INFORMATION:OmniSharp#MSBuild] Add project: /Users/overspark/code/gameClient/Assembly-CSharp-vs.csproj
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Users/overspark/code/gameClient/Assembly-CSharp-Editor-vs.csproj'.
[INFORMATION:OmniSharp#ProjectFileInfo] Using TargetFrameworkRootPath: /usr/local/Cellar/mono/4.6.1.5/lib/mono/xbuild-frameworks
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[INFORMATION:OmniSharp#MSBuild] Add project: /Users/overspark/code/gameClient/Assembly-CSharp-Editor-vs.csproj
[INFORMATION:OmniSharp#MSBuild] Update project: Assembly-CSharp-firstpass-vs
[INFORMATION:OmniSharp#MSBuild] Update project: Assembly-CSharp-vs
[INFORMATION:OmniSharp#MSBuild] Update project: Assembly-CSharp-Editor-vs
[INFORMATION:OmniSharp.Startup] Configuration finished.
[ERROR:Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware] An unhandled exception has occurred: The operation was canceled.
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /gotoDefinition: 500 2478ms

@DustinCampbell
Copy link
Member

The "0 projects" is a known issue: #835.

The "references" annotation may show up more slowly than before because we're no longer blocking on the OmniSharp for each request. Instead, we process more requests in parallel. I'll take a look at improving that in the future. However, it should be more responsive in general.

@wenchengye
Copy link

@DustinCampbell thank you for your response, it works well now.

@DustinCampbell
Copy link
Member

@ammarsabir26: What version of VS Code and the C# extension are you using? Could you post your full OmniSharp log when it happens? I suspect OmniSharp is restarting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants