-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
SASS compiler fails to compile rgba(#xxx, yy)
value with php 7.4
#5058
Comments
rgba(#xxx, yy)
value with php 7.4
@TimFoerster please try switching to the Laravel 6 branch and let us know if it's still a problem there. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
I have some problem |
I have switched to the Laravel 6 branch and a problem still remains
Description:SASS file with &__overlay {
background-color: rgba($link, 0.95);
} I had an error:
I have switched to the Laravel 6 branch (wip/laravel-6), but the problem still remains. |
for what it's worth it seems to be only that particular CSS function not compiling... I tested these:
|
@jaxwilko if you're feeling bored maybe you could take a look at this? |
@rwcorbett when I add your code to a file then include it with: <link href="{{ ['assets/scss/test.scss']|theme }}" rel="stylesheet"> The output is: .journeyChoosePathBtns button {
background: red !important;
background: #ff0000 !important;
background: #ff00007c !important;
background: rgba(200, 0, 0, 0.9) !important;
background: #c80000 !important;
background: rgba(255, 0, 0, 0.9) !important;
background: rgba(255, 0, 0, 0.9) !important;
background: rgba(255, 0, 0, 0.9) !important; } In both php7.3 & php7.4 Could you give me a pointer in how to replicate the issue? |
Okay let me clarify - we were using this method of calling the stylesheet: <?php
function onStart() {
$this->addCss(['assets/scss/test.scss']);
}
?> Also please note the specific syntax of the SASS This is the format that does not work: .journeyChoosePathBtns {
button {
background: rgba(#ff0000,0.9) !important;
}
}
test.scss ==> test.zip In your code you are using the 4 param Is this due to the SASS lib being used? 'Dart Sass' vs 'LibSass' vs 'Ruby Sass'? |
@rwcorbett the way I read what @jaxwilko said was that the RESULTING css once compiled was converted to rgba(r, g, b, a), but he used rgba(#rgb, a) in the source scss file. |
@rwcorbett For reference, I also tested this on 1.1 branch (Laravel 6) using the following: file
I included this in my layout like below:
And in my broswer debug tool, I see the following: |
I also tested including the asset in the page's code section like below, and the result is the same as above:
|
Just tested on branch 1.0 (Laravel 5.5) and it works the same... |
Closing unless someone can provide detailed reproduction instructions. |
Thanks @LukeTowers & @mjauvin et al... it is definitely not 'mission critical' enough to explore further debugging, I think for sure close this. It might just be a PEBKAC error - I have only been using Laravel/OctCMS for ~ 6 months. |
I think this was fixed here: scssphp/scssphp@033accd |
I think the problem is in this old project: leafo/scssphp. When I updated the Compiler.php with given Gauntry version, everything worked like a charm. This problem with SCSS-compile came with php7.4 but does not exists with lower versions. Would it be a good choice to change this functionality to work with different solution? What do you think @LukeTowers, @mjauvin? |
There are other problems with the asset compiler on branch 1.0 using php 7.4,not sure if they're all related to this problem. If so, then it might be worth fixing, otherwise I suggest updating to the 1.1 branch where the problem does not exist. |
@mediaclinic we're not going to do anything about it on 1.0. AFAIK it's fixed on 1.1, so use that instead. If there are problems on 1.1 then create a new issue with those details please. |
@LukeTowers does this mean this fix / new asset compiler will be included in a future October CMS update? (still having this problem with .scss files on build 471 with PHP7.4) |
@DigiGNOSIS it's already present in the latest version of October. The marketplace is being worked on to deliver 1.1 updates, but until then you can use composer. |
still having this issue, any updates on how to solve it? |
Hi @mrelliot69 This was fixed long ago. Make sure you are using the latest version. If you need help with October CMS, please contact the helpdesk: https://octobercms.com/contact |
Description:
SASS file with
should compile with php 7.4, but fails
related to leafo/scssphp#710
waiting for https://github.com/assetic-php/assetic/tree/2.0/dev migration?
The text was updated successfully, but these errors were encountered: