-
Notifications
You must be signed in to change notification settings - Fork 426
Open
Description
From @cluo85 on December 21, 2015 12:44
The IntelliSense worked fine at the beginning when I started the VS code. Sometimes after I used it for a little while, The IntelliSense would lost.
I have two ways to fix this: One is to type the command "Restart Omnisharp" and I will get IntelliSense again. Most of time this way will work, But sometimes it won't. Another way is to close vs code and reopen it. This way worked every time.
I guess the IntelliSense lost usually happened when I write comments in Chinese. But sometimes it didn't happen. I'm not sure.
I'm using C# language. Windows 10. Newest version of Unity and VS code and dotbunny unity tool.
Copied from original issue: microsoft/vscode#1535
c0bra, martin-braun, Insirus, zelinDavid and yixiaoqingyuz
Activity
jrieken commentedon Dec 22, 2015
From @VinditCo on December 22, 2015 12:45
I think I have the same thing.
Omnisharp keeps restarting for me whilst I'm typing (every time I add a new line) - it's very annoying as the lines jump up and down as references are found. Makes VSCode pretty much unusable.
Any suggestions on how to debug this?
jrieken commentedon Dec 22, 2015
From @BazIdle on December 22, 2015 13:27
Can confirm the same issue with VSCode + C# + Unity. Omnisharp keeps restarting.
This is what I managed to get from embedded developer tools:
https://gist.github.com/BazIdle/df424cb5cd2b065a2618
("potentially unhandled rejected promise" and "Error: Canceled: Error: Canceled" are looping on every Omnisharp restart)
jrieken commentedon Dec 22, 2015
From @VinditCo on December 22, 2015 13:41
@BazIdle good find. Which Unity version are you on?
Figured a downgrade might fix it. I've tried to find previous versions of vscode for OSX with no joy. Any ideas where to find one?
(The builds on the Wiki are auto-trashed by OSX claiming they're corrupted - so I have to look elsewhere...)
jrieken commentedon Dec 22, 2015
From @BazIdle on December 22, 2015 13:46
@VinditCo 5.2.3f1
Are you, perchance, getting the same errors in Dev. Tools?
jrieken commentedon Dec 22, 2015
From @VinditCo on December 22, 2015 13:51
Looks like it ! Like 91 of Workbench causing an issue
jrieken commentedon Dec 22, 2015
From @VinditCo on December 22, 2015 13:53
After this and the disastrous Unity update I'm going to have a new rule: Don't download any software updates pushed during December.
All devs are on the egg-nog...
jrieken commentedon Dec 22, 2015
That stack trace is unhappy but won't be the cause of this issue. Can check your omnisharp log (Cmd+L, L) and paste it here?
jrieken commentedon Dec 22, 2015
From @cluo85 on December 22, 2015 14:20
Here is my omnisharp log. I don't know why there are some strange characters. I'm not using any Chinese characters in the directory names and project names. There are only Chinese characters in comments.
[INFO] Starting OmniSharp at 'd:\Work\AlienTown\AlienTown.sln'...
[INFO] Started OmniSharp from 'c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\jrieken.vscode-omnisharp\bin\omnisharp.cmd' with process id 15484...
[INFORMATION:OmniSharp.Startup] Omnisharp server running using stdio at location 'd:\Work\AlienTown' on host 4100.
[INFORMATION:OmniSharp.Dnx.DnxPaths] Using runtime 'C:\Users\Luochong.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta8'.
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] Scanning 'd:\Work\AlienTown' for DNX projects
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] No project.json based projects found
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Detecting projects in 'd:\Work\AlienTown\AlienTown.sln'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'd:\Work\AlienTown\Assembly-CSharp.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Using toolset 2.0 for d:\Work\AlienTown\Assembly-CSharp.csproj
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'd:\Work\AlienTown\Assembly-CSharp-Editor-firstpass.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Using toolset 2.0 for d:\Work\AlienTown\Assembly-CSharp-Editor-firstpass.csproj
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in 'd:\Work\AlienTown'.
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Could not find any CSX files
[INFORMATION:OmniSharp.Startup] Solution has finished loading
[ERROR:Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware] An unhandled exception has occurred: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
System.ArgumentOutOfRangeException: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
�� Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)
�� Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position)
�� OmniSharp.Roslyn.CSharp.Services.Intellisense.IntellisenseService.d__3.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.Endpoint.EndpointHandler
2.<HandleSingleRequest>d__18.MoveNext() --- �����쳣����һλ���ж�ջ���ٵ�ĩβ --- �� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) �� OmniSharp.Middleware.Endpoint.EndpointHandler
2.d__16.MoveNext()--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.EndpointMiddleware.d__7.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware.d__4.MoveNext()
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 32ms
[ERROR:Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware] An unhandled exception has occurred: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
System.ArgumentOutOfRangeException: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
�� Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)
�� Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position)
�� OmniSharp.Roslyn.CSharp.Services.Intellisense.IntellisenseService.d__3.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.Endpoint.EndpointHandler
2.<HandleSingleRequest>d__18.MoveNext() --- �����쳣����һλ���ж�ջ���ٵ�ĩβ --- �� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) �� OmniSharp.Middleware.Endpoint.EndpointHandler
2.d__16.MoveNext()--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.EndpointMiddleware.d__7.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware.d__4.MoveNext()
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 1ms
[ERROR:Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware] An unhandled exception has occurred: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
System.ArgumentOutOfRangeException: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
�� Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)
�� Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position)
�� OmniSharp.Roslyn.CSharp.Services.Intellisense.IntellisenseService.d__3.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.Endpoint.EndpointHandler
2.<HandleSingleRequest>d__18.MoveNext() --- �����쳣����һλ���ж�ջ���ٵ�ĩβ --- �� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) �� OmniSharp.Middleware.Endpoint.EndpointHandler
2.d__16.MoveNext()--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.EndpointMiddleware.d__7.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware.d__4.MoveNext()
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 1ms
[ERROR:Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware] An unhandled exception has occurred: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
System.ArgumentOutOfRangeException: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
�� Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)
�� Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position)
�� OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.d__2.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.Endpoint.EndpointHandler
2.<HandleSingleRequest>d__18.MoveNext() --- �����쳣����һλ���ж�ջ���ٵ�ĩβ --- �� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) �� OmniSharp.Middleware.Endpoint.EndpointHandler
2.d__16.MoveNext()--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.EndpointMiddleware.d__7.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware.d__4.MoveNext()
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /findusages: 500 28ms
[ERROR:Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware] An unhandled exception has occurred: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
System.ArgumentOutOfRangeException: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
������: index
�� Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)
�� Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position)
�� OmniSharp.Roslyn.CSharp.Services.Intellisense.IntellisenseService.d__3.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.Endpoint.EndpointHandler
2.<HandleSingleRequest>d__18.MoveNext() --- �����쳣����һλ���ж�ջ���ٵ�ĩβ --- �� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) �� OmniSharp.Middleware.Endpoint.EndpointHandler
2.d__16.MoveNext()--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� OmniSharp.Middleware.EndpointMiddleware.d__7.MoveNext()
--- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
�� System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
�� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
�� Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware.d__4.MoveNext()
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 1ms
[ERROR:Microsoft.AspNet.Diagnostics.ErrorHandlerMiddleware] An unhandled exception has occurred: ָ���IJ����ѳ�����Чֵ�ķ�Χ��
jrieken commentedon Dec 22, 2015
From @BazIdle on December 22, 2015 14:24
@jrieken here you go: https://gist.github.com/BazIdle/c1aae81f1fc6d6e0122d
(I copied only the error)
jrieken commentedon Dec 22, 2015
This seems to be an issue with omnisharp. Moving there and see what we can do
cluo85 commentedon Dec 22, 2015
By the way, my mono version is 4.2.1
VinditCo commentedon Dec 22, 2015
I'm using whichever mono comes with unity 3.5.1f. Version 2.6.5 I think ?
Will downgrading OnmniSharp || VSCode fix this?
willl commentedon Dec 22, 2015
@VinditCo Could you try a newer version of mono? Anything above 4.0.1 should be good. Also, what OS are you using?
12 remaining items
heyalistair commentedon Mar 10, 2016
@Figbash Thanks for the link! I'm having the same problem and this version works just fine.
Taugeshtu commentedon Apr 21, 2016
Just being vocal to let devs know of the spread of the issue.
Same here, omnisharp dies after some time on large (400+ files) project. Omnisharp restart helps sometimes; VSCode restart helps always.
Extensions version 0.3.7; VSCode version 1.0.0; Unity3D 5.3.4; Windows 8.
VinditCo commentedon Apr 21, 2016
It's still bugging out for me on any version of VSCode > 0.10.3. Unity 5.3.3, OSX... Any news on this?
kreso22 commentedon Jun 7, 2016
Still same problem with VSCode 1.2.0 & Omnisharp 0.3.3.
:(
VinditCo commentedon Jun 7, 2016
There's been more some discussion here : dotnet/vscode-csharp#269 (comment)
It seems to be something to do with large projects. Until someone is assigned to fix many of us are having to stick with 0.10.3
kreso22 commentedon Jun 17, 2016
@VinditCo I can confirm that it has nothing to do with project size. Intellisense works for me on 1 computer and not on another (both OSX, both same project).
Problem is it just shows 'Loading...' for 10 seconds or more, then it shows Intellisense. Every single time.
Also, I notice references are not shown.
c0bra commentedon Apr 20, 2017
Still seems to be an issue.
EarMaster commentedon Jul 11, 2017
I also have this issue. It works from time to time when I open a project, but shortly after Intellisense is just providing nonsense autocompletion.
romanovzky commentedon Nov 13, 2017
I still have this issue...
Borluse commentedon Dec 22, 2017
Me too, on both mac and win. Especially coding some playmaker or behavedesigner scrpit, intellisense does need some 20 or 30 seconds to show up. I guess it's due to dlls.. Because other plugins we used in Unity3d are in form of C# scripts, such as NGUI. It works very well.
pharazone commentedon May 7, 2018
I have this issue too.WIN10,Unity,VSCode