Code Monkey home page Code Monkey logo

Comments (7)

yegappan avatar yegappan commented on August 18, 2024 1

Thanks for following up on this. Hopefully the typescript language server will handle this exception properly without exiting.

from lsp.

yegappan avatar yegappan commented on August 18, 2024

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.

Shane-XB-Qian avatar Shane-XB-Qian commented on August 18, 2024

yes, checked,
exit_cb was called, the code is 1.
and that time, ch is 'buffered'.

from lsp.

yegappan avatar yegappan commented on August 18, 2024

Committed 4c57eb5 to check for the status of the channel before sending the message to the LSP server.

from lsp.

Shane-XB-Qian avatar Shane-XB-Qian commented on August 18, 2024

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.

Shane-XB-Qian avatar Shane-XB-Qian commented on August 18, 2024

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.

Shane-XB-Qian avatar Shane-XB-Qian commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.