chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.6k stars 142 forks source link

Update fails with Clink 1.6.19 #652

Closed d4k0 closed 2 months ago

d4k0 commented 2 months ago

I use Cmder, which uses Clink internally. Today I used the clink update command to update from version 1.6.18 to 1.6.19, which worked.

However, when I now run clink update on version 1.6.19, I get the following error message:

~clink~/app/update.lua:106: attempt to index local 'line' (a number value)
The update attempt failed for an unknown reason.

The cause could be related to the following change:

https://github.com/chrisant996/clink/commit/261467549ca4473a5706155f12ee84e7c8d3e9b7

chrisant996 commented 2 months ago

Oh man. Thanks for reporting this. I'll fix it ASAP.

chrisant996 commented 2 months ago

Ugh. I've deleted the v1.6.19 to prevent it from getting updated onto any more computers while waiting for v1.6.20 to finish building and uploading.

Any computer that has already updated to v1.6.19 will require a manual update, since the updater got broken. 😧

d4k0 commented 2 months ago

Thanks for the quick fix!

MagicAndre1981 commented 2 months ago

I also see this, here winget allows me to update:

C:\Windows\System32>clink update
~clink~/app/update.lua:106: attempt to index local 'line' (a number value)
The update attempt failed for an unknown reason.

C:\Windows\System32>winget upgrade --id chrisant996.Clink -e
Gefunden Clink [chrisant996.Clink] Version 1.6.20
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen fΓΌr Pakete von Drittanbietern.
Download lΓ€uft https://github.com/chrisant996/clink/releases/download/v1.6.20/clink.1.6.20.00f214_setup.exe
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  2.35 MB / 2.35 MB
Der Installer-Hash wurde erfolgreich ΓΌberprΓΌft
Paketinstallation wird gestartet...
Erfolgreich installiert
jczanfona commented 2 months ago

How to manual update?

Dr-Sparx commented 2 months ago

How to manual update?

Download the current release (1.6.20) from https://github.com/chrisant996/clink/releases and install over your existing installation. It keeps all settings.

MagicAndre1981 commented 2 months ago

How to manual update?

under Windows 10 or 11 open cmd.exe as admin and run the command I've posted.

winget upgrade --id chrisant996.Clink -e

or download the installer as mentioned by Dr-Sparx

chrisant996 commented 2 months ago

How to manual update?

under Windows 10 or 11 open cmd.exe as admin and run the command I've posted.

winget upgrade --id chrisant996.Clink -e

or download the installer as mentioned by Dr-Sparx

That only works if you originally used winget to install Clink.

chrisant996 commented 2 months ago

How to manually update Clink:

It depends on how you originally installed Clink.