-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add quick option to turn on/off debugging rules for easier debugging in dev tools #60
Comments
I'd love to see this feature. By the way, is there any hard option to do this? Some config file maybe? |
I looked all morning and tried editing the less.js that ships with WinLess. I tried adding less.env = "development" and less.dumpLineNumbers = "all" to various locations and still nothing happens. I opened the C# project and saw that it uses lessc cmd line app to compile the less. I'm not sure how to tell lessc to dumpLineNumbers... |
Oh actually I just stumbled onto it. There is a flag --line-numbers that lessc accepts. Someone would have to add the option in to the C#, because I've never worked with C# before. I think on line 91 in LessCompiler.cs we'd have to add a condition block similar to the minify block that adds the --line-numbers flag. That's all I got! |
At the moment WinLess doesn't let you use all the options which lessc actually offers. The main reason for this is the interface: how can I add those features in such a way that the interface doesn't become bloated? When we run
Of above options the following options are the options which might be useful, but are currently ignored by WinLess:
My thoughts about these:
The question remains: how should I add these to WinLess without making the interface to bloated? I don't think adding 4 columns to the filelist is a good idea. Should WinLess get a third pane where you can define all options for the file which you have currently selected: |
Hey, for me even adding these options in compiler settings works. My main concern is being able to use debug info because, although wide support for less debugging isn't available yet it will is an amazing improvement in CSS preprocessing. Honestly, I don't think ease of use of the tool is that much of a concern. Any way works for me at least :) |
I'm with @szilveszterandras for the most part. What I'd love most is just the debugging, but I see how adding all of these features could be nice too. I'm personally not opposed to 4 new columns if that would provide me a quicker and easier to glance at view of my compile settings. So I wouldn't rule it out. I like your idea about a new pane though too. Honestly WinLess is a set it and forget it kind of thing, you pretty much set it up at the beginning of a project and just keep it running in the bg, so you may want to go for quickest easiest implementation. |
@marklagendijk Just bumped into problem of using debug line number in FireLess extension while compiling in WinLess. It would be great if you just add a basic support in the beginning for this option. Let's say a new checkbox in File->Settings which will enable global env: "development" and dumpLineNumbers: "all" (e.g.). Should be easy and quick to implement, you will make developers happy and then we can discuss a way to display more detailed settings for less compiler in your great app. :) |
👍 |
👍 Would love to see this added. |
Nothing new about this? It should be really simple to add this feature, for example there can be some button in that list for every *.less file and developer can insert here any of custom options of these, what do you say? |
+1 Even if there was a config file that could be edited to enable this it would be a vast improvement over what we have now. |
Closing all issues. WinLess 2.x is a rewrite of WinLess using node-webkit. The development of WinLess 2.0 can be followed here. Most of the work is done, however, since my priorities have shifted it is now not clear whether it will ever be finished. Feature requests will only be accepted after the 2.0 release. |
I'd like an easy way to enable the dumpLineNumbers feature which will allow me to more easily debug my compiled css using Chrome (or other dev tools). See the Debugging sub-section in the Usage section. http://lesscss.org/#usage
I think this could be implemented similar to the minify checkbox column.
The text was updated successfully, but these errors were encountered: