-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Navigate to symbol doesn't work outside of a macro #19884
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
I can't reproduce. |
@ChayimFriedman2 If it helps, here's debug logging with RA_LOG=DEBUG:
|
Oh you have logging enabled... That's still a bug we need to fix, but you can disable logging to workaround it. |
@ChayimFriedman2 I turned on logging just to see what's going on. It's very slow with it, and thanks for fixing the issue. |
The logging is the cause of the panic. Perhaps you have it enabled unknowingly? |
@ChayimFriedman2 Ok. Thanks. I didn't enable it unknowingly, I enabled it on purpose to help understand what's going on. May be you could add some diagnostic to understand why it can't resolve the reference? |
Let's break it down: the panic is caused because of the logging. Without logging it resolves for me. Try disabling logging and see if it resolves, and if there are still panics. |
@ChayimFriedman2 As I said, it doesn't resolve both with and without logging. |
Is there a panic in the logs without logging? |
@ChayimFriedman2 There're no panics. |
Well, then the panics are a different issue, and we still need to find why it doesn't work for you. |
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
0.3.2474-standalone
rustc version: (eg. output of
rustc -V
)editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
VSCODE
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)None
repository link (if public, optional): (eg. rust-analyzer)
The text was updated successfully, but these errors were encountered: