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

New language server throwing System.InvalidOperationException #2207

Closed
derekwallace opened this issue Jul 20, 2018 · 3 comments
Closed

New language server throwing System.InvalidOperationException #2207

derekwallace opened this issue Jul 20, 2018 · 3 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@derekwallace
Copy link

latest Insiders build.
Output window has these messages.
Seems to be continually happening. Every few minutes...

[Info  - 07:28:13] Reloading modules...

Unhandled Exception: System.InvalidOperationException: currently processing another request
   at Microsoft.PythonTools.Analysis.LanguageServer.ServerBase.RequestLock..ctor(ServerBase owner, Int32 millisecondsTimeout)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.ReloadModulesAsync(CancellationToken token)
   at Microsoft.PythonTools.Analysis.Infrastructure.TaskExtensions.DoNotWait(Task task)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.<DidChangeConfiguration>b__26_0()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 07:28:18] Connection to server got closed. Server will restart.
[Error - 07:28:18] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2019:42)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\main.js:126:15)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2006:18)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at StreamMessageReader.AbstractMessageReader.fireClose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
	at Socket.<anonymous> (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:188:62)
	at emitOne (events.js:101:20)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)
[Error - 07:28:18] Request textDocument/definition failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2019:42)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\main.js:126:15)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2006:18)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at StreamMessageReader.AbstractMessageReader.fireClose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
	at Socket.<anonymous> (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:188:62)
	at emitOne (events.js:101:20)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)
[Error - 07:28:18] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2019:42)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\main.js:126:15)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2006:18)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at StreamMessageReader.AbstractMessageReader.fireClose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
	at Socket.<anonymous> (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:188:62)
	at emitOne (events.js:101:20)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)
[Error - 07:28:18] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2019:42)
	at LanguageClient.handleConnectionClosed (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\main.js:126:15)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-languageclient\lib\client.js:2006:18)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at StreamMessageReader.AbstractMessageReader.fireClose (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
	at Socket.<anonymous> (C:\Users\derekw\.vscode-insiders\extensions\ms-python.python-2018.7.0\node_modules\vscode-jsonrpc\lib\messageReader.js:188:62)
	at emitOne (events.js:101:20)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)
[Info  - 07:28:20] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for C:\Users\derekw\AppData\Local\Programs\Python\Python36\python.exe
@derekwallace derekwallace changed the title New language servers is creating log except New language servers is creating Unhandled Exception in output window Jul 20, 2018
@derekwallace
Copy link
Author

derekwallace commented Jul 20, 2018

seeing this a lot. Updatd to the latest insiders and its the same.

[Info  - 09:29:25] Found 239 completions for file:///p:/perforce_Playground/derekw_de02-1777_rce_dev/tools/vividc/bin/vividcpkg/iccr_mod.py at (754, 17) after filtering
[Info  - 09:29:27] Found 239 completions for file:///p:/perforce_Playground/derekw_de02-1777_rce_dev/tools/vividc/bin/vividcpkg/iccr_mod.py at (754, 23) after filtering
[Info  - 09:30:04] Reloading modules...

Unhandled Exception: System.InvalidOperationException: currently processing another request
   at Microsoft.PythonTools.Analysis.LanguageServer.ServerBase.RequestLock..ctor(ServerBase owner, Int32 millisecondsTimeout)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.ReloadModulesAsync(CancellationToken token)
   at Microsoft.PythonTools.Analysis.Infrastructure.TaskExtensions.DoNotWait(Task task)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.<DidChangeConfiguration>b__26_0()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 09:30:55] Connection to server got closed. Server will restart.
[Info  - 09:30:58] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for C:\Users\derekw\AppData\Local\Programs\Python\Python36\python.exe

@brettcannon
Copy link
Member

@derekwallace the build of the language server is independent of the build of the extension (for now), so downloading a new version of the extension won't change anything.

@brettcannon brettcannon changed the title New language servers is creating Unhandled Exception in output window New language server throwing System.InvalidOperationException Jul 23, 2018
@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs PR labels Jul 23, 2018
@brettcannon brettcannon added the P0 label Aug 2, 2018
@brettcannon brettcannon added this to the Aug 2018 milestone Aug 2, 2018
@MikhailArkhipov
Copy link

This was fixed by microsoft/PTVS#4577

@lock lock bot locked as resolved and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants