Skip to content
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

Provide more information on less compilation error #1102

Closed
dziedrius opened this issue May 22, 2014 · 10 comments · Fixed by #1106
Closed

Provide more information on less compilation error #1102

dziedrius opened this issue May 22, 2014 · 10 comments · Fixed by #1106

Comments

@dziedrius
Copy link

I have a .less file and web essentials can't compile it, fails with:
/*
Compilation Error.
See error list for details
ParseError: Unrecognised input
*/

The same error was, when I was using wrong sequence of imports, but current file has no imports, web essentials see no errors in that file, so I can just guess what is happening.
May be it would be possible to output somewhere compiler command line that is used to compile current file, that I could copy to my console run.

Version is 2.1.2 (although in visual studio > about it is 1.0)

@am11
Copy link
Contributor

am11 commented May 22, 2014

What does the (detailed) message say in Error List (Ctrl + W, E)?

@dziedrius
Copy link
Author

There are no detailed messages in Error List.

@am11
Copy link
Contributor

am11 commented May 22, 2014

Then unfortunately, there is nothing we can do about it. LESS compiler returns those errors.

For instance, if you miss a closing parenthesis, it would say "ParseError: missing closing )". If you use undefined variable, it would say "NameError: variable @foo is undefined".

The entries in the error list will then show you the same messages, with line and column number. Double-click the message and it will highlight the line where the error occurred. Also, LESS editor will underline the erroneous syntax for you.

@dziedrius
Copy link
Author

That is the problem - there's no messages in error window and LESS editor has not underlined anything. And it compiles fine under another compiler.
Anyway, I'll try to investigate more closely to see if there's no additional information coming from compiler itself.

@am11
Copy link
Contributor

am11 commented May 22, 2014

Can you share the contents of your LESS file via http://gist.github.com or http://pastebin.com?

@dziedrius
Copy link
Author

I'll try to isolate smaller piece, that is causing a problem, now it is quite big file.

@dziedrius
Copy link
Author

Attached screenshot,
web essentials less problem

and gist to reproduce: https://gist.github.com/dziedrius/fbccc76d0f875a66e477

@am11
Copy link
Contributor

am11 commented May 23, 2014

Thank you!

I have found the issue.

The issue is due to 7feac7c in attempt to fix #916.

I thought that won't have side-effects and here we are..

Now we need to solve two problems. :)

am11 added a commit to am11/WebEssentials2013 that referenced this issue May 23, 2014
madskristensen added a commit that referenced this issue May 23, 2014
Compiler: Getting back errors in list (#1102)
@am11
Copy link
Contributor

am11 commented May 23, 2014

This is fixed.
Now the line numbers and the error would appear in both error list and output window log.
Also, the preview window will show the complete error log from compiler, while error list and output window will show just the error message text.

@dziedrius
Copy link
Author

That was quick, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants