Comments (7)
Thanks for following up on this. Hopefully the typescript language server will handle this exception properly without exiting.
from lsp.
We could check the status of the channel before sending the message. But the job exit callback (exit_cb)
is supposed to be called when the LSP server exits. This function sets the LSP server job handle to v:none
and updates the LSP server running status to false. So further messages to this LSP server should not
be sent.
Did the LSP server exit because of an exception or error?
from lsp.
yes, checked,
exit_cb was called, the code is 1
.
and that time, ch is 'buffered'.
from lsp.
Committed 4c57eb5 to check for the status of the channel before sending the message to the LSP server.
from lsp.
yea, that ch_status chk can avoid err raised.
// however not sure why ts lsp server cannot startup (exit '1'), or started, but failed later.
// so far just found ts lsp server is failed, maybe there was something special......................
from lsp.
i did a rough debug, looks that was a lsp server code flaw: typescript-language-server/typescript-language-server#191
// at least from the version at npm, looks... FYI.
from lsp.
for reference: above issue in ts lsp server had been fixed.
however another similar issue on perl lsp server still no clue.
// richterger/Perl-LanguageServer#81
from lsp.
Related Issues (20)
- Fix function tooltip's formatting (pylsp)
- `<c-n>` on some LSP completion options triggers an "Item not found ... ParseMarkdown" error HOT 11
- Python module docstring not shown on autocomplete HOT 4
- LspSwitchSourceHeader Occasionally, it appears that you need to click on the confirmation to jump to header HOT 3
- Definition autocomplete fails to parse markdown HOT 3
- lua lsp uses always current work dir when LSP initalized when editing file HOT 1
- Project-wide diagnostic messages in quickfix? HOT 4
- Make LspInlayHints accept "toggle" in addition to "enable"/"disable"
- How to change highlighting? HOT 1
- Highlight typed text in completion menu HOT 1
- Create a command to apply suggested fixes HOT 1
- Add highlight group for unused includes
- Assistance with adding sonarlint-ls support HOT 7
- Add full concurrent multiple language server support
- Includes are added twice with vsnip
- :LspHover provide hugly formating HOT 3
- [Question] is it possible to send requests to the language server?
- Ensure character value is present when setting mapping
- An auto-import may trigger twice when using multiple LSP servers and multiple buffers
- :help lsp.txt doesn't work after installing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp.