You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yoktobit opened this issue
Jul 23, 2020
· 3 comments
· Fixed by #434
Labels
blockersevere bug that blocks users in their daily work and has to be fixed asapbugSomething isn't workingscriptsrelated to shell scripts (bash and CMD)windowsspecific for Microsoft Windows OS
Running the devon command line by calling it from the windows explorer context menu or by calling "devon" in any other command line, I would expect devon to set the environment variables for M2_REPO, MAVEN_HOME, MAVEN_OPTS and JAVA_HOME.
Actual behavior
The command sets the variables M2_REPO~, MAVEN_HOME~, MAVEN_OPTS~ and JAVA_HOME~
This leads to a lot of other errors like checking out the repo to a wrong folder or accessing wrong remote repos with wrong credentials.
which would remove any surrounding quotes. But the current script line
set "replacement=%2~%="
adds a "~" instead, what is the issue.
N,B.: This issue is a good example, why my enhancement proposal #261 for a simple DEVONFW_IDE_TRACE hook should be integrated into the scripts of devonfw-ide.
With that in place (I had to re-add it into my local - just updated - devonfw-ide again) I could identify the root cause of this issue by a few simple enough steps:
set DEVONFW_IDE_TRACE=yes
execute devon
locate the first appearance of M2_REPO~ in the trace output ( => line 91)
understand the code - and such identify the error
set DEVONFW_IDE_TRACE=
hohwille
added
blocker
severe bug that blocks users in their daily work and has to be fixed asap
bug
Something isn't working
and removed
bug
Something isn't working
labels
Jul 27, 2020
@yoktobit thanks for reporting this issue. @markusschuh thanks for your investigation.
I am quite confused how this severe bug was neither detected by me nor be the two core-team members that claimed to have tested PR #430
However, murphies law is with us of course and Windows CMD is one of the most confusing and error-prone lang so lets look ahead and get this fixed asap.
As you can see, I have created PR #434 with the fix as proposed by @markusschuh
Any feedback/review would be appreciated.
There is another bug with variable values containing whitespaces in bash that I will also need to fix. Then I will create another release asap to get these fixes out.
blockersevere bug that blocks users in their daily work and has to be fixed asapbugSomething isn't workingscriptsrelated to shell scripts (bash and CMD)windowsspecific for Microsoft Windows OS
Expected behavior
Running the devon command line by calling it from the windows explorer context menu or by calling "devon" in any other command line, I would expect devon to set the environment variables for M2_REPO, MAVEN_HOME, MAVEN_OPTS and JAVA_HOME.
Actual behavior
The command sets the variables M2_REPO~, MAVEN_HOME~, MAVEN_OPTS~ and JAVA_HOME~
This leads to a lot of other errors like checking out the repo to a wrong folder or accessing wrong remote repos with wrong credentials.
Steps to reproduce (bug)
Related/Dependent Issues
#395
#430
Comments/Hints:
By undoing #430 I could solve it temporarily (I have no whitespaces in my project folders).
Affected version:
2020.04.003
The text was updated successfully, but these errors were encountered: