-
Notifications
You must be signed in to change notification settings - Fork 250
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
KeyError: 'sublime2' when creating a backup #202
Comments
Hmm. This error should not be possible... Can you provide your configuration file? (Located at Some important methods to look at when debugging this may be: Note: I just wiped my backup and regenerated it using what's currently on master. I didn't get the same error you did, but I want to chase this down. It could definitely be an error in the code, but I'm not sure why it wouldn't occur on my system. |
Sure, this is the content of my configuration file.
I've checked my Application Support directory and I don't have any Sublime text folder there. |
This is alright. I don't have Sublime 2 installed, but I do have Sublime 3. |
Gotcha, seems really strange then why he's trowing an error. |
Alright, I'm getting the same error now. I don't know why this didn't happen during any of my testing or the demo... I can look through the git history to see when this error was introduced, but to solve it, I'm just going to remove the ability to back up a list of installed Sublime [2/3] packages. It's redundant, since I'm backing up the entirety of the Sublime folder in the configs backup. Changes being pushed to a testing branch for you in a moment. |
https://github.com/alichtman/shallow-backup/tree/key-error-fixes Note: This is completely untested (and therefore not on If it fixes this issue for you, lmk and I'll merge it in. Sidenote: Thanks for the bug reports. It's important that backup software works perfectly. I do a major testing spree every time before I make a new release, and I'm not sure how I missed this. One of my long term goals is to have code coverage on all the critical functions. I'm sitting at about 50% coverage at the moment, and that could definitely be improved. |
I've just tried it and it works now! |
Perfect. I'll merge this in and push a new version to PyPi. |
Fix #202. Pending feedback from @AlexanderProd
Seems like I'm on a bug hunting streak today, while attempting to create the first backup of my machine I've encountered this error.
This happened after it backuped Atom.
I don't have sublime2 or another sublime installed on my machine.
I'm using the shallow-backup version that fixes #200 .
Python version: 3.7.1
pip3: 18.1
macOS: 10.14.2
The text was updated successfully, but these errors were encountered: