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

ENOTDIR #5

Open
RobertCordes opened this issue Apr 9, 2014 · 7 comments
Open

ENOTDIR #5

RobertCordes opened this issue Apr 9, 2014 · 7 comments
Assignees
Labels

Comments

@RobertCordes
Copy link

When I run the iconizr task, the SVG and PNG sprites get created successfully, but it doesn't create the CSS or SASS.

In the terminal it says the following: { [Error: spawn ENOTDIR] code: 'ENOTDIR', errno: 'ENOTDIR', syscall: 'spawn' }

@jkphl
Copy link
Owner

jkphl commented Apr 10, 2014

Hi @RobertCordes,

thanks for reporting this, and sorry that I can't be more responsive right now.

Could you please try to figure out if it's the PNG optimization that causes these troubles? You can easily do so by using the level: 0 configuration. Which platform are you on? Mac (if so, please also see #4)?

Cheers,
Joschi

@iansoper
Copy link

I was having the same error and I set level: 0 in the config and that fixed it, the task was able to complete.

I have verbose set to 3, and this is the error i was getting before:

· Optimized PNG image "icons.png" ... ERROR { [Error: spawn ENOTDIR] code: 'ENOTDIR', errno: 'ENOTDIR', syscall: 'spawn' }

@jkphl
Copy link
Owner

jkphl commented Apr 12, 2014

hi @iansoper,

thanks for your report / confirmation!

May I assume that you are on a Mac as well? (@RobertCordes didn't answer my question yet ...) It seems that there are some Mac specific problems with one of the involved PNG optimization tools (pngcrush, pngquant and optipng). I could reproduce this on the MacBook of a friend of mine, but I didn't have the time to track it further down yet (unfortunately, it might be that I won't be able to do so for the next couple of weeks, as I'm usually not on a Mac and I'll go on a longer vacation shortly ... I'll see what I can do before ...).

level: 0 is practically disabling PNG optimization, so the fallback images will potentially be some bytes bigger that with the optimization enabled. They'll work anyway, however.

Thanks for your patience regarding this issue ...

@RobertCordes
Copy link
Author

Hey, sorry that it took so long. Setting the level: 0 fixed it for me. Thank you so much!

@RobertCordes
Copy link
Author

Hi @jkphl,

I’ve now tested it on two Macs and in both cases I’ve got the same error. But as I said, setting level: 0 fixed it. Thanks!

@jkphl
Copy link
Owner

jkphl commented May 27, 2014

Great that it works for you now, @RobertCordes. However, I'll still reopen this issue, as setting level to zero is not a proper long term solution. I'd rather have to fix the source of this problem ... ;)

@jkphl jkphl reopened this May 27, 2014
@jkphl jkphl added the bug label May 27, 2014
@jkphl jkphl self-assigned this May 27, 2014
@RobertCordes
Copy link
Author

Yeah, you're right ;)

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

No branches or pull requests

3 participants