Closed (fixed)
Project:
SCSS/Less Compiler
Version:
8.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Aug 2019 at 03:58 UTC
Updated:
23 Sep 2019 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rhys commentedI've attached a patch that fixes the specific problem, but I'm unsure if this is the correct way to approach the solution.
Comment #3
rhys commentedThis adds one other small fix, so the spacing is correct.
Comment #4
rhys commentedI'm fairly confident that this covers my particular use case, but I'd like some feedback on it.
Comment #5
seonic commentedIt's a scssphp compiler error, I've checked last version of phpscss, and this error still exists, better create issue on github project page (https://github.com/scssphp/scssphp) instead of fixing it in drupal module, scssphp under active development. Compiler.php in module practically same as Compiler.php in scssphp with few modifications. It modify url function to compile path to static resources relative to theme/module, it could be implemented via regex on compiled css, but i think it's not effective, better to modify function which compile path.
On this weekend i will update compileValue function in module, to last version, now it has some difference from scssphp, but in last version error still exists and check scssphp dev branch, and if error will still exists i'll create issue on github page. Or you can if you have time, especially since you already have a solution to this problem :)
Comment #6
rhys commentedI'm not sure how to differentiate which code is specifically yours, and which is from scssphp. I'll wait until after you do an update, then try to figure out from there what changes make the most sense.
Comment #7
seonic commentedChanged this ugly decision of copy paste parent class by parent::compileValue(); Now it will always be in actual state, you still can modify logic before parent::compileValue() call.
What about your problem, i have opened issue with bug example, https://github.com/scssphp/scssphp/issues/40
Bug confirmed and workaround added, until the error fix.