-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Jumping to method with tracing::instrument macro fails #12206
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
This works for me. Does |
CC @flodiebold ^ |
|
Here are some relevant sections from the LSP mode logs: Failing with the attribute macro
Succeeding without the attribute macro:
|
Do you have any relevant LSP config? Is |
I'm on LSP mode 8.0.0 which is the most recent. I don't have any LSP mode stuff in my
is about it. I checked the variable you mentioned - it was set to |
You might have to restart RA/LSP/emacs. Don't set it to |
If it was just a matter of proc macro expansion being disabled, go to definition would still work, wouldn't it? It might be the expansion failing instead for some reason? 🤔 |
Restarted Emacs and RA with |
Can't repro this either in my VSCode. I assume you are using the latest |
It turns out that Apologies for wasting your time, and many thanks to all of you for being so helpful. |
With the following example
attempting to jump to the definition of
bar
usingM-.
in Emacs fails withNo definitions found for: bar
.However, with the attribute macro removed:
this jumps successfully to
bar
.rust-analyzer version: 2022-05-02, installed via HomeBrew
rustc version: 1.58.1
Please let me know if any further information would be useful for debugging.
The text was updated successfully, but these errors were encountered: