mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
67 stars 23 forks source link

This command only works for .less files. #17

Closed sagive closed 7 years ago

sagive commented 7 years ago

Hey, after the last update i have been getting this in last files "This command only works for .less files."

This happens when using a less file ofcourse (when would this message apear otherwise?) i dont know if this is a bug

This is my settings (worked before update):

     "less.compile": {
         "compress":  true,  // true => remove surplus whitespace
         "sourceMap": true,  // true => generate source maps (.css.map files)
         "out":       true // false => DON'T output .css files (overridable per-file, see below)
    },

Even when trying to directly compile the file (f1 compile LESS to CSS) i am getting "This command only works for .less files."

File name is "main.less"

mrcrowl commented 7 years ago

I have seen this message when saving multiple files at the same time (e.g. Save all)

Would this be likely in your case? Or does it occur even when saving just a single file.

Either way, it's a bug that should be fixed. On Thu, 4 May 2017 at 4:28 AM, Sagive SEO notifications@github.com wrote:

Hey, after the last update i have been getting this in last files "This command only works for .less files."

This happens when using a less file ofcourse (when would this message apear otherwise?) i dont know if this is a bug

This is my settings (worked before update):

 "less.compile": {
     "compress":  true,  // true => remove surplus whitespace
     "sourceMap": true,  // true => generate source maps (.css.map files)
     "out":       true // false => DON'T output .css files (overridable per-file, see below)
},

Even when trying to directly compile the file (f1 compile LESS to CSS) i am getting "This command only works for .less files."

File name is "main.less"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mrcrowl/vscode-easy-less/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtooDhlM6qUHYmnlWWM8OsqPt9c1eDpks5r2Ks3gaJpZM4NPpT1 .

sagive commented 7 years ago

i am only saving one file (only one file open)... Currently can't use this plugin (which i love! ;) ) Anything i can do?

I am using VScode, is there a workaround? Can i install a previos version? Is there a way to manually install an older version?

mrcrowl commented 7 years ago

Here's the previous version as a .vsix file.

You can install via Extensions > Triple dot menu > Install from vsix

mrcrowl commented 7 years ago

I've tried, but I can't repro this issue you're describing. Are there any other extensions you've installed recently that might have affected this?

sagive commented 7 years ago

Thank you very much for the quick response and the awesome extension. ;)

I already left the office. But... i just upgraded at home, had the same problem, restarted VScode - (not "reload" < clicking that button didnt help) and now it WORKS ;))

mrcrowl commented 7 years ago

@sagive are you happy for this issue to be closed?

sagive commented 7 years ago

sure thing, thanks a lot - hopfully if someone encounter similar problem it will apear in the google search results ;)