berfarah / LESS-build-sublime

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

OS:WINXP ,bulid result:[Error 2] [Finished] #1

Closed kuxiongxiong closed 12 years ago

kuxiongxiong commented 12 years ago

can give the deatils of error?

berfarah commented 12 years ago

Hey, thanks, looking into it.

berfarah commented 12 years ago

Please update the plugin and let me know if the problem is fixed.

kuxiongxiong commented 12 years ago

if there have some comiple errors, can give the error info such as: line number..like simpLESS tools thanks

kuxiongxiong commented 12 years ago

sublime version:build 2183

berfarah commented 12 years ago

It seems I accidentally applied the path to Windows as well, negligence on my part (I'm new at this), that should've caused the error. Generally, error messages will be verbose, and tell you what line they are on. However, Error 2 refers to "File Not Found", and I think I fixed that, let me know if the problem persists.

kuxiongxiong commented 12 years ago

I reinstalled this plugin by Package Control , CTR+B ,have the same error: [Error 2] [Finished] shall I reinstall by manual?

berfarah commented 12 years ago

I'll look into it, sorry about the inconvenience

Bernardo Farah Sent from my mobile On Mar 7, 2012 2:54 AM, "feiqiao" < reply@reply.github.com> wrote:

I reinstalled this plugin by Package Control , CTR+B ,have the same error: [Error 2] [Finished] shall I reinstall by manual?


Reply to this email directly or view it on GitHub:

https://github.com/berfarah/LESS-build-sublime/issues/1#issuecomment-4361340

kuxiongxiong commented 12 years ago

can command palette info help? Running dotless.Compiler.exe -m F:\web\php\new\themes\default\css\reg.less Running dotless.Compiler.exe -m F:\web\php\new\themes\default\css\index.less Running dotless.Compiler.exe -m F:\web\php\new\themes\default\css\index.less

kuxiongxiong commented 12 years ago

it seems the reason is file path I copy the less file"index.less" to the LESS-build folder(\Sublime Text 2\Packages\LESS-build).it works [Compile] C:\Documents and Settings\yang\Application Data\Sublime Text 2\Packages\LESS-build\index.less -> C:\Documents and Settings\yang\Application Data\Sublime Text 2\Packages\LESS-build\index.css [Done] [Finished] I think this info will be userful for you debug,thanks ~

kuxiongxiong commented 12 years ago

I fixed the problem by add the path"C:\Documents and Settings\yang\Application Data\Sublime Text 2\Packages\LESS-build" to the xp Environment Variables PATH

berfarah commented 12 years ago

Hey, thanks for looking into that. I suspected it was a path related issue, and I'll implement a more sustainable solution (i.e. link to the plugin folder) later this week.

berfarah commented 12 years ago

If you edit the LESS.sublime-build file to "windows": { "cmd": ["dotless.Compiler.exe", "$file"], "path": "${packages}/LESS-build-sublime" } Does it work?

kuxiongxiong commented 12 years ago

sorry.I remove the xp Environment Variables PATH I added "C:\Documents and Settings\yang\Application Data\Sublime Text 2\Packages\LESS-build", and added "path": "${packages}/LESS-build-sublime" to LESS.sublime-build file it doesn't work~

berfarah commented 12 years ago

Sorry, so your package directory is LESS-build instead of LESS-build-sublime?

kuxiongxiong commented 12 years ago

sorry,my directory is LESS-build ,I corrected it. "windows": { "cmd": ["dotless.Compiler.exe", "$file"], "path": "${packages}/LESS-build" } error remains: [Error 2] [Finished]

berfarah commented 12 years ago

That makes me a sad panda :( I had only tested in Windows 7, and it seemed to work there - will document your solution to get it to work in XP. Thank you for being so thorough and indulging me in my testing.

berfarah commented 12 years ago

Reproduced on Win7, looking for a fix, eta sometime this week

kuxiongxiong commented 12 years ago

I waiting your update...

cyreb7 commented 12 years ago

I have the same problem on Windows 7 and found a temporary solution: "windows": { "cmd": ["dotless.Compiler.exe", "$file"], "path": "%APPDATA%\Sublime Text 2\Packages\LESS-build" }

berfarah commented 12 years ago

Sorry, I've had some personal issues I had to attend to this past week, and I'll be looking into a more flexible solution. In the meantime, I can add @cyreb7's solution as it definitely will work on Windows (but doesn't account for Sublime Text structure changes)

berfarah commented 12 years ago

I've implemented a temporary fix (suggested by @cyreb7 ) and would love input on what I commented out - I feel like it should work and I'm missing something.