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

Different compilation results with and without libpcre #418

Open
istvandbsd opened this issue Mar 29, 2021 · 0 comments
Open

Different compilation results with and without libpcre #418

istvandbsd opened this issue Mar 29, 2021 · 0 comments

Comments

@istvandbsd
Copy link

Platform: ubuntu 18.04

The same scss fails when installing pyscss without libpcre3-dev:

Command:
python3 -m scss < example.scss

Result:

on line 1 of /<stdin>
Traceback:
File "/usr/local/lib/python3.6/dist-packages/scss/compiler.py", line 349, in manage_children
self._manage_children_impl(rule, scope)
File "/usr/local/lib/python3.6/dist-packages/scss/compiler.py", line 359, in _manage_children_impl
for c_lineno, c_property, c_codestr in locate_blocks(rule.unparsed_contents):
File "/usr/local/lib/python3.6/dist-packages/scss/grammar/scanner.py", line 111, in locate_blocks
.format(lineno, error)
SyntaxError: Couldn't parse block starting on line 114: Block never closed

When libpcre3-dev is present at install (and it can be linked against), the compilation goes through fine.

The way I understand it, there shouldn't be any difference other than performance.

Attached the example I was using.
example.zip

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

1 participant