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

Debugging Errors #118

Open
seyonv opened this issue Apr 16, 2016 · 1 comment
Open

Debugging Errors #118

seyonv opened this issue Apr 16, 2016 · 1 comment

Comments

@seyonv
Copy link

seyonv commented Apr 16, 2016

Sorry if this is not appropriate to be marked as an issue. I thought this may be an appropriate place as I'm specifically wondering about debugging LESS when using less-rails(.css.less files).

How do you debug errors in your .css.less file?

If I simply forget a semicolon in the file, when I load the file in the browser, I get
Less:Error at /Unrecognised input (in .../lc3.css.less)

It only tells me the filename where the error is but no indication as to what line the error occurs on

What I'm currently doing is running $lessc app/assets/stylesheets/lc3.css.less
which tells me the line there's a "parse error" on.

Seems like an inefficient way to do it though, was wondering if anyone could share their process[detailed :O] for debugging LESS (and if they use source maps or something else to be able to edit live in browser)

@krtschmr
Copy link

i tried to include semantic-ui today which is using shitty less and all i get is

/home/tim/.rvm/gems/ruby-2.6.3/gems/less-2.6.0/lib/less/parser.rb:74:in block (2 levels) in parse': expected ')' got 'o' (Less::Error)`

i can go line by line and always get this. i don't know what any error should mean. i wasted already 1 hour on my livestream with this and my viewers find it hilarious to see that i'm not capable of including a 3rd party library. i blame semantic-ui for it tho.

if there would be a solid error message, life would be easier

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

No branches or pull requests

2 participants