Closed bbbenji closed 12 years ago
No, that should work; what OS are you using?
Windows 7
What are the absolute file paths of where you are saving and where it should be saving?
X:\SpiderOak\work\Zorro\redesign\zorro\library\less\style.less
X:\SpiderOak\work\Zorro\redesign\zorro\library\css\style.css
Open your Packages dir (Preferences -> Browse Packages), open the LESS-build directory, and open LESS-rewriteDir.sublime-build-choice
Inside that file, on line 13, replace ${file_path/(.*)less(.*)/\\1css\\2/}\\\\${file_base_name}.css
with ${file_path/\/\\(.*)less(.*)\\\//\\1css\\2\\\\/}\\\\${file_base_name}.css
Build that and give me the output your console give you
[Compile] X:\SpiderOak\work\Zorro\redesign\zorro\library\less\style.less -> X:\SpiderOak\work\Zorro\redesign\zorro\library\less\style.css [Done] [Finished in 0.6s]
Alright, replace all of line 13 with: "cmd": ["echo", "${file_path/(.*)less(.*)/\\1css\\2\\\\/}\\${file_base_name}.css"]
It should give you an Error Code 2, again copy and paste that into here please.
Something is not right, perhaps with the symlink? It completes the build and spits out no error. I even re-ran "changeLESSBuildType.bat" as Administrator and selected option 2 again.
Alright, open up cmd cd to the package directory (inside LESS-build).
Should be something like: cd "C:\Users\Max\AppData\Roaming\Sublime Text 2\Packages\LESS-build"
Then type: del LESS.sublime-build mklink LESS.sublime-build LESS-rewriteDir.sublime-build-choice
Then test it again, if you don't get the error code; then type del LESS.sublime-build cp LESS-rewriteDir.sublime-build-choice LESS.sublime-build
If again nothing changes, try restarting sublime. Tell me how that goes
After following the first few steps: http://i.imgur.com/NeoWp.png
After following the second section of steps
[Error 2] The system cannot find the file specified
[cmd: [u'echo', u'X:\\SpiderOak\\work\\CliftonDouglas.com\\redesign\\cliftondouglas\\library\\css\\${file_base_name}.css']]
[dir: X:\SpiderOak\work\CliftonDouglas.com\redesign\cliftondouglas\library\less]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\]
[Finished]
After which step did this occur? After you made the symbolic link? Try the second section, deleting the symbolic link file, and copying the LESS-rewriteDir.sublime-build-choice file to LESS.sublime-build
Please see edited comment.
Alright, it seems to be an issue with the symlink, which is odd. I can only give you a quick fix, which is to use the copied file, but if there is an update to this plugin; yours will not be updated.
If you can figure out why your computer isn't handling the symlink correctly, you may be able to fix it.
In the mean time, replace the 13th line of the LESS.sublime-build file with "cmd": ["$packages\\LESS-build\\dotless.Compiler.exe", "$file", "${file_path/\/\\(.*)less(.*)\\\//\\1css\\2\\\\/}\\\\${file_base_name}.css"]
, as well as the 13th line of LESS-rewriteDir.sublime-build-choice.
Unfortunately it does not seem to work
[Compile]
X:\SpiderOak\work\Zorro\redesign\zorro\library\less\style.less -> X:\SpiderOak\work\Zorro\redesign\zorro\library\less\style.css
[Done]
[Finished in 0.6s]
I have edited both LESS.sublime-build and LESS-rewriteDir.sublime-build-choice and even restarted ST2.
Oops, sorry replace line 13 with "cmd": ["$packages\\LESS-build\\dotless.Compiler.exe", "$file", "${file_path/(.*)less(.*)/\\1css\\2/}\\\\${file_base_name}.css"]
in both files
Amazing! Thank you for your help mazzzzz. Just need to figure out my symlink problem now.
Glad we got that fixed :), enjoy the plugin
I have run "changeLESSBuildType.bat" as Administrator and selected option 2.
But it still saves .css in the same directory as my .less.
My directory structure:
Client -library --css ---style.css --less ---style.less
Am I missing something?