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
As a IDEasy user who for some odd reason is ignorant and still using CMD, I want that after setting up my environment with the ide command the according success message gets printed so that I get the appropriate feedback.
Actual behavior
In CMD no message is printed at all no matter if I was inside an IDEasy project or not after calling ide command (ide.bat).
The interesting thing is that there is a tiny difference: If the setup failed because I was not inside an IDEasy project, I get an extra empty line logged.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
for /f "tokens=*"%%iin ('ideasy %IDE_OPTIONS% env') do (
callset%%i
)
ifnot%ERRORLEVEL%==0 (
echo IDE environment variables have been set for %IDE_HOME% in workspace %WORKSPACE%
)
So we want to get the exit code of ideasy ... env command but the way we are doing this seems to be wrong.
The question is if the call set %%i command is also setting (overriding) the ERRORLEVEL variable.
Finally, the major question is why the ERRORLEVEL is never zero - so is there always an error happening?.
The general variable and pattern was already used before in devonfw-ide and used to work: https://github.com/devonfw/ide/blob/8698d2ba7468d34aec82c86fabdb09b5ee84d9c8/scripts/src/main/resources/scripts/devon.bat#L94
Affected version:
OS: Windows
2024.12.001-beta-12_10_02-SNAPSHOT
The text was updated successfully, but these errors were encountered:
Expected behavior
As a IDEasy user who for some odd reason is ignorant and still using CMD, I want that after setting up my environment with the
ide
command the according success message gets printed so that I get the appropriate feedback.Actual behavior
In
CMD
no message is printed at all no matter if I was inside an IDEasy project or not after callingide
command (ide.bat
).The interesting thing is that there is a tiny difference: If the setup failed because I was not inside an IDEasy project, I get an extra empty line logged.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
CMD
inside your IDEasy projectide
commandRelated/Dependent Issues
See #886
Comments/Hints:
IDEasy/cli/src/main/package/bin/ide.bat
Lines 17 to 22 in 75f5043
So we want to get the exit code of
ideasy ... env
command but the way we are doing this seems to be wrong.The question is if the
call set %%i
command is also setting (overriding) theERRORLEVEL
variable.Finally, the major question is why the
ERRORLEVEL
is never zero - so is there always an error happening?.The general variable and pattern was already used before in
devonfw-ide
and used to work:https://github.com/devonfw/ide/blob/8698d2ba7468d34aec82c86fabdb09b5ee84d9c8/scripts/src/main/resources/scripts/devon.bat#L94
Affected version:
The text was updated successfully, but these errors were encountered: