jdiehl / brackets-less-autocompile

Automatic compilation of LESS files for Brackets
93 stars 36 forks source link

Autocompile can't import file from same folder (network location) #99

Closed IiroP closed 6 years ago

IiroP commented 7 years ago

I have folder, which contains two files: colors.less and main.less. If I try to import colors.less to main.less, autocompiler can't find the file. I think that's because it looks for file in http:// path, but my network system is running Apache so it won't be in same path.

Complete error msg: Error in file '//hostname/www/main_new/html/src/less/main.less' on line 3: resource 'http://hostname/www/main_new/html/src/less/colors.less' was not found

jdiehl commented 7 years ago

This is most likely a less-compiler error message. Please try compiling your scripts manually (install less via npm and run lessc). If that works, please post the content of your less files.

IiroP commented 7 years ago

It worked when I compiled it manually.

Files

jdiehl commented 7 years ago

The files you uploaded compile just fine using the extension. I tested it on my machine locally (Mac) and on a network mount (SMB). Thus, I fear I cannot really help you here.

You could try checking the Brackets console for any error messages. Open the Developer Tools from the Debug menu and look for errors from the extension or the node process.

IiroP commented 7 years ago

I couldn't find any errors about this.

Why does it even look for file in http:// path?

jdiehl commented 7 years ago

It shouldn't. It is running less on the Brackets node interface.