Skip to content

proc-macro panicked: ParseFloatError { kind: Invalid } #9045

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

Closed
lvella opened this issue May 29, 2021 · 1 comment
Closed

proc-macro panicked: ParseFloatError { kind: Invalid } #9045

lvella opened this issue May 29, 2021 · 1 comment

Comments

@lvella
Copy link

lvella commented May 29, 2021

I think I stumbled upon a rust-analyzer bug. Upon trying to make YouCompleteMe work with latest nightly of rust-analyzer, it panicked with the following error message:

proc macro returned error: proc-macro panicked: called Result::unwrap() on an Err value: ParseFloatError { kind: Invalid }

But "cargo build" succeeded using the same nightly toolchain. The code that fails is this one (very small, just one file): https://github.com/lvella/bastroblasto

The offending version: rust-analyzer 3022a2c 2021-05-28 dev

@lnicola
Copy link
Member

lnicola commented May 29, 2021

Duplicate of #8928. As a workaround you can use the stable toolchain or disable proc macro support.

@lnicola lnicola closed this as completed May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants