-
Notifications
You must be signed in to change notification settings - Fork 22
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
'It's not clear which file to import' error message #3
Comments
I have the exact same problem. I've used this successfully with Middleman but doesn't want to work with just SASS. |
I think this issue only exists on windows. on mac everything works fine! any suggestions? |
Same here. @import "modules/typebox/*"; WARNING: On line 26 of D:/Project/sass/styles.scss: I have Windows 8 and I'm getting the same error. Tried it on a Mac and no complains at all. Any progress on this issue? |
Fixed by 606b853. Please install sass-globbing version 1.1.0.pre.0 and let me know if it works for you. |
@hiulit can you test this and report back? |
Hi @chriseppstein Thanks! |
@hiulit 1.1.0 is the released version of 1.1.0.pre.0. So you're good to go. But in the future you can do one of the following:
or
|
Tried both methods for installing but still getting the same error. Running on Windows 8 .. X{ |
Same here :( |
I have same problem when running on win 7,8. really need your help, fix please. |
I'm seeing this issue on Windows 7 even after installing 1.1.0.pre.0 |
Grrrrr. |
I also have that problem, could be that I´m trying with grunt and compass |
Any updates in this? |
I've got a single file in a directory that it try load using
Pretty weird. PS Windows 7 x64 Pro. |
Hi, same here. Win7 x64 Pro Installed rubyinstaller-2.0.0, with this sass and sass-globbing some minutes ago. No Compass or something similar. Im working from command line. |
I'm running:
I was having the same issue as discussed above which originated from the following lines in one of my sass files: The first line is where sass globbing fails, but the second line works fine. After some trouble shooting with colleagues, one tried out using a double star in the first line: This now works fine, the file and tree imports both work and there are no errors. My colleague working on Linux pulled my changes and the first time Guard picked up the changed sass files it seemed to get a little confused and compiled the css about 10 times and then stopped. It now works as normal, no issues with multiple compilation. Could there be an issue with the use of the single * on windows? |
Doesn't work for me. And how it suppose to work when compiling specific files? Like this: |
I can confirm @markweston's 'double star' fix works for me. Windows 7 |
I need to require all files in a directory without recursing into subdirectories. Is there a non-buggy way to do that on Windows? |
@lolmaus Not as far as I'm aware. If you're lucky, you'll have the flexibility/control over your project to structure your folders so that isn't required. If not, then I think you're out of luck for the moment, unless you fancy setting up a Linux Virtualbox to build your project :) |
@itsravenous, thank you for replying. I'd rather import my partials manually than do major restructuring. As for Linux VirtualBox, i do use one for projects that have requirerements incompatible with Windows. But that's rather burdensome and i don't consider Sass Globbing to be such a requirement. So i'll wait for now. This buggy behavior has appeared only recently, the gem worked fine before. Isn't it possible to trace which code modification causes this issue? |
@lolmaus I'm sure it is - you can install old versions of ruby gems with the -v option:
I just tried some of the old versions and couldn't find one that didn't reproduce the error, including the first version I could find, 1.0.0.rc.1. There's a list of all versions (according to RubyGems, anyway) at http://rubygems.org/gems/sass-globbing/versions. Be interested to see how you get on. |
@itsravenous, you're right. All versions of Any developments on this one? |
just try @import folder/.; |
Hey @deigolocco, this is working fine on Windows! I knew i had it working but i forgot how. Now we know, this is a valid workaround! Thank you @deigolocco. |
Glad you found a workaround - will remember this if I ever need to avoid recursion :) |
@deigolocco what does the . actually represent? |
@markweston I think windows needs more specificity, instead of /, /.* |
@deigolocco is correct - historically, in DOS:
would only have listed files without an extension (which were very rare - DOS convention dictated a three letter extension).
would, however, list all files. |
To confirm the solution @itsravenous suggested works. |
I've still got the issue.
My gruntfile (compass part)
My dev dependencies
Iam using grunt-contrib-compass instead of grunt-contrib-sass does this make any difference ? I used this
Running "compass:dev" (compass) task and this
/* No files to import found in test/. */ (comment in .css) Can anyone help me ? |
Still not work. with '/mark' i get error It's not clear which file to import for bla bla bla Any help or fix by author? |
Hey Kcko maybe this helps you.
Ofc depending on your folder structure. |
Hey intenrs, thx for help, but it not works. I'm getting sad ... My structure
I have WIN 7 + nevest version of sass, compass and globbing |
@intensr the double dot works for me (win 8), could anyone see if this works on mac too? don't want to f.. up my projects for mac users.
EDIT: Sorry, it doesn't throw an error anymore, but it doesn't work. There is no file imported. |
It depends on your folder structure, in Kckos case id say its (maybe, didnt test it) the following and if not then something similar like that:
You have to go the way from the destinated file/folder to the import file (skelet/ -> screen.scss).
Hope it helps otherwise I dont really know. |
I tried both ways .. not works ... |
This issue is still not fixed and it is preventing a lot of stuff from working correctly on Windows, for example the startersquad/ngseed angular seed project does not work for me on windows due to this error. I don't yet know enough about this issue to fix it but I hope someone else can! |
does anyone succeed in fixing this issue?
and I get this error
|
I'm getting the same issue as amitmtrn
|
Hi, I've got a work around for this for anyone still having the issue. https://github.com/DennisBecker/grunt-sass-globbing Basically you create a file (an import map) that holds all your @imports and then let grunt fill it in with all the actual specific import paths for you. It's a little messier than if SASS just let you bulk import on it's own but it's guaranteed to work since sass will only be reading import paths to specific files, grunt is the one that reads the "sass/*.scss" stuff. |
still not working. |
I'm getting this issue when there's only one file in the folder as well. Has there been any progress on the problem?
|
dont work: works: I use this on many sites. |
I cannot believe this issue is still open after THREE YEARS! This issue is a breaking issue and should have been fixed in January 2013, but here it is, end of February 2016, and I STILL can't compile a SASS project in Windows that works just fine in Linux. FIX THIS RIGHT NOW!!!!! I am very disappointed to find out that in order for me to compile a SASS project on Windows, I have to change all |
@markentingh Your team also has the option of moving to libsass (either sassc or node-sass) which has more options for import customization. It's right around on-par with Ruby Sass 3.4 now. |
that would require me to tell my team to rewrite their gulp files... honestly, I want this to be fixed for good, because the world needs this to be fixed. It's so frustrating walking into this problem over and over again, having to rewrite the SASS imports code for every project that uses SASS. It's just bullshit that no one has tackled this problem. Will no one claim responsibility? |
Did you look into my post about a workaround? It's messy but it works across all platforms. |
Thank you for your help, @Dan503... It's a sad state of sass-globbing affairs, isn't it? It could so easily be fixed, and if only I could get to the heart of the problem in this open source project, I would fix it myself. This issue seems to be on the same level as ending world hunger (apparently). Guess I'll just have to install Virtual Box, Vagrant, and run Linux in Windows to accomplish what I'm trying to do... |
Please do. Or maybe don't use globbing. Or fork it. Really, do anything you want, but yelling on my issue tracker to fix a thing that isn't even required for you to use, makes you a much bigger jerk than me for not maintaining a thing that I haven't used for coming on three years. |
Please test with 1.1.3 or greater and file a new issue if one still exists. |
Hey,
I've changed my imports from this"
@import "extensions/content/css-hack";
@import "extensions/content/grid";
@import "extensions/content/media";
@import "extensions/content/misc";
@import "extensions/content/table";
@import "extensions/content/mod";
@import "extensions/content/forms";
to this:
@import "extensions/content/*";
Added require 'sass-globbing' to config.rb
but I am getting this message when compiling..
It's not clear which file to import for '@import"extensions/content/*"'.
Candidates:
extensions/content/_css-hack.scss
extensions/content/_forms.scss
extensions/content/_grid.scss
extensions/content/_media.scss
extensions/content/_misc.scss
extensions/content/_mod.scss
extensions/content/_oocssgrid.scss
extensions/content/_table.scss
For now I'll choose _css-hack.scss.
This will be an error in future versions of Sass
Any ideas what could be wrong here?
This is my gem list
*** LOCAL GEMS ***
addressable (2.2.6)
chunky_png (1.2.4)
compass (0.12.2)
compass-validator (3.0.1)
css_parser (1.2.5)
fssm (0.2.7)
minitest (1.6.0)
modular-scale (1.0.2, 1.0.1)
rake (0.8.7)
rdoc (2.5.8)
sass (3.2.2, 3.2.0.alpha.247)
sass-globbing (1.0.0)
sassy-math (1.2)
susy (1.0.rc.4)
webfontspecimen (0.3.0)
The text was updated successfully, but these errors were encountered: