M
Modular•14mo ago
Shawn

VS Code Path Issue

I've been having an issue getting the path setup for VSCode. The repl works fine and I can run in terminal but its saying my path doesn't exist in VSCode Even though I'm pretty sure that is the correct path. Can anyone please help?
No description
10 Replies
Michael K
Michael K•14mo ago
I would try the path /Users/shawnbeck/.modular. The /at the front of a path is significant.
Shawn
ShawnOP•14mo ago
Good idea! But still no go 😦
No description
Shawn
ShawnOP•14mo ago
fixed it. For some reason the json file had escaped quotes in it: "mojo.modularHomePath": ""/Users/shawnbeck/.modular"" removing those has it up and running
OverThinker
OverThinker•14mo ago
I've installed it, I've it running on zsh but its just keeps showing the error on vs code
No description
Koo
Koo•14mo ago
export MODULAR_HOME="$HOME/.modular"
export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH"
export MODULAR_HOME="$HOME/.modular"
export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH"
Add these to your .zshrc then restart your shell or run source ~/.zshrc
OverThinker
OverThinker•14mo ago
what are you referring to by
$HOME
$HOME
variable, cause if I take my home directory and follow that path at the end
/bin
/bin
directory is not there where as if I follow it with
/root/.modular/.../bin
/root/.modular/.../bin
It is available but both are not working for some reason. even though I see the directory in
echo $PATH
echo $PATH
Koo
Koo•14mo ago
Seems like you installed it using sudo or logged in as root user, it shouldn't be in the /root/ folder. My $HOME refers to my users home directory as it should. I only just installed Mojo today too so I don't know how you should fix the situation
OverThinker
OverThinker•14mo ago
yes I did indeed.... but I'm still in root user, so honestly I've no clue as to why its not working
Shawn
ShawnOP•14mo ago
Is the JSON messed up with the extra quotes like it was in mine? How does the path appear in the exertion settings?
OverThinker
OverThinker•14mo ago
no its not, I'm reinstalling mojo.......
Want results from more Discord servers?
Add your server