This repository was archived by the owner on Jun 28, 2018. It is now read-only.
Bug fix for PermissionError #5
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi faruken,
There is a bug in the code.
How to reproduce:
I have multiple less files, and if this is my first time to generate css files, it's working okay. However, when I updated less file after css files were generated, LessCSS threw an exception:
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/lesscss-0.1.4-py3.3.egg/lesscss/init.py", line 71, in init
self.compile()
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/lesscss-0.1.4-py3.3.egg/lesscss/init.py", line 137, in compile
subprocess.call(command_opt, shell=False)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 521, in call
with Popen(_popenargs, *_kwargs) as p:
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 818, in init
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 1416, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
Caused by:
It caused by deleting ['lessc', '-x']
Thank you,
Takashi