Skip to content

"math" option in compilerconfig defaults not working #3773

Open
@pmonty

Description

@pmonty

I am trying to compile some rather large files and was getting
SyntaxError: Error evaluating function 'floor': argument must be a number in \assets\css\less\searchbox.less LRM C:\Projects\LRM\LRM\assets\less\custom.less 232

so added the math option always to my compilerconfig.json.defaults file:

{
  "compilers": {
    "less": {
      "autoPrefix": "",
      "cssComb": "none",
      "ieCompat": true,
      "strictUnits": false,
      "relativeUrls": true,
      "rootPath": "",
      "sourceMapRoot": "",
      "sourceMapBasePath": "",
      "sourceMap": false,
      "math": "always"
    },

but now I get:
--math=always is deprecated and will be removed in the future.

I started a thread over here since it might be a visual studio thing but they told me to come here.
failwyn/WebCompiler#68

Less version: I imagine would be the latest stable as I installed the most recent version of the extension in visual studio
Visual Studio 2022
Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions