"math" option in compilerconfig defaults not working
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17k
- Forks
- 3.4k
- Avg merge
- 7h 42m
- Merged PRs (30d)
- 26
Description
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.
https://github.com/failwyn/WebCompiler/issues/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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported compilerconfig.json.defaults configuration and reproduce the floor() failure using the Less compiler, noting the Visual Studio 2022 and WebCompiler context. Compare the math option's behavior with the deprecation warning; done means the configured option handles the reported compilation case without the unexpected warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100