oklai / koala

Koala is a GUI application for less, sass and coffeescript compilation, to help web developers to the development more efficient.
http://koala-app.com
Other
3.99k stars 523 forks source link

Line Number Mapping is wrong when using "Autoprefix" #501

Open surjithctly opened 8 years ago

surjithctly commented 8 years ago

Hello,

I found a strange issue, When debugging with Chrome, I found that the Line number + the SCSS File mentioning is wrong.

example : .myclass {} is in _global.scss and below that I have imported _components.scss, Now in chrome, It says .myclass {} is in _components.scss which is not in reality.

This is fixed when I turned off "AutoPrefixer". So I guess its a problem with the prefixer. when adding so many prefix, The line jumps to other file.

So, please fix that, Its really annoying.

Thanks a lot,

~Surjith

mattrixk commented 8 years ago

I have it with the LESS compiler too. I was enjoying not having to use mixins (or codepen) for all the flexbox prefixes.

I'm guessing Koala compiles the LESS into the CSS, creates the map, then adds the prefix stuff to the CSS, making the map inaccurate. If it could wait to create the map file until after the prefixes have been added, then I don't think there would be a problem.

There is another issue for the same thing from almost a year ago also (issue 435).

MIvanIsten commented 7 years ago

The bug still exists in v2.2.0

Elwood-P commented 6 years ago

Still exists. Thanks @mattrixk, turning off autoprefixer whilst developing is a good work around.