-
Notifications
You must be signed in to change notification settings - Fork 2
Error parsing CSS/Less: error evaluating function round
math functions take numbers as parameters
#353
Comments
Hi, the following test succeed: https://github.com/kylekatarnls/less.php/blob/master/test/Fixtures/math/style.less So I guess, |
I tried with values there and get no failure: https://github.com/Semantic-Org/Semantic-UI/blob/master/src/themes/default/globals/site.variables I will try later with the whole file, but this file may not the the cause. |
Hey Kyle, I posted you a link to a repeatable test case in Gitter private message. Let me know if you can get it from there or should I post it here publicly. |
Kyle, have you had time to look at this? |
Sorry @indreksiitan many project on the fire and I dropped less.php in favor of my own wrapper of the actual less node package. It requires to install node but allows to o use any version of less with no compatibility issue. |
@kylekatarnls - dropping the whole Node.JS ecosystem into our framework really isn't a viable option. I've been trying to tackle this myself for multiple days now, but unfortunately to no success. Is there a way to contact you directly and maybe try to work out a consulting deal to get this fixed? At this moment I'm willing to pay to get this to work as migrating to other solutions are even more costly. |
At the contrary, it's not dropping the node.js ecosystem. less.php is a pure PHP library while less is the native node.js less package just called by PHP. Else you can reach me via: http://contact.selfbuild.fr/ |
Still trying to get Semantic UI to compile. Now getting the following error:
Error parsing CSS/Less: error evaluating function
round
math functions take numbers as parametersUnfortunately my framework composes the Less source dynamically and then tries to compile so the reference given (index:10890) cannot easily be traced back to the exact Less source.
But the error is given in the _math() function in Functions.php, where the code is:
var_dumping $args[0] at that point shows:
So it looks like having an expression inside round() is not handled.
Looking at Semantic source, this is probably the place where it fails:
Is this something easily solvable?
The text was updated successfully, but these errors were encountered: