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

loading workspace failed: cargo metadata failed: invalid type: null, expected a string at line 1 column 236445 #979

Closed
bjorn3 opened this issue Mar 16, 2019 · 4 comments

Comments

@bjorn3
Copy link
Member

bjorn3 commented Mar 16, 2019

ERROR [ra_lsp_server::main_loop] loading workspace failed: cargo metadata failed: invalid type: null, expected a string at line 1 column 236445

While working on cranelift

@matklad
Copy link
Member

matklad commented Mar 16, 2019

That's a, um, well, disagreement between cargo-metadata, cargo, and cargo.

Commenting this line out should help:

https://github.com/CraneStation/cranelift/blob/ccc309fc6686b2ddbc98bd03749b101be5e9ecf2/Cargo.toml#L26

(cranelift-serde is a library-less package, and dependency on such pacakges causes problems)

See rust-lang/cargo#6534

@matklad
Copy link
Member

matklad commented Mar 16, 2019

(I probably should say that it was my idea to allow null in the metadata instead of skipping thouse deps 😭 )

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 16, 2019

Thanks that worked!

@matklad
Copy link
Member

matklad commented Mar 16, 2019

I'll close this issue then, since it's Cargo's problem!

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