berfarah / LESS-build-sublime

Less build sytem for Sublime Text 2
Apache License 2.0
91 stars 14 forks source link

Not building on Win7 Sublime2 #38

Open ihorvorotnov opened 11 years ago

ihorvorotnov commented 11 years ago

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!

zerfl commented 11 years ago

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.

mikedidthis commented 11 years ago

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

I presume an update had changed the selector name.

Thanks

ihorvorotnov commented 10 years ago

Thanks @Zerfl it worked. Issue should be closed.

mcnesium commented 10 years ago

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

tenfourzero commented 10 years ago

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.