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

Unable to change choosenim directory #24281

Open
Domkeykong opened this issue Oct 10, 2024 · 1 comment
Open

Unable to change choosenim directory #24281

Domkeykong opened this issue Oct 10, 2024 · 1 comment

Comments

@Domkeykong
Copy link

Domkeykong commented Oct 10, 2024

Description

cannot change choosenim directory.
It would be nice if we could set the choosenim directory in a config file too, like nimbleDir.

Nim Version

2.2.0
devel@96d6eee9bc33c22defb980fc0953c8e55f363ab2

Current Output

nim produces:

     Error: getAppFilename failed. (Error was: Unable to read /home/christian/.choosenim/current. (Error was: No installation has been chosen. (File missing: /home/christian/.choosenim/current)))
      Info: If unexpected, please report this error to https://github.com/nim-lang/choosenim

nim --choosenimDir:$HOME/.local/share/choosenim/ produces:

command line(1, 2) Error: invalid command line option: '--choosenimDir'

Expected Output

Nim Compiler Version 2.2.0 [Linux: amd64]
Compiled at 2024-10-02
Copyright (c) 2006-2024 by Andreas Rumpf
...

Known Workarounds

calling $HOME/.local/share/choosenim/toolchains/nim-2.2.0/bin/nim directly

Additional Information

No response

@metagn
Copy link
Collaborator

metagn commented Oct 12, 2024

The Nim compiler doesn't have any special behavior for choosenim at all. What are you trying to accomplish?

calling $HOME/.local/share/choosenim/toolchains/nim-2.2.0/bin/nim directly

Maybe you have another installation of nim that is in your path instead of the choosenim installation?

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