Closed umermasood closed 3 years ago
It would be helpful to see the error message from stagehand
.
If the error is coming from VS Code, the issue is that the PATH
that VS Code has does not include the path shown at the top. The log prints the full environment PATH
as:
[8:37:48 PM] [General] [Info] Environment PATH:
[8:37:48 PM] [General] [Info] /usr/local/sbin
[8:37:48 PM] [General] [Info] /usr/local/bin
[8:37:48 PM] [General] [Info] /usr/sbin
[8:37:48 PM] [General] [Info] /usr/bin
[8:37:48 PM] [General] [Info] /sbin
[8:37:48 PM] [General] [Info] /bin
[8:37:48 PM] [General] [Info] /usr/games
[8:37:48 PM] [General] [Info] /usr/local/games
[8:37:48 PM] [General] [Info] /snap/bin
My guess is that this is because you're setting the path in .bashrc
and that you're not launching VS Code from bash, so it's not inheriting that.
Unfortunately I don't know a reliable way to set PATH
on Linux that applies to all processes (it may vary between distributions) - although if you know of one it would be good to update this page with instructions.
Closing as external
I get this error if I create a dart project using vscode template. Also If I try to create dart project using stagehand from command line it doesn't detect my dart sdk. I have my flutter sdk installed in
/home/keystroke/Development/
I have flutter installed in my PATH. This is my
.bashrc
This is my
flutter doctor -v
output:But if I run
which dart
orwhich flutter
, it doesn't give me any outputI am unable to create dart project using stagehand or vscode but if I use
dart create
, I am able to create a projectAlso this is my vscode error log when I create a dart project using vscode
This is super weird, please help :smiley: