NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.31k stars 14.28k forks source link

Lunarvim: pyright not working #305801

Open no-mood opened 7 months ago

no-mood commented 7 months ago

Describe the bug

A clear and concise description of what the bug is.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enter in a folder with a python file, and turn it into a git project (so LSPs like pyright can work)
  2. Enter in a shell with lunarvim (lvim): nix-shell -p lunarvim
  3. Open your file like this: lvim file.py

The first error you get is: The project does not address the selection of constellations and filters. If you run :LspLog in lvim, you get:

[START][2024-04-21 19:33:21] LSP logging initiated
[ERROR][2024-04-21 19:33:21] .../vim/lsp/rpc.lua:734    "rpc"   "pylyzer"   "stderr"    "thread 'start_client_health_checker_receiver' panicked at /home/mood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/els-0.1.39/diagnostics.rs:469:29:\nClient health check timed out\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n"

Expected behavior

Expecting pyright to work

Notify maintainers

@ProminentRetail

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
 - host os: `Linux 6.1.87, NixOS, 23.11 (Tapir), 23.11.20240419.bc194f7`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/nnjib275nl4s5nhifn26w2k0ksq2cb25-source`

Add a :+1: reaction to issues you find important.

pyrox0 commented 7 months ago

Looking at the error message, this appears to be a bug in pylyzer, not pyright.

no-mood commented 6 months ago

There's still something wrong with pyright, because it wasn't picking the right python version (inside a dev shell) while more "native solutions" (like nixvim) didn't have this problem. I'd attach a log, but seems like lunarvim is now unmaintened (?)