Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Panic when compiling cgmath #276

Closed
ChristianBeilschmidt opened this issue Apr 25, 2017 · 3 comments
Closed

Panic when compiling cgmath #276

ChristianBeilschmidt opened this issue Apr 25, 2017 · 3 comments
Labels

Comments

@ChristianBeilschmidt
Copy link

Hi,

I'm trying to use RLS with vscode-rust in a project that uses rust-geo. It has a dependency to cgmath that seems to cause trouble. The following error occurs:

thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `cgmath`., cause: process didn't exit successfully: `rustc --crate-name cgmath C:\Users\myuser\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\cgmath-0.12.0\src\lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="rustc-serialize" --cfg feature="default" -C metadata=afb407e74449b592 -C extra-filename=-afb407e74449b592 --out-dir c:\mycode\target\rls\debug\deps -L dependency=c:\mycode\target\rls\debug\deps --extern rand=c:\mycode\target\rls\debug\deps\librand-d22275320cd9f6c2.rmeta --extern num_traits=c:\mycode\target\rls\debug\deps\libnum_traits-4c2dc66d8816610d.rmeta --extern approx=c:\mycode\target\rls\debug\deps\libapprox-b3f7cf616ce926ae.rmeta --extern rustc_serialize=c:\mycode\target\rls\debug\deps\librustc_serialize-11a16e191609bcdb.rmeta --cap-lints allow -Zunstable-options -Zsave-analysis --error-format=json -Zcontinue-parse-after-error` (exit code: 101) }', src\libcore\result.rs:859

I am using the following toolchain: nightly-x86_64-pc-windows-gnu updated - rustc 1.18.0-nightly (63c7721 2017-04-24)

Unfortunately I have currently no idea how to fix this. I can compile the project successfully with cargo build. Do you have any suggestions?

@eldyer
Copy link

eldyer commented Apr 28, 2017

Same problem here with nightly-x86_64-apple-darwin.

@nrc nrc added the bug label May 1, 2017
@ozkriff
Copy link

ozkriff commented May 2, 2017

rust-lang/rust#41478

@nrc
Copy link
Member

nrc commented May 2, 2017

Tracking here: rust-dev-tools/rls-analysis#59

@nrc nrc closed this as completed May 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants