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

Less: This URI cannot be resolved for @import statements #65

Closed
mchiocca opened this issue May 27, 2012 · 6 comments
Closed

Less: This URI cannot be resolved for @import statements #65

mchiocca opened this issue May 27, 2012 · 6 comments
Milestone

Comments

@mchiocca
Copy link

I'm getting a 'This URI cannot be resolved' error for every @import statement, even the the files being imported are in the same directory as the .less file that is importing them.

Download Twitter Bootstrap from GitHub. Open the less directory where all the .less files are located. Open bootstrap.less. Every @import statement has the URI cannot be resolved error.

The run configuration that executes the LESS compiler works, though. Execute the run configuration on bootstrap.less and it successfully generates bootstrap.css. But the @imports are flagged with the error.

vtst pushed a commit that referenced this issue May 28, 2012
@vtst
Copy link
Owner

vtst commented May 28, 2012

Thanks for the bug report. This was an undesirable side effect of the change for issue #55.
I fixed it in the code base.

@vtst
Copy link
Owner

vtst commented May 28, 2012

Will be released with version 1.0.7.

@vtst vtst closed this as completed May 28, 2012
@gossi
Copy link

gossi commented Oct 17, 2012

I got the same error. Though this happens when the import uri is a url, like this:

@import url('http://fonts.googleapis.com/css?family=Open+Sans:400,600');

Will give me the error above. Looks like it's checking the imports in the filesystem (only)?

Thanks for fixing this for http uris.

@vtst
Copy link
Owner

vtst commented Oct 19, 2012

Only file URLs are supported.
It would be difficult to support network URLs, as it would require to download the file on the fly.

@gossi
Copy link

gossi commented Oct 19, 2012

This is actually a css file and its a css import statement, so it doesn't need to be downloaded. Obviously there is no .css extension. Because there is a yellow warning sign, this looks like my less files do have errors but apparently, they haven't.

@vtst
Copy link
Owner

vtst commented Oct 21, 2012

Ok, I see. I'm submitting a change so that all non-file URI will be ignored. This should address your problem.
Thanks for the feedback.

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