Skip to content
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

language server seems not recognize print macro identifier #130504

Closed
loynoir opened this issue Sep 18, 2024 · 3 comments
Closed

language server seems not recognize print macro identifier #130504

loynoir opened this issue Sep 18, 2024 · 3 comments
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.

Comments

@loynoir
Copy link

loynoir commented Sep 18, 2024

language server seems not recognize print macro identifier

actual

rename in rs

    let foo: i32 = 42;
    eprintln!("value={foo}");
    let bar: i32 = 42;
    eprintln!("value={foo}");

expected

rename in ts

let foo = 42
console.log(`value=${foo}`)
let bar = 42
console.log(`value=${bar}`)
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Sep 18, 2024
@fmease fmease added C-discussion Category: Discussion or questions that doesn't represent real issues. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Sep 18, 2024
@fmease
Copy link
Member

fmease commented Sep 18, 2024

Are you using rust-analyzer? If so, could you double-check that you have a recent version installed? rust-lang/rust-analyzer#11260 should've been fixed already by rust-lang/rust-analyzer#16027 since December of 2023. I cannot reproduce your issue locally.

As an aside, in the future please report issues specific to rust-analyzer over at https://github.com/rust-lang/rust-analyzer/ if that's indeed the language server you are using.

@loynoir
Copy link
Author

loynoir commented Sep 19, 2024

Oh, it works in channel = "1.80.0", not works in channel = "nightly-2024-08-28"

@loynoir
Copy link
Author

loynoir commented Sep 19, 2024

As an aside, in the future please report issues specific to rust-analyzer over at https://github.com/rust-lang/rust-analyzer/ if that's indeed the language server you are using.

@loynoir loynoir closed this as completed Sep 19, 2024
@fmease fmease closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.
Projects
None yet
Development

No branches or pull requests

3 participants