geode-sdk / cli

Command-line utilities for working w/ geode
Boost Software License 1.0
24 stars 22 forks source link

Issue with adding CLI to PATH #4

Closed TechStudent10 closed 1 year ago

TechStudent10 commented 1 year ago

I don't know why this is happening.

I was following the instructions here. I got the executable, added it to it's own separate folder, then added it to the PATH environment variable for my user account.

When I go ahead and try running geode or geode config setup, I get this:

image

I found this weird. I looked back in my environment variables and there they were. I am sure I copied the path correctly.

image

I used the commands echo %path% and just PATH in all uppercases to see if it had even applied.

image

PATH=C:\Program Files\ImageMagick-7.1.0-Q16-HDRI;C:\Program Files\Eclipse Adoptium\jdk-11.0.14.101-hotspot\bin;C:\Program Files (x86)\VMware\VMware Player\bin\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Users\moham\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts;C:\Users\moham\AppData\Local\Microsoft\WindowsApps;C:\Users\moham\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\moham\AppData\Roaming\npm;C:\Users\moham\AppData\Local\GitHubDesktop\bin;C:\Users\moham\AppData\Local\atom\bin;C:\flutter\bin;C:\Program Files\heroku\bin;C:\Users\moham\bin;C:\Users\moham\AppData\Local\Android\Sdk\tools;C:\Users\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files (x86)\spwn\;C:\Program Files\nodejs\;C:\Program Files\Neovim\/bin;C:\Program Files\Rust stable GNU 1.62\bin;C:\tools\gsudo\Current;C:\Users\moham\geode\geode.exe;;C:\Users\moham\.cargo\bin;C:\Users\moham\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\moham\AppData\Local\Programs\Python\Python310\;C:\Users\moham\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts;C:\Users\moham\AppData\Local\Microsoft\WindowsApps;C:\Users\moham\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\moham\AppData\Local\atom\bin;C:\flutter\bin;C:\Users\moham\bin;C:\Users\moham\AppData\Local\Android\Sdk\tools;C:\Users\moham\AppData\Local\Android\Sdk\platform-tools;C:\Program Files (x86)\GitHub CLI\;C:\Users\moham\AppData\Local\Microsoft\WindowsApps;C:\Users\moham\AppData\Local\Programs\Hyper\resources\bin;C:\Program Files\VideoLAN\VLC;C:\Program Files (x86)\spwn;C:\Users\moham\AppData\Roaming\npm;C:\Program Files\CMake\bin;C:\Users\moham\geode\geode.exe;

At the end, the path to Geode is visible. Even after using the refreshenv command built into (I think) Chocolatey, rebooting my computer, using different versions of Windows Terminal (Normal and Preview) and using plain cmd.exe altogether, I still cannot get Geode to run.

TechStudent10 commented 1 year ago

As a workaround, I am just going to have to run Geode from that one specific folder(s).

HJfod commented 1 year ago

The path has to point to the directory with geode.exe, not the exe itself (i.e. change it to C:\Users\moham\geode). I'll make this clearer in the docs

TechStudent10 commented 1 year ago

Ah I feel so dumb for forgetting it. Thanks.

TechStudent10 commented 1 year ago

@HJfod maybe you should also update the steps for installing the Geode CLI and SDK. You first need to run geode sdk install then set the GEODE_SDK environment variable if the command didn't do so already. Then you can run geode config setup without and errors. Then geode sdk install-binaries and done.