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

Make ember-svg-jar compatible with windows #24

Closed
jonasbuechel opened this issue Dec 14, 2016 · 7 comments
Closed

Make ember-svg-jar compatible with windows #24

jonasbuechel opened this issue Dec 14, 2016 · 7 comments

Comments

@jonasbuechel
Copy link

Hi there

Since I'm using the ember-svg-jar I've got a build problem at Windows. For osx it works fine.
According to the attached error message: Is there any problem with file-permissions, pathlengts or something like this?
Please write, if you need some more specific informations, I unfortunately found nothing close to the given error message.

Thanks!

Config: (ember-cli-build)

svgJar: {
      strategy: ['symbol', 'inline'],

      symbol: {
        sourceDirs: ['svgs', 'public/assets/svg/symbol'],
        outputFile: '/assets/svg/symbol/symbols.svg',
        includeLoader: true
      },

      inline: {
        sourceDirs: ['svgs', 'public/assets/svg/inline']
      }
    },

Error:

File: icon_arrow-down--dark.svg
The Broccoli Plugin: [SVGOFilter] failed with:
Error: ENOENT: no such file or directory, open 'C:\Users\MYUSER\AppData\Local\Temp\if-you-need-to-delete-this-open-an-issue-async-disk-cache\4e4f4cd6c3ab8e68f1af5bdeb24f06f3255c1917\{"persist":true,"svgoConfig":{}}627fdc20a3017e3b3616d693aed14551'
    at Error (native)

The broccoli plugin was instantiated at:
    at SVGOFilter.Plugin (C:\workspaces\my_repos\my-project\node_modules\broccoli-plugin\index.js:7:31)
    at SVGOFilter.Filter [as constructor] (C:\workspaces\my_repos\my-project\node_modules\broccoli-persistent-filter\index.js:60:10)
    at new SVGOFilter (C:\workspaces\my_repos\my-project\node_modules\broccoli-svg-optimizer\index.js:15:10)
    at CoreObject.<anonymous> (C:\workspaces\my_repos\my-project\node_modules\ember-svg-jar\lib\index.js:135:18)
    at CoreObject.optimizedSvgsFor (C:\workspaces\my_repos\my-project\node_modules\ember-svg-jar\lib\index.js:30:45)
    at CoreObject.getInlineStrategyTree (C:\workspaces\my_repos\my-project\node_modules\ember-svg-jar\lib\index.js:181:34)
    at CoreObject.treeForApp (C:\workspaces\my_repos\my-project\node_modules\ember-svg-jar\lib\index.js:73:23)
    at CoreObject._treeFor (C:\workspaces\my_repos\my-project\node_modules\ember-cli\lib\models\addon.js:373:33)
    at CoreObject.treeFor (C:\workspaces\my_repos\my-project\node_modules\ember-cli\lib\models\addon.js:341:21)
    at C:\workspaces\my_repos\my-project\node_modules\ember-cli\lib\broccoli\ember-app.js:498:20
@jonasbuechel
Copy link
Author

I think the colon in the temp filename isn't supported at Windows: 'svgoConfig":{}}627fdc20a3017e3b3616d693aed14551'

Is there a way to go without colons?

@jonasbuechel jonasbuechel changed the title Build Problem at Windows Build Problem at Windows, because usage of ':' in filename Dec 16, 2016
@jonasbuechel
Copy link
Author

I think it can be the same problem like in this extension: chrislopresto/ember-freestyle#72

@jonasbuechel jonasbuechel changed the title Build Problem at Windows, because usage of ':' in filename Build Problem at Windows, because usage of ':' in temp-filename Dec 16, 2016
@les2
Copy link

les2 commented Dec 17, 2016 via email

@jonasbuechel
Copy link
Author

Temporary solution for me: Disable the optimizer

svgJar: { optimizer: false }

Daan- added a commit to Daan-/ember-svg-jar that referenced this issue Feb 27, 2017
This will give back the correct relative path, without weird characters.
Daan- added a commit to Daan-/broccoli-svg-optimizer that referenced this issue Feb 27, 2017
@XaserAcheron
Copy link
Contributor

Just submitted a new PR for this. Hooray for Windows-taming. :P

@voltidev
Copy link
Collaborator

@XaserAcheron Thanks.

@voltidev
Copy link
Collaborator

It turns out the broccoli-svg-optimizer is not the only reason why it doesn't work for Windows. I've installed Windows and am going to fix the rest Windows related problems shortly, probably it will be done today.

@voltidev voltidev reopened this Jul 18, 2017
@voltidev voltidev changed the title Build Problem at Windows, because usage of ':' in temp-filename Make ember-svg-jar compatible with windows Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants