LESS-build-sublime icon indicating copy to clipboard operation
LESS-build-sublime copied to clipboard

Not building on Win7 Sublime2

Open ihorvorotnov opened this issue 11 years ago • 5 comments

Hello I installed LESS package (https://github.com/danro/LESS-sublime), then your LESS-build package. Ran changeLESSBuildType.bat (as Administrator), pressed 1 for my choice. Symlink was created. Pressing "Ctrl+B" does just nothing. No errors, no builds. "Ctrl+Alt+B" does nothing as well.

Then I edited key bindings and changed "Ctrl+B" to "Ctrl+Shift+B" to avoid any conflicts. Now, when pressing new key combo I get a pop-up error "No Build System".

OS is Windows 7 x64, Sublime Text 2 x64 installed. Path: C:\Users\Ihor\AppData\Roaming\Sublime Text 2\Packages\LESS-build Contents of LESS-normal.sublime-build-choice:

{
    "cmd": ["lessc", "$file", "${file_path}/${file_base_name}.css", "--verbose"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.css.less",

    "osx":
    {
        "path": "/usr/local/bin:$PATH"
    },

    "windows":
    {
        "cmd": ["$packages\\LESS-build\\dotless.Compiler.exe", "$file", "${file_base_name}.css"] //To just store the css in the same folder as the less
    },

    "variants": [
        {
            "name": "Minify",
            "cmd": ["lessc", "$file", "${file_path}/${file_base_name}.min.css", "-x", "--verbose"],

            "osx":
            {
                "path": "/usr/local/bin:$PATH"
            },
            "windows":
            {
                "cmd": ["$packages\\LESS-build\\dotless.Compiler.exe", "-m", "${file}", "${file_base_name}.min.css"]
            }
        }
    ]
}

Any suggestions appreciated!

ihorvorotnov avatar Jun 04 '13 13:06 ihorvorotnov

Make sure your source less file is named something like filename.css.less and try to build again.

If you prefer to name your files filename.less change the 'selector' variable in LESS-normal.sublime-build-choice.

zerfl avatar Aug 29 '13 11:08 zerfl

Had the same issue, confirmed the above advice from @Zerfl resolved the issue.

I presume an update had changed the selector name.

Thanks

mikedidthis avatar Sep 03 '13 10:09 mikedidthis

Thanks @Zerfl it worked. Issue should be closed.

ihorvorotnov avatar Feb 20 '14 03:02 ihorvorotnov

ran into this issue, too. reason was an umlaut in the path to the less file -.-

mcnesium avatar Mar 24 '14 17:03 mcnesium

Just to throw my two cents in having had similar problems ...

I installed (on Sublime 2 & 3 x64) as Ihor describes in his first post but had to edit the 'LESS.sublime-build' file instead. Was also able to edit the "windows:{cmd:" line on where to dump the compiled .css file.

tenfourzero avatar Jun 26 '14 10:06 tenfourzero