-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
LESS parsing doesn't work #1716
Comments
Hi, i've got a same problem. Did you find fix for it? |
I ended up installing WinLESS and adding a watch to my less files. It compiles automatically on save and shows a popup with the status (succeeded/failed). |
Hey guys, I was having a similar problem all of the sudden (started about a week ago when I did a clean install of the extension). I tracked it down to a bug in less.js. (I just submitted a fix to them last night). Less.js isn't stripping the BOM in imports, so (assuming you had an import in your file) you'd end up with a file that had illegal BOM bytes in the middle of it. Besides causing random syntax errors, it would downright crash autoprefixer in a way that didn't give any error messages to WebEssentials. Out of curiousity, if you have autoprefixer enabled (Tools -> Options -> Web Essentials -> CSS --> Enable Autoprefixer), try turning that off and see if you get a different result. I'll post here shortly a way to patch less.js to fix the underlying problem. |
@FWest98 the compilers are not being removed from WE2013 - only for WE2015 |
@madskristensen and why is it removed from WE2015? Is it integrated in Visual Studio? |
WE cannot provide the flexibility often needed for compiling and this is also an area that causes the most issues. You can see more about why this is and what to use instead here http://channel9.msdn.com/Shows/Web+Camps+TV/Modern-Web-Development-Tools-in-Visual-Studio-2015-with-Mads-Kristensen |
Here's a fix you can try for less.js to fix the BOM import issue I mentioned: First, locate where WebEssentials is installed (this is the fun part)... Should be Inside this folder, navigate to and open (with a text editor): Do a search for "
Replace that last line (
If you have Visual Studio open, exit and start it again. |
Unfortunately, that didn't fix my problem. |
For the BOM issue, you can put Secondly, the error you are having could be due to many reasons. So maybe the following facts (behaviours) would give you some idea what is going wrong in your setup:
Tidbit: do not rely to much on the message |
Similiar to the fixed #1665 , LESS doesn't parse in my setup.
I have Visual Studio Update 4 with WE 2.5.3, in which the parsing should be working again, but it doesn't. When I save the file, or build the solution, I get the following output in the "Output"-window:
"Less: Compiling [file].less"
The status bar at the bottom of the windows shows "Compiling 0 dependent file for", but nothing happens.
The preview pane shows "Compilation Error occurred (see error list to navigate to the error location):"
I already tried to reinstall Web Essentials, downgrading to 2.5 also doesn't work.
Visual Studio Premium 2013, 12.0.31101.00 Update 4
.NET Framework 4.5.51641
Web Essentials 2.5.3
Resharper 9 Update 1 (9.0.20141219.130142)
dotCover 3.0 Update 1 (3.0.20141219.140120)
dotMemory 4.2 Update 1 (4.2.20141219.130159)
dotTrace 6.0 Update 1 (6.0.20141219130145)
The text was updated successfully, but these errors were encountered: