Git Product home page Git Product logo

Comments (12)

failwyn avatar failwyn commented on August 17, 2024 1

@pmonty

"less": "^4.1.3",
"less-plugin-autoprefix": "^2.0.0",
"less-plugin-csscomb": "^0.0.2"

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

I don't see it mentioned in their changelog, but I would ask the developers of less.js

https://github.com/less/less.js

from webcompiler.

pmonty avatar pmonty commented on August 17, 2024

started a thread over there but no response yet. What version of less does this extension use?

from webcompiler.

pmonty avatar pmonty commented on August 17, 2024

@failwyn just commented in my less.js issue and noticed it is a warning that is thrown.
But this compiler extension is giving me

C:\Projects\LRM\LRM\assets\less\custom.less : WebCompiler error 0: --math=always is deprecated and will be removed in the future.

is it possible this extension treats warnings as errors? and is there a way to change this?

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

It's possible, I haven't been through all of the source, but I can dig around and take a look.

Edit: based on the code, it doesn't look like this is the case, but I will try to get time to setup a use case to step through it asap.

if (result.Errors.Any(e => !e.IsWarning)) return result;

from webcompiler.

pmonty avatar pmonty commented on August 17, 2024

Yeh noticed that line of code and started thinking it might be something else instead. Yeh if you get a chance let me know what the result is.

Cause I just found the error line it seems to be throwing https://github.com/madskristensen/WebCompiler/blob/c01fbbf785ea16a9b8784b1697e3095c3ffd0596/src/WebCompiler/MSBuild/CompilerBuildTask.cs#L59 so that makes me think that isWarning or logic around there is doing something maybe incorrectly.

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

That line logs Errors and Warnings, but doesn't throw anything, so it shouldn't affect the result.

from webcompiler.

pmonty avatar pmonty commented on August 17, 2024

Strange that the warning message in less is thrown as an error. Might wait to hear from the less team and go from there.

from webcompiler.

pmonty avatar pmonty commented on August 17, 2024

Is it a better option to maybe use something other than "always" and then fix up issues? But in saying that there might be hundreds of errors.

Is it possible for me to compile a certain version of this and install that specific version manually? Maybe then I can try have logic if the error contains "always" then allow it to skip.

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

I don’t really want to start introducing hacks to support deprecated parts of the LESS library; if the authors don’t want to support math=always, I’d say the best option would be to update the LESS files to be compliant or install an older version of WebCompiler and turn off automatic updates; there’s always going to be issues with backwards compatibility, but I feel like supporting the current language versions is more important.

from webcompiler.

pmonty avatar pmonty commented on August 17, 2024

Is there a way to install a specific version in visual studio? Or do I need to clone this repo and make necessary changes then build?

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

There's supposedly a way to browse Version History on Visual Studio Marketplace, but I can't find it; try this version.

https://marketplace.visualstudio.com/_apis/public/gallery/publishers/Failwyn/vsextensions/WebCompiler64/1.14.8/vspackage

// to download older versions, just change the version number in the url

from webcompiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.