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

Flowistry fails to install #40

Closed
nsabovic opened this issue Feb 26, 2022 · 3 comments
Closed

Flowistry fails to install #40

nsabovic opened this issue Feb 26, 2022 · 3 comments

Comments

@nsabovic
Copy link

cargo install flowistry_ide on my computer (M1 macOS 12.2.1 aarch64) fails with 700+ errors, I've attached the first few. This probably isn't meant to be installed this way, but:

  1. cargo update will try to install it and fail, breaking standard upgrade process. For instance, topgrade will error out.
  2. Installing from VSCode also fails on my computer, with a different error.
   Compiling flowistry v0.5.7
error[E0463]: can't find crate for `either`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:53:1
   |
53 | extern crate either;
   | ^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0463]: can't find crate for `rustc_borrowck`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:54:1
   |
54 | extern crate rustc_borrowck;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_data_structures`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:55:1
   |
55 | extern crate rustc_data_structures;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:56:1
   |
56 | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_graphviz`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:57:1
   |
57 | extern crate rustc_graphviz;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_hir`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:58:1
   |
58 | extern crate rustc_hir;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_hir_pretty`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:59:1
   |
59 | extern crate rustc_hir_pretty;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_index`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:60:1
   |
60 | extern crate rustc_index;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_infer`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:61:1
   |
61 | extern crate rustc_infer;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_interface`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:62:1
   |
62 | extern crate rustc_interface;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_macros`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:63:1
   |
63 | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_middle`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:64:1
   |
64 | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_mir_dataflow`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:65:1
   |
65 | extern crate rustc_mir_dataflow;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_mir_transform`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:66:1
   |
66 | extern crate rustc_mir_transform;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_serialize`
  --> /Users/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.7/src/lib.rs:67:1
   |
67 | extern crate rustc_serialize;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
@willcrichton
Copy link
Owner

If you install it manually, you have to make sure to add cargo +nightly-2022-02-17 install ... so the correct compiler is used.

@nsabovic
Copy link
Author

I see.

I find it very confusing to have things installed by VSCode inside my $HOME/.cargo directory. It breaks cargo update. Also, I didn't put it there, unlike all the other things in cargo install --list. Maybe it's me, I cringe at the thought of GUI apps putting things in my /usr/local too. Is there a VSCode-specific directory for binary artifacts?

Let me also just add that I love Flowistry and don't see this as a deal breaker.

@willcrichton
Copy link
Owner

Ah that's fair, yeah. Theoretically I could download the binaries directly into the extension directory, I will open an issue and explore that in the next patch.

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