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

devon uninstall on windows buggy #199

Closed
hohwille opened this issue Aug 20, 2019 · 3 comments
Closed

devon uninstall on windows buggy #199

hohwille opened this issue Aug 20, 2019 · 3 comments
Labels
bash related to bash shell or scripts bug Something isn't working windows specific for Microsoft Windows OS
Milestone

Comments

@hohwille
Copy link
Member

I just did a devon ide uninstall after installing beta14 on windows:

C:\projects\cool-project\workspaces\main>devon ide uninstall
Uninstalling devon-ide...
Running command: rm -rf '/c/Users/hohwille/.devon'
Succeeded to run command rm
Running command: rm -rf '/c/cygwin64/home//.devon'
Succeeded to run command rm
To uninstall the windows explorer integrations we need to apply changes to the windows registry:
/c/projects/cool-project/system/windows/devon-uninstall.reg
Simply confirm the popup with Yes or otherwise review and merge the registry file manually.
The operation completed successfully.
So sad that you did not like devon-ide. It has been uninstalled from your system.
You can now manually delete /c/projects/cool-project to remove it completely.
Goodbye and have a nice day!

As you can see here:

Running command: rm -rf '/c/cygwin64/home//.devon'

and here:
https://github.com/devonfw/devon-ide/blob/c1eea27ef10e9cc21dc5a870f31d74f6e8efac88/scripts/src/main/resources/scripts/command/ide#L169

It seems that for some odd reason bash can not resolve $HOME here?
I have no clue why this can happen as $HOME should always be present, but murphies law is always true...

@hohwille hohwille added bug Something isn't working windows specific for Microsoft Windows OS bash related to bash shell or scripts labels Aug 20, 2019
@hohwille hohwille added this to the release:3.0.0 milestone Aug 20, 2019
@hohwille hohwille changed the title devon uninstall on windows not cleaning cygwin home as $HOME is not resolved devon uninstall on windows buggy Aug 20, 2019
@hohwille
Copy link
Member Author

Also %USERPROFILE%\scripts\devon.bat does not get removed and remains in path leading to odd effects:

C:\projects\cool-project\workspaces\main>devon help
/usr/bin/bash: devon: No such file or directory
/usr/bin/bash: /c/Users/hohwille/.devon/devon: No such file or directory

@hohwille
Copy link
Member Author

Same problem as #200: devon command also gets installed into cygwin home but then was never updated:

hohwille@laptop /cygdrive/c/projects/cool-project/
$ alias
alias devon='source ~/.devon/devon'
$ devon -v
3.0.0-beta5

hohwille added a commit that referenced this issue Aug 20, 2019
#178: also use reg import for uninstall avoiding admin rights
#191: fixed conflict with repo and shared software
#198: power-shell improvement
#199: also remove devon.bat on uninstall
#200: update installed devon[.bat] if newer
#202: fixed version compare and added tests
#203: workaround as cp -u is not working on MacOS
@hohwille
Copy link
Member Author

fixed (however might need to run scripts/devon from new devon-ide installation in cygwin once)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bash related to bash shell or scripts bug Something isn't working windows specific for Microsoft Windows OS
Projects
None yet
Development

No branches or pull requests

1 participant