Running "grunticon:icons" (grunticon) task freezes the task and throws an error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Here is my Problem:
```
$grunt icon
Running "icon" task
Running "clean:icons" (clean) task
>> 1 path cleaned.
Running "svgmin:icons" (svgmin) task
✔ htdocs/frontend/src/icons/input/arrow-down-s.colors-disabled-hover-defaultMb-disabledMb-white-error.svg (saved 209 B 50%)
✔ htdocs/frontend/src/icons/input/arrow-left-narrow.colors-white-hover.svg (saved 208 B 50%)
✔ htdocs/frontend/src/icons/input/arrow-right-narrow.colors-lightGray.svg (saved 209 B 50%)
✔ htdocs/frontend/src/icons/input/arrow-right-xs.colors-defaultMb-white-hover.svg (saved 208 B 49%)
✔ htdocs/frontend/src/icons/input/arrow-up-xs.colors-defaultMb-white-hover.svg (saved 263 B 59%)
✔ htdocs/frontend/src/icons/input/btn-video.svg (saved 268 B 44%)
✔ htdocs/frontend/src/icons/input/check.colors-disabled-hover-defaultMb-disabledMb.svg (saved 339 B 56%)
✔ htdocs/frontend/src/icons/input/close.colors-white-disabled-hover-defaultMb-disabledMb.svg (saved 219 B 46%)
✔ htdocs/frontend/src/icons/input/close.svg (saved 235 B 48%)
✔ htdocs/frontend/src/icons/input/download.svg (saved 324 B 55%)
✔ htdocs/frontend/src/icons/input/kununu.colors-white-disabled.svg (saved 1.21 kB 36%)
✔ htdocs/frontend/src/icons/input/loupe.colors-defaultMb-hover.svg (saved 210 B 35%)
✔ htdocs/frontend/src/icons/input/menu.colors-defaultMb-white-hover.svg (saved 263 B 56%)
✔ htdocs/frontend/src/icons/input/page-left-mobile.svg (saved 208 B 50%)
✔ htdocs/frontend/src/icons/input/page-left.colors-hover.svg (saved 215 B 48%)
✔ htdocs/frontend/src/icons/input/page-left.svg (saved 215 B 48%)
✔ htdocs/frontend/src/icons/input/page-right-mobile.colors-disabledMb-hover-white.svg (saved 209 B 51%)
✔ htdocs/frontend/src/icons/input/page-right-mobile.svg (saved 209 B 51%)
✔ htdocs/frontend/src/icons/input/page-right.colors-hover.svg (saved 212 B 48%)
✔ htdocs/frontend/src/icons/input/page-right.svg (saved 212 B 48%)
✔ htdocs/frontend/src/icons/input/page-slash-mobile.svg (saved 257 B 53%)
✔ htdocs/frontend/src/icons/input/page-slash.svg (saved 211 B 50%)
✔ htdocs/frontend/src/icons/input/rss.colors-white-disabled.svg (saved 151 B 31%)
✔ htdocs/frontend/src/icons/input/todo.svg (saved 133 B 40%)
✔ htdocs/frontend/src/icons/input/xing.colors-white-disabled.svg (saved 1.37 kB 43%)
Total saved: 7.77 kB
Running "grunticon:icons" (grunticon) task
Error: Command failed: /Users/user/Development/foo/bar/node_modules/grunt-grunticon/node_modules/grunticon-lib/node_modules/directory-colorfy/node_modules/phantomjs/lib/phantom/bin/phantomjs /Users/user/Development/foo/bar/node_modules/grunt-grunticon/node_modules/grunticon-lib/node_modules/directory-colorfy/lib/phantomscript.js %3C?xml%20version=%221.0%22%20encoding=%22utf-8%22?%3E%3Csvg%20version=%221.2%22%20baseProfile=%22tiny%22%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2215%22%20height=%2210.7%22%20viewBox=%220%200%2015%2010.7%22%3E%3Cpath%20d=%22M.01%205.875l.566-.566%204.88%204.878-.567.566zM14.457.044l.566.566L4.84%2010.792l-.565-.566z%22/%3E%3C/svg%3E check-disabled.svg #c7c7c7
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
```
Here are my Versions
```
$ phantomjs --version
2.1.1
$ npm --version
2.14.12
$ node --version
v4.2.6
```
My only assumption why this could happen is because of permission issues, does anyone have any other idea ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the `grunt icon` run with Node v4.2.6, npm 2.14.12, and PhantomJS 2.1.1, focusing on the `grunticon:icons` step and the shown `grunt-grunticon`/`directory-colorfy` invocation. Trace the reported PhantomJS command failure and determine what evidence distinguishes a permission issue from a dependency or input problem; done means the task completes without freezing or throwing this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100