-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Inlay hints and symbol renaming not working when using no_main
custom entry point (embedded)
#10753
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 don't have knowledge about embedded libraries, from what crate is the |
As I'm using a cortex-m architecture, in my case it's from the The |
Another symptom is the 'run/debug' buttons do not show up as supposed and autocompletion seems to not be fully working (as if RA is not fully aware of its context). Tried with another embedded architecture (AVR template project): same issue. Tested on another (Windows) PC: same issue. Both in native Windows as from WSL2 the issue is the same. |
The autocomplete issue is known and needs a fix in the attribute proc-macro itself, see #10520 |
Ran into another issue with embedded target, that could be (or seems) related.
|
Ye thats the version of when we enabled attribute macros by default, prior to that the attribute didn't do anything. Note if this is a bigger problem for you currently you can get the old behavior back by disabling the |
@eflukx Are you still having problems with this with current RA versions? |
Thanks for informing on this :) Up to now I've been working with the |
I have (perceived) strange behavior when using rust analyzer in vscode on an embedded project. In this example a trivial example project based on the nRF52840 devkit.
The (inline) type hints are missing when variable are declared
mut
(atlet mut _key = [0u8; 128];
),furthermore symbol renaming does not work (see
renamed
vs.peripherals
)When commenting out the
#[entry]
line (obviously the code breaks, but) inline hints and symbol renaming work as expected...Have been fiddling with some rust analyzer settings, ran
rustup update
, tried rust_analyzer nightly, tried older versions, all to no avail.. Am I missing something, or did we encounter a bug?The text was updated successfully, but these errors were encountered: