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

.zshrc config overwrites Hermit managed PATH #41

Open
OmarTawfik opened this issue Mar 16, 2022 · 1 comment
Open

.zshrc config overwrites Hermit managed PATH #41

OmarTawfik opened this issue Mar 16, 2022 · 1 comment

Comments

@OmarTawfik
Copy link
Contributor

OmarTawfik commented Mar 16, 2022

Hermit working correctly from Terminal:

node -v
# prints v17.6.0 (my global binary)

mkdir ~/Downloads/ij-test
cd ~/Downloads/ij-test
hermit init
hermit install node

node -v
# prints v17.7.1 (hermit binary)

However, it is failing within IJ:

  1. Load IJ.
  2. Open the folder ~/Downloads/ij-test.
  3. Trust it.
  4. Enable Hermit plugin
  5. Open IJ Terminal
node -v
# prints v17.6.0 (my global binary)

source ./bin/activate-hermit
node -v
# prints v17.7.1 (hermit binary)
@OmarTawfik
Copy link
Contributor Author

from @jvmakine

Default Homebrew is not in path on M1, so it needs to be added manually, which probably ends up overriding the plugin.
Actually, that probably should be doable using the _INTELLIJ_FORCE_PREPEND_PATH hacks:

// IntelliJ terminal injects a custom .zshenv that prepends this to the path to force
// GO SDK binary to be first in the path.
envs.remove("_INTELLIJ_FORCE_PREPEND_PATH")

@jvmakine jvmakine changed the title Hermit not activated on M1 laptops .zshrc config overwrites Hermit managed env variables Mar 16, 2022
@jvmakine jvmakine changed the title .zshrc config overwrites Hermit managed env variables .zshrc config overwrites Hermit managed PATH Mar 16, 2022
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

1 participant