Categories


Authors:
acdvorak

LESS CSS Compiler

Products: IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, 0xDBE

Vendor: Andrew C. Dvorak

Email: N/A

Website: N/A

SourceCode: https://github.com/acdvorak/intellij-lessc-plugin

License: http://www.apache.org/licenses/LICENSE-2.0

Bugtracker page

Description:

Watches directories for changes to LESS files and compiles changed files to CSS.

Supports LESS 1.6.0.

Features: Recursive directory monitoring

When a LESS file in a watched directory (or one of its subdirectories) is modified and saved, it is automatically compiled to CSS and copied to the same relative path in one or more output directories.

@import dependency resolution

Files that @import a modified LESS file are also recompiled automatically.

Include / exclude files by pattern

Prevent specific LESS files from being compiled by specifying include / exclude patterns (glob) that match against filename, folder name, or any part of the complete path to the LESS file.

Move, copy, and delete detection

When a LESS file is moved, copied, or deleted, the plugin will offer to perform the same operation on the corresponding CSS file(s).

Virtual filesystem notification

Unlike other solutions, this plugin is smart enough to notify IntelliJ when CSS files are changed, moved, copied, or deleted. In most cases, updated CSS files will be immediately reflected in the editor and Project tree view.

Selective compilation

If the plugin somehow fails to catch changes to a LESS file, simply right-click anywhere in the editor or Project tree and select "Compile to CSS". You can also compile an entire directory by right-clicking on it in the Project tree.

Error notifications

Any errors encountered during the compilation process will produce an error notification balloon in the IDE containing a link to the file and the line number that caused the error.

Screenshots:

Screenshots are available at the LESS CSS Compiler page on the IntelliJ Plugin Repository website.

Source Code:

GitHub project

Compatibility:

NOTE: This plugin is ONLY compatible with IntelliJ IDEA 11+, PhpStorm 5+, and WebStorm 5+. It should also be compatible with RubyMine 4.5+, but has not been tested.

Downloads: 106578
Rating:
Participated in rating: 14
Version Since Build Until Build File/URL Size (Kb) Date Details
2.6.9. 107.105. . Download 7037.02 2014-01-08 12:35:02 details
. .
30 updates are hidden show all updates
Screenshot #14001
Screenshot #14003
Screenshot #14002

Recent change notes:

2.6.9
  • [bugfix] Fixed #43 - Compile multiple profiles
2.6.8
  • [bugfix] Fixed #42, #49, and #61 - More robust profile settings persistence
  • [enhancement] Added form validation to project settings
2.6.7
  • [bugfix] Upgraded to LESS 1.6.0 and fixed JavaScript errors in less.js 1.6.0
2.6.6
  • [bugfix] Issue #53 - Downgraded to LESS 1.5.0 to fix JavaScript errors in less.js 1.6.0
2.6.5
  • [enhancement] Issue #53 - LESS 1.6.0
2.6.4
  • [enhancement] Issue #58 - Added setting to disable automatic compilation on save (for those who prefer to compile manually)
2.6.3
  • [bugfix] Fixed to run under IntelliJ 13
2.6.2
  • [enhancement] Added "Compile to CSS" action for community edition
  • [bugfix] Fixed #39 - Upgraded LESS from version 1.3.1 to 1.3.3
  • [bugfix] Fixed #38 - UTF-8 support
2.6.1
  • [enhancement] Faster compiles with Rhino optimizations enabled
2.6.0
  • [bugfix] Fixed #25 - Multiple notifications for the same file
  • [enhancement] Issue #4 - Hide previous error notifications for the same file
  • [enhancement] Issue #27 - Clean up Notifier logging
  • [enhancement] Issue #28 - Move UI messages to external properties files
2.5.5
  • [bugfix] Fixed #26 - VFS refresh doesn't work when CSS files don't already exist
  • [enhancement] Issue #20 - Disable all "Reset prompts" buttons
  • [enhancement] Issue #22 - Rename notification groups
2.5.4
  • [bugfix] Fixed #23 - Thread safety when saving / compiling
2.5.3
  • [enhancement] Issue #19 - Alert user if no CSS output directories are specified when "Compile to CSS" action is invoked
2.5.2
  • [enhancement] Issue #9 - Respect //simpless:!minify and //simpless:minify per-file
2.5.1
  • [enhancement] Issue #6 - Optional .less extension support for @imports
2.5.0
  • [enhancement] Issue #24 - Show progress while compiling
  • [enhancement] Major code refactoring and cleanup
2.4.1
  • [enhancement] Added PhpStorm and WebStorm support
  • [enhancement] Updated README.md and plugin.xml
2.4.0
  • [enhancement] Issue #11 - Add include / exclude pattern support
2.3.3
  • [bugfix] Fixed #14 - Commit changed LESS files to disk before compiling
2.3.2
  • [bugfix] Fixed #17 - Problems with spaces in path name
2.3.1
  • [enhancement] Updated README.md and plugin.xml
2.3.0
  • [enhancement] Issue #10 - Move, Copy, and Delete support
2.2.0
  • [enhancement] Improved notifications and event logging
2.1.2
  • [bugfix] Fixed #13 / #12 - java.io.IOException thrown for Windows file paths
2.1.1
  • [enhancement] Added icon to "Compile to CSS" Action in context menu
2.1.0
  • [enhancement] Issue #5 - Make CSS output directories more user friendly in preference pane
2.0.0
  • [enhancement] Issue #2 - Add "Compile to CSS" Action to context menu for .less files
1.9.5
  • [bugfix] Fixed #1 - Incorrect line number for errors when using imports
1.9.0
  • [enhancement] @import support
1.8.4
  • [enhancement] Don't output empty CSS files
1.8.3
  • [bugfix] Fixed MethodNotFoundException

Comments:

12>
quiraang
Rated:
2014-05-28 13:00:48
I am also getting the error: LESS CSS Compiler Error ...No such file... ...(line -1, column -1)... Seems to be since I upgraded to PHPstorm 7.1.3. You can get around it by right clicking and taking the compile to CSS option and it will compile cleanly. We need a bug fix as it is very irritating.
.
Anonymous
Rated:
2014-05-21 13:42:33
If you're getting the "java.io.IOException: No such file file" error check your path for whitespaces. I.E. change "C:\Users\p.ishwar.baradur\Desktop\Mint files\Parts\less" to "C:\Users\p.ishwar.baradur\Desktop\Mintfiles\Parts\less" Would be really nice to see this fixed. I prefer to have spaces in my directory names for readability and see no reason why this should be a problem for this plugin.
.
Anonymous
2014-05-10 20:10:52
I am getting the same problem as anonymous (2014-04-11) LESS CSS Compiler Error ...No such file... ...(line -1, column -1)... Please advise what we are doing wrong, thank you!
.
Anonymous
Rated:
2014-04-11 16:24:21
I am getting the below error LESS CSS Compiler Error parts.less: org.mozilla.javascript.UniqueTag@b9b6e3: NOT_FOUND Error: java.io.IOException: No such file file:/C:/Users/p.ishwar.baradur/Desktop/Mint%20files/Parts/less/_variables.less (line -1, column -1) I dont know why its searching under file:/C etc. Even though i have mentioned path as "C:\Users\p.ishwar.baradur\Desktop\Mint files\Parts\less".. Kindly help.
.
smilingcheater
Rated:
2014-03-14 07:01:39
Doesn't support automatic data-uri() convertation to base64. It is supported by less since 1.4.0, you say you support less 1.6.0 but don't support this feature.
.
scaytrase
2014-01-18 19:08:05
Does not work for me. When I`m trying to add LESS profile from project settings I`m facing the following problems: 1. CSS Source path has to be absolute or relative to user`s home. This makes project settings unportable 2. I can not add CSS output directory - clicking '+' sign just does nothing (same as '...' sign for less source directory). So I cannot just save profile to try the plugin.
.
acdvorak
2014-01-08 05:27:26

Plugin has been updated for IntelliJ 13 compatibility.


@Anonymous (2013-08-10): Try updating to the most recent version of the plugin and see if that fixes your issue.


@jlahm: Currently there is no way to specify a different output filename. I would need to put some thought into how to implement such a feature in a sensible way.


@Anonymous (2013-08-31): See the section on Escaping in the official LESS documentation.


@sherry: You'll need to be a lot more specific and tell me exactly what you tried and what happened when you tried it...


@Rayz: Try updating to the most recent version of the plugin and see if that fixes your issue.

.
Rayz
2013-12-09 20:36:26
Doesn't work under Intellij 13. Can't create a profile.
.
sherry
2013-11-11 06:05:27
I've installed the plugin, but it doesn't work, What am I doing wrong?
.
Anonymous
Rated:
2013-08-31 14:15:00
This "background-image: url(attr(data-cover url));" is legal in css3 but compiler throws an exception. Is there any way I can tell compiler to ignore specific part of less to render it to css as is?
.
jlahm
Rated:
2013-08-18 22:03:45
Works great! I would really like it to have options on renaming the resulting .css file. For my application, I have a file called foobar.less which it automatically renamed by this plugin to foobar.css. In order to work with another application, I'd need to be able to rename it to foobar.less.css. The renaming options in the PhpStorm file watcher tool would be great!
.
Anonymous
Rated:
2013-08-10 09:00:41
There is an error when using mixin. For example, .foo(@a;@b){ } It always say that the mixin is error because it is used comma (which is recommended by less.org) to separate between parameters. How can I fix that?
.
Anonymous
Rated:
2013-08-10 08:57:29
.
evpre
2013-08-02 11:56:41
It always creates an empty css file when using file watcher for LESS. It seems that it doesn't work for the new version oh phpStorm (in my case: build 130.1481). You can pass the output file as the second argument, but it shouldn't work like that, I think...
.
Anonymous
Rated:
2013-07-11 19:14:19
Works great. is there a way to have the output file have a different name than the less file? My less file is homepage.less and i'd like my output file to be homepage.min.css. Thanks for this!
.
12>