willcrichton / flowistry

Flowistry is an IDE plugin for Rust that helps you focus on relevant code.
https://marketplace.visualstudio.com/items?itemName=wcrichton.flowistry
MIT License
1.91k stars 45 forks source link

Crash after following "rustup fails on installation" instructions #48

Open allenap opened 2 years ago

allenap commented 2 years ago

Problem

I followed the "rustup fails on installation" instructions the clicked continue in VS Code.

Logs

OS: darwin (21.4.0) VSCode: 1.66.1 Error message

ps: stdin: not a terminal
tput: No value for $TERM and no -T specified
/usr/local/bin/bash: line 1: cargo: command not found

Full log: https://paste.rs/nho

willcrichton commented 2 years ago

@allenap what should be your default shell? Can you do echo $SHELL and tell me what the output is?

allenap commented 2 years ago

Can you do echo $SHELL and tell me what the output is?

$ echo $SHELL
/usr/local/bin/bash
willcrichton commented 2 years ago

Ah weird, and so in your normal bash shell, cargo resolves to a specific installation path right? Like what is the output of which cargo?

allenap commented 2 years ago
$ which cargo
/Users/gavin/.cargo/bin/cargo

I always launch VS Code using code . in my project directory so that it picks up environment. Perhaps, after a restart, it had not restored that environment by the time that Flowistry ran? In any case, after restarting VS Code, it seems to be okay: no more errors, and Flowistry commands are doing things.