Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

KO11 linux upgrade "File exists" #2899

Open agroszer opened 6 years ago

agroszer commented 6 years ago

Have a previous alpha installed, wanted to upgrade to the latest build.

Short Summary

adi@ebi:/tmp/Komodo-IDE-11.0.0-alpha1-90491-linux-x86_64 $ ./install.sh 
Enter directory in which to install Komodo. Leave blank and
press 'Enter' to use the default [~/Komodo-IDE-11].
Install directory: 

'~/Komodo-IDE-11' already exists. Installing over an existing
Komodo installation may have unexpected results. Are you
sure you would like to proceed with the installation?
Proceed? [y/N] Y

install: error: [Errno 17] File exists: '/home/adi/Komodo-IDE-11/lib'
 Aug-19T08:06:02 1999

of course the fix is easy, just remove /home/adi/Komodo-IDE-11

Naatan commented 6 years ago

of course the fix is easy, just remove /home/adi/Komodo-IDE-11

Exactly.

./install.sh is not for upgrading the application, so you have to remove the target first.

agroszer commented 6 years ago

erm, then it should not ask to overwrite?

Naatan commented 6 years ago

I don't see why it wouldn't, seems like a useful option to give the user.

Defman21 commented 6 years ago

If it fails to overwrite why asking in the first place? Just tell the user to remove the installation first (or ask for it), if they answers no - stop the installation :)

Naatan commented 6 years ago

Oh my bad, I missed that part.