-
-
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 completely broken #1665
Comments
This seems to be a common problem as it has also been reported here: |
Same here, all my existing projects are broken because of this update.. Still searching for a fix |
I was having this problem too after updating to version 2.5.2 this morning. I ended up uninstalling Web Essentials from the Extensions and Updates manager, restarting Visual Studio and then manually downloading and installing the 2.5 installer (.vsix file) from here: https://github.com/madskristensen/WebEssentials2013/releases/tag/v2.5. When I next loaded up Visual Studio, the LESS editor was working for me again. |
Same here, unfortunately. Now I'm back to 2.5 version. |
@tgadsden your "fix" works for us too. |
@tgadsden thanks, rolling back to 2.5 worked for me too. |
Same here. Mads should really get someone to test his stuff properly before he pushes through broken release after broken release. |
I have a hunch that this has something to do with the recent inclusion of .weignore rules into the LESS compilation + the Tools > Options > Web Essentials > General > WE Ignore > Show ignore logs > False 2.5 Does tell (against the aforementioned setting) when a .less file is ignored whereas 2.5.2 will simply error out with no logs what so ever. |
@codepic |
@tgadsden Thanks, your fix works. 👍 |
I tracked down a way to fix this with the current version of WE (the issue is due to either NodeJS not being packed right or extracted right - not sure which). So to fix this simply reinstall node and set the modules back up
iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/iamkrillin/e5e95f0193eef4358e09/raw/6dcf83b0620f2fe9850ae456f6e1bed629816862/we.ps1')) You can view the script here. https://gist.github.com/iamkrillin/e5e95f0193eef4358e09#file-we-ps1 |
@iamkrillin Your script works. Thanks. Only thing though is at line 22 the "node.exe" needs to be "\node.exe" or it stores the downloaded node.exe in nodejs\toolsnode.exe and breaks the rest of the script. |
@Opiants thanks for pointing that out.. Not sure how I missed that. |
@iamkrillin As @Opiants said - your script works, but... (there's always but) when I'm trying to save .less file I've got in output: "LESS: Compiling Site.less" message and basically nothing else happens from that point. I need to roll back to 2.5 version again. (: |
@macgyver76 I updated the script, turns out I was not writing the "package.json" during the script. |
Can we get this fix in the nightly? |
@iamkrillin Your script worked for me, thanks. SASS is compiling once again. |
I installed VS Update 4 and the latest Web Essentials and SCSS didn't complie on save. I tried iamkrillin 's powershell (with VS closed) and when I save a SCSS file I now get 11/24/2014 5:42:53 PM: Something went wrong reaching: http://127.0.0.1:39877/?service=SCSS&sourceFileName=%somelongpath&precision=5&outputStyle=expanded&sourceMapURL& I removed the latest Web Essentials and installed 2.5 from https://github.com/madskristensen/WebEssentials2013/releases/tag/v2.5 and still get the same errors. I appreciate Mads work on WE but it really sucks that my office wasted 4 people x 4 hours trying to fix our SASS compilation after updating WE. Anyone have any suggestions on how to fix? |
Revert to version 2.5.1 solved this issue in my case. |
@iamkrillin Thank you, sir. Believe it or not, it works right now. |
Totally agree with rjgotten. Web Essentials is well named - it's essential for any web developer using Visual Studio. However, it is never stable and there seem to be issues with every new release. Microsoft should be including most of the Web Essentials functionality as standard in Visual Studio and make sure it is stable. Currently is costing too much time in lost productivity getting it to work properly. |
@OnenessUK "Microsoft should be including most of the Web Essentials functionality as standard in Visual Studio and make sure it is stable." - actually, they are including stuff from WE. Maybe just a bit slowly... |
same trouble. I agree that VS MAY provide this kind of features native. |
Actually, less v2.0 presented some breaking changes. I have made changes to conform with new API. Yet, there is one source-map issue to fix. Details can be found at: less/less.js#2310. Hopefully, it will be resolved soon. I will then push the code and we will have a new release. /cc @madskristensen, @SLaks |
This is fixed by #1675. |
I just installed WE 2.5.3 and less is compiling now. Thanks @madskristensen for pushing the fix out quickly. Keep up the very useful work. |
On creating and opening a .less file:
1/ Preview pane shows message: "Compilation Error occurred (see error list to navigate to the error location):"
2/ .css file does not get generated
3/ Error list remains empty
Choosing Web Essentials | Re-compile all Less Files (Alt-Sh-Y) also fails to generate .css.
This worked for me in previous versions. Now it has completely broken my project!
Web Esssentials V2.5.2
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.50938
The text was updated successfully, but these errors were encountered: