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

Failure writing to stdout #8

Closed
kapitanluffy opened this issue Sep 19, 2019 · 4 comments

Comments

@kapitanluffy
Copy link

commented Sep 19, 2019

LSP server constantly crashes. Below is a screenshot of the console.

lsp-vue

@predragnikolic

This comment has been minimized.

Copy link
Contributor

commented Sep 19, 2019

I can not reproduce it.

The only strange thing I see is the double log messages

lsp-vue: Loaded bundled typescript@3.6.3.
lsp-vue: Loaded bundled typescript@3.6.3.
lsp-vue: Vetur initialized
lsp-vue: Vetur initialized

But I don't know how you got that.

What version of LSP(https://github.com/tomv564/LSP) are you running?

@kapitanluffy

This comment has been minimized.

Copy link
Author

commented Sep 19, 2019

I think because it automatically restarts and I restarted it at the same time (It shows a button that the lsp server crashed).

I was using 0.8.6, I upgraded to 0.9 just now and it still happens.
I noticed that it says Error: Could not find source file. The file is located in a samba network with an appropriate driver letter (U:). Here's the log:

LSP:  --> textDocument/documentHighlight
Failure writing to stdout
Traceback (most recent call last):
  File "C:\Users\ramona\AppData\Roaming\Sublime Text 3\Installed Packages\LSP.sublime-package\plugin/core/transports.py", line 232, in write_stdin
    self.process.stdin.flush()
OSError: [Errno 22] Invalid argument

LSP: transport failed
LSP: unable to send textDocument/codeAction
LSP: unloading session lsp-vue
LSP: unable to send shutdown
LSP: unable to send exit
LSP: session lsp-vue ended
LSP: clients for window 2 unloaded
LSP: window 2 sessions unloaded - restarting
LSP: window 2 starting 1 initial views
LSP: window 2 requests lsp-vue for U:\public_html\app\src\App.vue
LSP: starting in U:\public_html\app
LSP: starting ['node', 'C:\\Users\\ramona\\AppData\\Roaming\\Sublime Text 3\\Packages\\LSP-vue\\node_modules\\vue-language-server\\bin\\vls']
LSP:  --> initialize
LSP: window 2 added session lsp-vue
lsp-vue: Loaded bundled typescript@3.6.3.
lsp-vue: Vetur initialized
LSP:      {'capabilities': {'referencesProvider': True, 'codeActionProvider': True, 'completionProvider': {'resolveProvider': True, 'triggerCharacters': ['.', ':', '<', '"', "'", '/', '@', '*']}, 'documentSymbolProvider': True, 'colorProvider': True, 'documentHighlightProvider': True, 'signatureHelpProvider': {'triggerCharacters': ['(']}, 'hoverProvider': True, 'definitionProvider': True, 'documentFormattingProvider': False, 'textDocumentSync': 1, 'documentLinkProvider': {'resolveProvider': False}}}
LSP:  --> initialized
LSP:  --> textDocument/didOpen
C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\typescript\lib\typescript.js:125675:
throw error;:
^:
:
Error: Could not find source file: 'u:\public_html\app\src\App.vue.template'.:
at getValidSourceFile (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\typescript\lib\typescript.js:125671:29):
at Object.getSemanticDiagnostics (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\typescript\lib\typescript.js:125887:36):
at VueInterpolationMode.doValidation (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\vue-language-server\dist\modes\template\interpolationMode.js:38:56):
at VueHTMLMode.doValidation (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\vue-language-server\dist\modes\template\index.js:21:86):
at languageModes.getAllLanguageModeRangesInDocument.forEach.lmr (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\vue-language-server\dist\services\vls.js:358:51):
at Array.forEach (<anonymous>):
at VLS.doValidate (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\vue-language-server\dist\services\vls.js:356:72):
at VLS.validateTextDocument (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\vue-language-server\dist\services\vls.js:350:34):
at Timeout.pendingValidationRequests.(anonymous function).setTimeout [as _onTimeout] (C:\Users\ramona\AppData\Roaming\Sublime Text 3\Packages\LSP-vue\node_modules\vue-language-server\dist\services\vls.js:339:18):
at ontimeout (timers.js:436:11):
LSP:LSP: process 23432 stdout ended (still alive)
 LSP stream logger stopped.
LSP: process 23432 exited with code 1
@kapitanluffy

This comment has been minimized.

Copy link
Author

commented Sep 20, 2019

So I checked if the "samba" thing is the problem. I copied my project to a local drive but it still crashes.

@predragnikolic

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2019

This is a problem with the vls language server. :-)

See vuejs/vetur#1396

For more info you can also look at the issue on the LSP repo.
tomv564/LSP#681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.