Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import from a subdirectory #40

Open
igal-getrailo opened this issue May 31, 2013 · 3 comments
Open

import from a subdirectory #40

igal-getrailo opened this issue May 31, 2013 · 3 comments

Comments

@igal-getrailo
Copy link

for the sake of code maintenance I've placed all of the bootstrap less files in a subfolder named bootstrap and I am trying to @import it from the parent folder, like so:

@import "bootstrap/bootstrap.less";

but I get an error

com.asual.lesscss.LessException: Syntax Error: java.lang.IllegalArgumentException: protocol = http host = null (line -1, column -1) near at com.asual.lesscss.LessEngine.parseLessException(LessEngine.java:215):215 at com.asual.lesscss.LessEngine.compile(LessEngine.java:162):162 at com.asual.lesscss.LessEngine.compile(LessEngine.java:172):172 ...

if I specify the absolute path it works ok.

it looks like the default protocol for import is http and not file. is that the expected behavior? how can I specify a relative path in the @import ?

thank you.

@asual
Copy link
Owner

asual commented Aug 29, 2013

Can you please identify what you're doing differently from the unit test. Check the following:
src/test/java/com/asual/lesscss/LessEngineTest.java
src/test/resources/META-INF/less/import-from-subdir.less

@lmajano
Copy link

lmajano commented Feb 4, 2014

I have the same issues. Anytime you use a relative path from a less file it does not find it.

@lmajano
Copy link

lmajano commented Feb 4, 2014

Please note that the input files are outside of the classpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants