-
-
Notifications
You must be signed in to change notification settings - Fork 98
[Bug] Dap error when opening rust file. #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey 👋 Thanks for reporting, but that is not a minimal config. Closing for now. |
I don't have a minimal config for this (yet, will try to put one together this weekend if original reporter doesn't beat me to it), but want to say I'm also experiencing this on Arch Linux w/ the latest nvim nightly. The problem occurs when first opening a Rust file and a very similar (line 26 instead of 46) problem occurs when running |
Lock the version for now to avoid this problem. |
Caused by: rust-lang/rust-analyzer#17547 |
FWIW, I'm still getting this error on 4.26.1, both with the stable and nightly versions of Neovim and rust-analyzer. Won't be around for a couple of days, but I'll try and put together a repro when I get back. |
@tim-harding if you post a stack trace, perhaps I can find out if there's been another breaking rust-analyzer change. |
On further inspection, it seems that the issue is coming from using
For clarification, with some Rust and Neovim versions I would see the error from this issue, but usually I was getting a DAP session that would just seem to hang, with no breakpoints hit and nothing in the scopes window. Apologies for the noise in this thread, after hours of trying I thought my issue might be relevant here because I saw the same thing sometimes, but it seems it was unrelated after all. |
I haven't used nvim in a long time, I just came back, fixed lspconfig, but now when I open a Rust file I get this same error, any ideas? |
This is all I have, no idea how it's possibly ngl |
@Ciel-MC are you using the latest version of this plugin? This is the line rustaceanvim/lua/rustaceanvim/lsp/init.lua Lines 297 to 298 in 4b8c2ed
A search for |
Hi, sorry about that. It is the line you highlighted that was the problem. I just tried to print the table out (which ended on the same time) for debugging. The problem is that the table extend’s second argument is nil. |
Here it is with the debug line removed |
Werked, tanks |
Uh oh!
There was an error while loading. Please reload this page.
Have you read the docs and searched existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
macos 14.5
Output of :checkhealth rustaceanvim
How to reproduce the issue
Expected behaviour
normal
Actual behaviour
The minimal config used to reproduce this issue.
The text was updated successfully, but these errors were encountered: