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

How to uninstall / reinstall PackageControl itself? #16

Closed
lursyy opened this issue Apr 9, 2022 · 8 comments
Closed

How to uninstall / reinstall PackageControl itself? #16

lursyy opened this issue Apr 9, 2022 · 8 comments

Comments

@lursyy
Copy link

lursyy commented Apr 9, 2022

Maybe I am blind, but I can't find how to uninstall PackageControl. I am experiencing the same problem as #8 and want to try a reinstall to fix it.

@ueffel
Copy link
Owner

ueffel commented Apr 9, 2022

If you select the PackageControl: Reinstall Package item you should be presented with Packagecontrol in the choices.
Another way you could do it: Select PackageControl: Remove Package then choose Packagecontrol and then use the code snippet from the readme to install it again.

Edit: But that is maybe not possible if the last.run file is damaged and you haven't got the fix for that yet. (#11)
Either you look for the last.run file and delete it or you just use the code snippet from the readme to install the newest version of packagecontrol over your current one.

@lursyy
Copy link
Author

lursyy commented Apr 9, 2022

All of these options just result in PackageControl stuck in the "collecting packages" state:
image

As mentioned above, I am trying to follow this comment from #8.

@ueffel
Copy link
Owner

ueffel commented Apr 9, 2022

Anything in the console?

@lursyy
Copy link
Author

lursyy commented Apr 9, 2022

Right, sorry for not thinking of that myself.

17:46:15.757 ** ERROR: PackageControl.PackageControl: Available packages could not be obtained:
 Traceback (most recent call last):
  File "C:\Users\luisb\AppData\Roaming\Keypirinha\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 410, in _get_available_packages
  File "C:\Users\luisb\AppData\Roaming\Keypirinha\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 512, in _get_last_run
  File "C:\Users\luisb\AppData\Roaming\Keypirinha\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 499, in _make_date
  File "lib\_strptime.py", line 577, in _strptime_datetime
  File "lib\_strptime.py", line 359, in _strptime
ValueError: time data '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00+0000' does not match format '%Y-%m-%dT%H:%M:%S%z'
17:46:15.757 ** ERROR: Error from PackageControl.PackageControl.on_suggest: <class 'TypeError'>: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "C:\Users\luisb\AppData\Roaming\Keypirinha\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 205, in on_suggest

@ueffel
Copy link
Owner

ueffel commented Apr 9, 2022

Are you sure that you're using the latest release?
I'm asking because that error should be not be logged as error but as warning and should be handled in the latest release. You seem to be on release 1.0.2.
If you used the code snippet to install PackageControl again make sure it says 1.0.4 in the URL:

[...]open("https://github.com/ueffel/Keypirinha-PackageControl/releases/download/1.0.4/"+p);[...]

@ueffel
Copy link
Owner

ueffel commented Apr 9, 2022

Also following this comment from #11
you could also just delete the last.run file, which should be located at C:\Users\luisb\AppData\Local\Keypirinha\Packages\PackageControl\last.run on your system.

@lursyy
Copy link
Author

lursyy commented Apr 9, 2022

Ah, you are right. I didn't know I could use this command to update as well (since I couldn't use PackageControl for that). Maybe a note could be added to the installation section (i.e. "Installation / Update")

Thank you!!

@lursyy lursyy closed this as completed Apr 9, 2022
@lursyy
Copy link
Author

lursyy commented Apr 9, 2022

Also following this comment from #11 you could also just delete the last.run file, which should be located at C:\Users\luisb\AppData\Local\Keypirinha\Packages\PackageControl\last.run on your system.

Ah, good to know. So maybe this justifies a small "Troubleshooting" section? 1) (re)install latest version, 2) delete last.run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants