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

attempts to decompress file that does not exist #13

Closed
tgstaples opened this issue Aug 19, 2021 · 1 comment
Closed

attempts to decompress file that does not exist #13

tgstaples opened this issue Aug 19, 2021 · 1 comment
Assignees

Comments

@tgstaples
Copy link

Compressor seems to attempt to operate on a file that does not exist. This can be reproduced when view a package file via the command palette. Maybe an "os.path.isfile()" call would fix the problem?

Traceback (most recent call last):
File "/eda/sublime/sublime_text_3_build_3211/sublime_plugin.py", line 478, in run_callback
expr()
File "/eda/sublime/sublime_text_3_build_3211/sublime_plugin.py", line 517, in
run_callback('on_load', callback, lambda: callback.on_load(v))
File "/home/tgstaples/.config/sublime-text-3/Installed Packages/Compressor.sublime-package/Compressor.py", line 278, in on_load
load_decompress(view)
File "/home/tgstaples/.config/sublime-text-3/Installed Packages/Compressor.sublime-package/Compressor.py", line 224, in load_decompress
suffix = decompress(filepath, file_temp)
File "/home/tgstaples/.config/sublime-text-3/Installed Packages/Compressor.sublime-package/Compressor.py", line 176, in decompress
suffix, decompressor = get_decompressor_by_header(source)
File "/home/tgstaples/.config/sublime-text-3/Installed Packages/Compressor.sublime-package/Compressor.py", line 105, in get_decompressor_by_header
file_size = stat(filename).st_size if filename else 0
FileNotFoundError: [Errno 2] No such file or directory: '/home/tgstaples/.config/sublime-text-3/Packages/Default/colors.py'

@dvhh dvhh self-assigned this Aug 25, 2021
@dvhh
Copy link
Collaborator

dvhh commented Aug 25, 2021

getting a look

dvhh added a commit that referenced this issue Aug 30, 2021
dvhh added a commit that referenced this issue Jun 22, 2023
* bugfix #13

* follow up comment fix
@dvhh dvhh closed this as completed Jul 16, 2023
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