Giter VIP home page Giter VIP logo

Comments (2)

inclyc avatar inclyc commented on August 22, 2024

There are merely two problems reported in this issue, the first:

I[15:06:47.126] 249743: --> notify exit
V[15:06:47.126] 249743: >>> {"jsonrpc":"2.0","method":"exit","params":null}
I[15:06:47.158] 249743: --> notify exit
V[15:06:47.158] 249743: >>> {"jsonrpc":"2.0","method":"exit","params":null}

These two "exit" requests is sent by our server to eval providers (one for nixpkgs, another for an options system) and are expected. And I wrote these requests in the source code, to make the workers clean the resources.

In nixd, these eval providers are used for interoperating with C++ nix, these workers directly links with C++ nix libraries, effectively the nix-repl exposed by an RPC protocol.

the second:

eglot complains that the LSP died:

I don't know what's the reason exactly, if it does not bother you, can we leave this as-is?

from nixd.

Atemu avatar Atemu commented on August 22, 2024

if it does not bother you, can we leave this as-is?

The problem is that the server not shutting down "cleanly" has knock-on effects. Eglot has a function to shutdown the server when the last LSP-managed buffer of a project is killed. When the server doesn't shut down cleanly, it (rightfully) complains and aborts killing the buffer which is annoying to deal with; especially when killing multiple projects at once.

I am not familiar with the LSP spec in the slightest. Since you are, do you have a hunch what might be going wrong here?

Is there any way to get more debug info from the nixd side?

from nixd.

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.