We upgraded from 2.0.1 to 2.4.0 and ran into a strange issue with a Sassc process going into an infinite loop on one specific stylesheet. I stripped down the stylesheet to its bare minimum to have the following minimal repro:
When I run the above, the process never completes and the CPU goes through the roof. Removing only the last @extend results in the following output:
Traceback (most recent call last):
2: from sass.rb:72:in `<main>'
1: from /Users/pmusaraj/.gem/ruby/2.6.5/gems/sassc-2.4.0/lib/sassc/engine.rb:50:in `render'
stdin:34: Error: The target selector was not found. (SassC::SyntaxError)
Use "@extend .-small !optional" to avoid this error.
on line 34 of stdin
>> @extend .btn.-small;
Note that I am fully aware the SCSS syntax above is wrong, but shouldn't this return the error message at all times, no matter how many occurrences of the broken @extends are used?
We upgraded from 2.0.1 to 2.4.0 and ran into a strange issue with a Sassc process going into an infinite loop on one specific stylesheet. I stripped down the stylesheet to its bare minimum to have the following minimal repro:
When I run the above, the process never completes and the CPU goes through the roof. Removing only the last @extend results in the following output:
Note that I am fully aware the SCSS syntax above is wrong, but shouldn't this return the error message at all times, no matter how many occurrences of the broken
@extend
s are used?