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
hohwille opened this issue
Aug 4, 2023
· 1 comment
Labels
bugSomething isn't workingscriptsrelated to shell scripts (bash and CMD)updaterelated to updating software or the entire devonfw-idewindowsspecific for Microsoft Windows OS
After running devon ide update scripts, I do not only want to have my current IDE installation updated to the latest version (if an update is available) but also have the global scripts ~/.devon/devon and ~/scripts/devon.bat updated to the latest version.
Actual behavior
On windows the scripts of the previous release that I did run the devon ide update scripts on are installed in my home directory.
In case I have a very old instance of devonfw-ide this can cause problems as I then get that very old devon scripts installed globally that could break all my newly updated installations.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
go to an old installation of devonfw-ide on a Windows machine
From #1032:
I guess a general problem is that we are obviously running the "old" version of the devon script to trigger the update. On windows this is causing issues with file locks as windows is locking the script while it is running so it cannot replace itself. As a workaround we do that asynchronously. Therefore, we cannot invoke the "fix" synchronously in this case.
The magic spots related to this can be found here:
The text was updated successfully, but these errors were encountered:
hohwille
added
bug
Something isn't working
windows
specific for Microsoft Windows OS
scripts
related to shell scripts (bash and CMD)
update
related to updating software or the entire devonfw-ide
labels
Aug 4, 2023
bugSomething isn't workingscriptsrelated to shell scripts (bash and CMD)updaterelated to updating software or the entire devonfw-idewindowsspecific for Microsoft Windows OS
Expected behavior
After running
devon ide update scripts
, I do not only want to have my current IDE installation updated to the latest version (if an update is available) but also have the global scripts~/.devon/devon
and~/scripts/devon.bat
updated to the latest version.Actual behavior
On windows the scripts of the previous release that I did run the
devon ide update scripts
on are installed in my home directory.In case I have a very old instance of devonfw-ide this can cause problems as I then get that very old devon scripts installed globally that could break all my newly updated installations.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
devon ide update scripts
devon -v
Related/Dependent Issues
Comments/Hints:
From #1032:
I guess a general problem is that we are obviously running the "old" version of the devon script to trigger the update. On windows this is causing issues with file locks as windows is locking the script while it is running so it cannot replace itself. As a workaround we do that asynchronously. Therefore, we cannot invoke the "fix" synchronously in this case.
The magic spots related to this can be found here:
ide/scripts/src/main/resources/scripts/functions
Line 834 in 70baf93
ide/scripts/src/main/resources/scripts/functions
Lines 777 to 779 in 70baf93
Affected version:
The text was updated successfully, but these errors were encountered: