folke/tokyonight.nvim

bug: Rust error signalled even if I get no error with cargo check, on LazyVIM only with tokyonight

Closed this issue · 3 comments

Did you check docs and existing issues?

  • I have read all the tokyonight.nvim docs
  • I have searched the existing issues of tokyonight.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.5

Operating system/version

Garuda linux (idk the version)

Describe the bug

Basically I just installed rust-analyzer and created a new project and I get an error on println!, this other user on reddit seems to have my same issue:
https://www.reddit.com/r/neovim/comments/1auxpub/trying_rust_for_the_first_time/

I usually don't report bugs on github so I hope I'm not doing anything wrong, but changing theme from any tokyonight-something theme causes this error to reappear

I am using lazyvim exactly like this user here so it might be some other plugin or setting that I'm missing but again I'm not an expert

Steps To Reproduce

  1. install lazyvim
  2. create a new project in rust
  3. open the main file

Ok I have fixed it, apperently it was created from not using rustup (installi rustup from the AUR fixed my problem, I have no absolute idea of what is happening here but it's now working)

Ok I have fixed it, apperently it was created from not using rustup (installi rustup from the AUR fixed my problem, I have no absolute idea of what is happening here but it's now working)

Hey i think we talked on reddit as well on this post and i wanted to ask if using rustup allows you to use the nvim.dap options properly and also if the inlay hints of rust_analyzer and the run and debug options for a function are showing.

Screenshot from 2024-02-26 04-59-45

You can see from the screenshot that it shows those options there but if i remove the rust package and instead use rustup those options and inlay hints also go away.

@UPROOT01 Same happened with me as well.

My configuration

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

It seems the issue is only happening when you install using the native installation method. (Go to rust arch wiki for reference)

The problem goes away, when you use the rustup installation method.

The other workaround would be to use any other colorscheme