dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 674 forks source link

Real Time Compile and Error reporting not working #2578

Open RMacfarlane opened 6 years ago

RMacfarlane commented 6 years ago

From @motor75 on October 2, 2018 16:22

Issue Type: Bug

It seems that since I have introduced solution files (.sln) into my projects, the red squiggles that show errors as you're coding has stopped altogether. I have multiple projects in which this is occurring. It had been working, but seems to have stopped since I put existing projects in solutions. I had created an ASP.NET Core Web API project and wanted to add a Unit Test project to it - thus the need for a solution file. However, that seems to be when this issue started. I have not yet tried uninstalling and reinstalling Visual Studio Code because I wanted to report the issue and have it be replicated so that a fix can be made.

VS Code version: Code 1.27.2 (f46c4c469d6e6d8c46f268d1553c5dc4b475840f, 2018-09-12T16:17:45.060Z) OS version: Windows_NT x64 10.0.15063

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz (2 x 2600)| |GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled| |Memory (System)|8.00GB (3.99GB free)| |Process Argv|C:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\Code.exe| |Screen Reader|no| |VM|100%|
Extensions (2) Extension|Author (truncated)|Version ---|---|--- vscode-nuget-package-manager|jmr|1.1.6 csharp|ms-|1.16.1

Copied from original issue: Microsoft/vscode#59836

RMacfarlane commented 6 years ago

From @motor75 on October 2, 2018 16:35

Additional details - in the Problems window, I can see the errors and when I double click on them, it opens the same file in a new editor tab (now the same file is opened twice) and shows the red underline under the code in question.

RMacfarlane commented 6 years ago

@motor75 In the Problems panel, what's listed as the source of the errors? The csharp extension?

RMacfarlane commented 6 years ago

From @motor75 on October 2, 2018 17:29

@RMacfarlane - I restarted VS Code and all is working now...but eventually this will start happening again and I'll let you know....but when it was happening earlier (from my previous post), it showed the same file as the source separately - as if it was seeing two copies of it when only one exists. Very strange. I thought maybe I have some circular logic in the solution file or in my unit test project file - but this is not the case. I have two projects; the solution has each of them only once and the unit test project references the web api project only once.

RMacfarlane commented 6 years ago

From @motor75 on October 4, 2018 15:30

@RMacfarlane - it took a day but I'm back to nothing showing compile errors. See attached screen shot... image

Here's my Problems window....no problems showing... image

Also it seems debugging via XUnit no longer works in this state... image

There is this error in the Log window which is most likely the reason that this is occurring...and I see a bunch of these in the last 3 or 4 minutes in the same window (they're all the same error repeated over and over):

[2018-10-04 11:27:12.412] [renderer1] [error] Pending request cancelled: /codecheck: Error: Pending request cancelled: /codecheck at RequestQueue.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\requestQueue.js:45:29) at RequestQueueCollection.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\requestQueue.js:115:15) at token.onCancellationRequested (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:394:40) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:917) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:130) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:854) at DiagnosticsProvider._validateProject (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\features\diagnosticsProvider.js:188:37) at DiagnosticsProvider._onDocumentAddOrChange (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\features\diagnosticsProvider.js:137:18) at DiagnosticsProvider._onDidChangeActiveTextEditor (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\features\diagnosticsProvider.js:131:18) at DiagnosticsProvider.vscode.window.onDidChangeActiveTextEditor.event (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\features\diagnosticsProvider.js:112:74) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:937) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:786:954 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:917) at e.$acceptDocumentsAndEditorsDelta (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:785:159) at e._doInvokeHandler (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:681:309) at e._invokeHandler (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:681:27) at e._receiveRequest (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:679:802) at e._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:678:993) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:677:791 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:597 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:917) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:164:787) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:164:1006) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20)

RMacfarlane commented 6 years ago

From @motor75 on October 4, 2018 15:34

It appears that this all started with this error (which is different from what I put in my previous post):

[2018-10-04 11:19:06.920] [renderer1] [error] This socket is closed: Error: This socket is closed at Socket._writeGeneric (net.js:726:18) at Socket._write (net.js:786:8) at doWrite (_stream_writable.js:387:12) at writeOrBuffer (_stream_writable.js:373:5) at Socket.Writable.write (_stream_writable.js:290:11) at Socket.write (net.js:704:40) at OmniSharpServer._makeRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:507:35) at RequestQueue.OmniSharpServer._requestQueue.requestQueue_1.RequestQueueCollection.request [as _makeRequest] (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:92:109) at RequestQueue.processPending (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\requestQueue.js:73:29) at RequestQueueCollection.drain (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\requestQueue.js:137:33) at RequestQueueCollection.enqueue (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\requestQueue.js:107:14) at Promise (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:390:36) at new Promise () at OmniSharpServer. (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:382:27) at Generator.next () at C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:11:71 at new Promise () at awaiter (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:7:12) at OmniSharpServer.makeRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\server.js:376:16) at Object. (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\utils.js:174:23) at Generator.next () at C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\utils.js:11:71 at new Promise () at awaiter (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\utils.js:7:12) at Object.debugTestStop (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\omnisharp\utils.js:173:12) at DebugEventListener.onDebuggingStopped (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\features\dotnetTest.js:429:21) at Socket.socket.on (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.1\out\src\features\dotnetTest.js:364:34) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20)

akshita31 commented 6 years ago

@motor75 Could you post the output from your OmniSharp log(View--> Output--> OmniSharp log)

motor75 commented 6 years ago

@akshita31 I have come across this issue again...except now it is causing XUnit to fail (I can't debug or run any tests). Below is the output from the Log(Window) and also from the OmniSharp Log that you requested. Also, I'm seeing this error in the log... [2018-10-16 12:38:32.585] [renderer1] [error] An unknown error occurred. Please consult the log for more details. ...where is this "log" that this error message refers to? I looked thru all the output windows and the only one showing any errors is Log(Window) that I pasted below. If there's somewhere else I should look, let me know.

OmniSharp Log: (there's no errors in the entire log, but here's the most recent entries)

    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-press-ganey\PressGaney\PressGaney.csproj
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-press-ganey\PressGaney\PressGaney.csproj'.
    Update project: PressGaney
    read: {"MessageType":"TestSession.Connected","Payload":null}
    read: {"MessageType":"ProtocolVersion","Payload":1}
    Debug session started.

Log(Window): [2018-10-16 12:38:21.710] [renderer1] [error] This socket has been ended by the other party: Error: This socket has been ended by the other party at Socket.writeAfterFIN [as write] (net.js:351:12) at OmniSharpServer._makeRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:511:35) at RequestQueue.OmniSharpServer._requestQueue.requestQueue_1.RequestQueueCollection.request [as _makeRequest] (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:93:109) at RequestQueue.processPending (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:73:29) at RequestQueueCollection.drain (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:134:31) at RequestQueueCollection.enqueue (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:107:14) at Promise (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:391:36) at new Promise () at OmniSharpServer. (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:383:27) at Generator.next () at C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:11:71 at new Promise () at awaiter (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:7:12) at OmniSharpServer.makeRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:377:16) at Object. (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\utils.js:120:23) at Generator.next () at C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\utils.js:11:71 at new Promise () at awaiter (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\utils.js:7:12) at Object.typeLookup (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\utils.js:119:12) at OmniSharpHoverProvider. (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\hoverProvider.js:25:32) at Generator.next () at C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\hoverProvider.js:11:71 at new Promise () at __awaiter (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\hoverProvider.js:7:12) at OmniSharpHoverProvider.provideHover (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\hoverProvider.js:22:16) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:500:127 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:108:368 at new n.Class.derive._oncancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:85:776) at Object.t.asThenable (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:108:333) at e.provideHover (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:500:86) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:514:826 at e._withAdapter (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:512:91) at e.$provideHover (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:514:788) at t._doInvokeHandler (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:888) at t._invokeHandler (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:554) at t._receiveRequest (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:60) at t._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:59) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20) [2018-10-16 12:38:32.585] [renderer1] [error] An unknown error occurred. Please consult the log for more details. [2018-10-16 12:38:33.415] [renderer1] [error] Pending request cancelled: /codecheck: Error: Pending request cancelled: /codecheck at RequestQueue.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:45:29) at RequestQueueCollection.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:115:15) at token.onCancellationRequested (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:395:40) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:331) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:107:51) at DiagnosticsProvider._validateProject (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\diagnosticsProvider.js:201:37) at DiagnosticsProvider._onDocumentAddOrChange (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\diagnosticsProvider.js:151:14) at DiagnosticsProvider._onDidChangeActiveTextEditor (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\diagnosticsProvider.js:143:18) at DiagnosticsProvider.vscode.window.onDidChangeActiveTextEditor.event (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\features\diagnosticsProvider.js:113:74) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:516) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:588:237 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at e.$acceptDocumentsAndEditorsDelta (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:488:823) at t._doInvokeHandler (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:888) at t._invokeHandler (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:554) at t._receiveRequest (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:126) at t._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:59) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20) [2018-10-16 12:38:33.986] [renderer1] [error] Pending request cancelled: /typelookup: Error: Pending request cancelled: /typelookup at RequestQueue.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:45:29) at RequestQueueCollection.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:115:15) at token.onCancellationRequested (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:395:40) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:331) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:107:51) at Object.l (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:104) at t._receiveCancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:864) at t._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:387) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20) [2018-10-16 12:38:36.441] [renderer1] [error] Pending request cancelled: /typelookup: Error: Pending request cancelled: /typelookup at RequestQueue.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:45:29) at RequestQueueCollection.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:115:15) at token.onCancellationRequested (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:395:40) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:331) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:107:51) at Object.l (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:104) at t._receiveCancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:864) at t._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:387) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20) [2018-10-16 12:38:53.158] [renderer1] [error] Pending request cancelled: /typelookup: Error: Pending request cancelled: /typelookup at RequestQueue.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:45:29) at RequestQueueCollection.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:115:15) at token.onCancellationRequested (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:395:40) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:331) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:107:51) at Object.l (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:104) at t._receiveCancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:864) at t._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:387) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20) [2018-10-16 12:38:55.475] [renderer1] [error] Pending request cancelled: /typelookup: Error: Pending request cancelled: /typelookup at RequestQueue.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:45:29) at RequestQueueCollection.cancelRequest (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\requestQueue.js:115:15) at token.onCancellationRequested (C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2\out\src\omnisharp\server.js:395:40) at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:331) at e.cancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:107:51) at Object.l (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:104) at t._receiveCancel (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:864) at t._receiveOneMessage (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:387) at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926 at c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138 at e.fire (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496) at a (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213) at Socket._socketDataListener (c:\Users\moserk\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20)

akshita31 commented 6 years ago

@motor75 It seems that the OmniSharp process is crashing for some reason, due to which you are losing the intellisense. We have seen this issue in Mac/Linux , but this is the first time the error reproduces on Windows. Can you provide a minimum repro project that would help us debug the issue.

Also can you set, Omnisharp.logginglevel--> Debug and then "Restart OmniSharp" and then paste the output from omnisharp log when the crash happens.

motor75 commented 6 years ago

@akshita31 The projects that I'm working on contains confidential information that I would not be able to share. However, I have set the logging level to debug and will post the Omnisharp logs when the issue reoccurs. Thanks!

motor75 commented 6 years ago

@akshita31 The error has reproduced itself. I have attached the log file - if you open it up, near the top the issue starts at line 316 (around 16:28 10-19-2018). Below I pasted what's showing in the OmniSharp log (as you can see, there's no errors).

Just FYI - this is happening on the 3 projects/solutions that I work on - so I don't think this is a problem with the projects.

Starting OmniSharp server at 10/19/2018, 3:01:32 PM Target: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.sln

OmniSharp server started. Path: C:\Users\moserk.vscode\extensions\ms-vscode.csharp-1.16.2.omnisharp\1.32.5\OmniSharp.exe PID: 2644

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 2 MSBuild instance(s)
        1: Visual Studio Enterprise 2017 15.7.27703.2018 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin"
        2: StandAlone 15.0 - "C:\Users\moserk\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild\15.0\Bin"
    Registered MSBuild instance: Visual Studio Enterprise 2017 15.7.27703.2018 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin"
    Detecting Cake files in 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    Detecting projects in 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.sln'.
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Detecting CSX files in 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Configuration finished.
    Omnisharp server running using Stdio at location 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm' on host 8700.
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'.
    Adding project 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'.
    Adding project 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Update project: cdmrest
    Update project: cdmrest.tests
    Applying code action: using Microsoft.Extensions.Configuration;
    Applying code action: using CDMRest.Controllers;
    Applying code action: using Moq;
    Applying code action: using Microsoft.Extensions.Logging;
    Applying code action: using CDMRest.Repositories;
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'.
    Update project: cdmrest.tests
    Applying code action: using Microsoft.AspNetCore.Mvc;
    Applying code action: using System.Net;
    Applying code action: using Microsoft.AspNetCore.Http;
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'.
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'.
    Update project: cdmrest.tests
    Update project: cdmrest
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'.
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest.tests\cdmrest.tests.csproj'.
    Update project: cdmrest
    Update project: cdmrest.tests
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'.
    Update project: cdmrest
    read: {"MessageType":"TestSession.Connected","Payload":null}
    read: {"MessageType":"ProtocolVersion","Payload":1}
    Debug session started.
    Debug session ended.
    Queue project update for 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'
    Loading project: c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj
    read: {"MessageType":"TestSession.Connected","Payload":null}
    read: {"MessageType":"ProtocolVersion","Payload":1}
    Debug session started.
    Successfully loaded project file 'c:\Users\moserk\Documents\GitHub\CDM .NET Core\eti-cdm\cdmrest\cdmrest.csproj'.
    Update project: cdmrest

omnisharp_errors.txt

akshita31 commented 6 years ago

@motor75 Did you set omnisharp.loggingLevel --> Debug ?

motor75 commented 6 years ago

I had only the user setting set to debug; workspace was set to informational. I set both to debug as I assume that the workspace setting overrode the user setting (although that isn't entirely clear on the settings U/I).

motor75 commented 6 years ago

@akshita31 The issue has come up again - I attached the log (Window) output and the Omnisharp Log output. Let me know if you need anything further from me. Thanks! omnisharp_errors.txt [Uploading omnisharp_log.txt…]()

akshita31 commented 5 years ago

@motor75 Are you working with the latest version of the extension ?

motor75 commented 5 years ago

@akshita31 - I am on 1.17.1. This appears to be the latest, no?

motor75 commented 5 years ago

@akshita31 - I'm back to getting errors in the logs with real time compiling and error reporting not working. I get no intellisence either. I completely uninstalled Omnisharp, deleted the extensions directories in my .vscode folder under my user and reinstalled the extension but that did nothing to change the issue. Attached is the error log. Any thoughts as this is getting to make this extension not usable.
omnisharp_errors.txt

akshita31 commented 5 years ago

@motor75 Do you have an OmniSharp log. Please post the output from that and sorry I couldnt keep track of this one

motor75 commented 5 years ago

@akshita31 I only have what I provided above unless you can point me somewhere on my HDD where the log is located.