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

Intellij Terminal not functional due to corrupted PATH #1395

Open
hohwille opened this issue Nov 25, 2024 · 2 comments
Open

Intellij Terminal not functional due to corrupted PATH #1395

hohwille opened this issue Nov 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hohwille
Copy link
Member

Expected behavior

As a devonfw-ide user, I want to be able to run Intellij via devon command and use the Terminal inside Intellij so that I do not need to leave my IDE for terminal tasks.

Actual behavior

The terminal is broken if Intellij is launched via devonfw-ide:
image

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. setup project: devon ide create legacy-project -
  2. cd legacy-project
  3. devon intellij

Related/Dependent Issues

Comments/Hints:

I retested the same with IDEasy and there it works so definitely a bug in devonfw-ide and not in Intellij.

Affected version:

  • Windows
  • 2024.11.002
@hohwille hohwille added the bug Something isn't working label Nov 25, 2024
@hohwille
Copy link
Member Author

I did echo $PATH inside the Terminal in Intellij and got a very different result compared to doing the same in a git-bash launched from the same project.
I could figure out that the PATH variable inside Intellij Terminal is having proper entries managed from devonfw-ide in MINGW-syntax what is correct for git-bash (so entries separated with : and starting with things like /c/...) but at the end there is the original PATH in Windows syntax (with entries separated by ; and starting with things like C:\). Since all that is mixed up in the same value of the PATH variable, this is definitely messed up and incorrect.
Since entries like /c/Program Files/Git/usr/bin are missing in PATH but are instead in a corrupted entry at the end C:\...;C:\Program Files\Git\usr\bin;... this explains the effect of this bug.
Still the question is why the PATH was broken this way.

@hohwille
Copy link
Member Author

We finally found a workaround for this problem in case you are affected and suffering with this problem:
devonfw/IDEasy#764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant