Comments (2)
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.
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)
- Completion for with pkgs.subpackages HOT 1
- Report module `import` antipattern HOT 6
- goto definition for a file path HOT 9
- Improvements on unused argument detection in `{ foo, bar }@args` HOT 1
- nixf: ignoring annotations
- nixf doesn't report unused `@args` with function arguments
- Autocomplete breaks in NixOS module with explicit config section HOT 1
- No completion available in flakes HOT 6
- suggestion to use `inherit` HOT 10
- Regression testing `nixpkgs-fmt`. Instead, a script that outputs specific content should replace it, simply verifying that nixd passed the correct arguments to nixpkgs-fmt.
- dedicated vscode extension
- Syntax highlighting for multi-line strings HOT 2
- rework semantic tokens
- remove dead libnixt entries
- unicode
- disable `sema-escaping-with`
- Giving libnixf the `nativeCheckInputs` that should be used for nixd, which are not actually needed for libnixf.
- Crash on NeoVim, code 0, signal 6 HOT 7
- complete `builtins` HOT 1
- Implementing LSP Features for devenv.sh
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 nixd.