SAPikachu / icomoon-build

Build IcoMoon project in Node
MIT License
27 stars 9 forks source link

stopped working? #6

Closed yairEO closed 9 years ago

yairEO commented 9 years ago

Running the shell command:

icomoon-build -p ./fonts/selection.json --scss ./css/_icomoon_output.scss --fonts ./fonts

just hangs and nothing happens until I force quit. It used to work great for months and my projects are depended on it. This script is awesome and saves so much time..Also seems like I currently cannot generate an SCSS file directly from Icomoon (they don't show this option) so all my code is not stuck..because it relies on variables which do no exist any (my _icomoon_output.scss file is empty now)

If you require any additional information to resolve this please let me know, would help gladly

SAPikachu commented 9 years ago

Seems broken by IcoMoon update, fixed in latest version.

Also seems like I currently cannot generate an SCSS file directly from Icomoon (they don't show this option)

IcoMoon doesn't support generating SCSS file, SCSS file is generated by icomoon-build.

yairEO commented 9 years ago

Yeah I was saying that to emphasize the huge problem of SCSS reliance on icomoon-build. So my huge code is now at the mercy of icomoon-build since it's so intertwined with it. No such a comfortable situation if one day icomoon-build will stop working again and you won't be here to fix it. But I don't want to think about that day.

yairEO commented 9 years ago

Hey, it's not working again, now it's totally crashing (printing a huge crash log).

maybe they changed something again in icomoon?

yairEO commented 9 years ago

OK, I had to run npm install phantomjs -g to make sure it's updated. seems like the installation of icomoon-build did something to my phantomjs and it stopped working after.

yairEO commented 9 years ago

now it happens again... here is a part of the log (top most part i can see): seems like this happens randomly

CONSOLE: [PhantomXHR] Responding to GET: icomoon-lib/presets.json' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] status  undefined undefined 200 (from line #undefined in "undefined")

CONSOLE: TypeError: 'undefined' is not an object (evaluating 'o.projects[o.currentProject]')

    at https://icomoon.io/app/scripts/e0b9b41e.scripts.js:6
SAPikachu commented 9 years ago

OK I missed some page errors yesterday.. Can you try the latest version?

SAPikachu commented 9 years ago
Yeah I was saying that to emphasize the huge problem of SCSS reliance on icomoon-build. So my huge code is now at the mercy of icomoon-build since it's so intertwined with it. No such a comfortable situation if one day icomoon-build will stop working again and you won't be here to fix it. But I don't want to think about that day. 

Not sure what I can do for this.. A possible solution is including the whole IcoMoon website in icomoon-build, but I am reluctant to do this because this may have legal problem.

yairEO commented 9 years ago
it's updated and still I get errors.

This is all I can copy from the bash (I can't scroll to the top, there's a limit)

CONSOLE: [PhantomXHR] status  undefined undefined 200 (from line #undefined in "undefined")
onLoadFinished: https://icomoon.io/app/#/select
Status: success
 --
CONSOLE: [PhantomXHR] recieved request for GET: icomoon-lib/presets.json' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] with status: undefined (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Responding to GET: icomoon-lib/presets.json' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] status  undefined undefined 200 (from line #undefined in "undefined")
CONSOLE: TypeError: 'undefined' is not an object (evaluating 'o.projects[o.currentProject]')
    at https://icomoon.io/app/scripts/dd4edeb3.scripts.js:6
    at e (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:36)
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:36
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:75
    at https://icomoon.io/app/bower_components/angular-ui-router/release/angular-ui-router.min.js:7
    at Z (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:70)
    at w (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:59)
    at g (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:51)
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:50
    at j (https://icomoon.io/app/bower_components/angular-ui-router/release/angular-ui-router.min.js:7)
    at https://icomoon.io/app/bower_components/angular-ui-router/release/angular-ui-router.min.js:7
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:127
    at https://icomoon.io/app/bower_components/angular-ui-router/release/angular-ui-router.min.js:7
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:111
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:125
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:122
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:125
    at m (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:80)
    at n (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:85)
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:86
    at ../vendor/sinon.js:3461
    at dispatchEvent (../vendor/sinon.js:3374)
    at readyStateChange (../vendor/sinon.js:3661)
    at setResponseBody (../vendor/sinon.js:3817)
    at respond (../vendor/sinon.js:3827)
    at respond (phantomjs://webpage.evaluate():143)
    at phantomjs://webpage.evaluate():80 <div ui-view=""> (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] recieved request for HEAD: https://i.icomoon.io/getsession' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] with status: undefined (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Responding to HEAD: https://i.icomoon.io/getsession' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] status  undefined undefined 200 (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] recieved request for POST: https://i.icomoon.io/getsession' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] with status: undefined (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Responding to POST: https://i.icomoon.io/getsession' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] status  undefined undefined 200 (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] recieved request for GET: icomoon-lib/presets.json' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] with status: undefined (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Responding to GET: icomoon-lib/presets.json' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] status  undefined undefined 200 (from line #undefined in "undefined")
CONSOLE: TypeError: 'undefined' is not an object (evaluating 'o.projects[o.currentProject]')
    at https://icomoon.io/app/scripts/dd4edeb3.scripts.js:6
    at e (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:36)
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:36
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:75
    at phantomjs://webpage.evaluate():23
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:111
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:125
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:122
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:125
    at m (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:80)
    at n (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:85)
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:86
    at ../vendor/sinon.js:3461
    at dispatchEvent (../vendor/sinon.js:3374)
    at readyStateChange (../vendor/sinon.js:3661)
    at setResponseBody (../vendor/sinon.js:3817)
    at respond (../vendor/sinon.js:3827)
    at respond (phantomjs://webpage.evaluate():143)
    at phantomjs://webpage.evaluate():80 (from line #undefined in "undefined")
CONSOLE: ReferenceError: Can't find variable: jsondiffpatch
    at https://icomoon.io/app/scripts/dd4edeb3.scripts.js:5
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:111
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:125
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:122
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:125
    at m (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:80)
    at n (https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:85)
    at https://icomoon.io/app/components/angular/angular-sha3d71416.min.js:86
    at ../vendor/sinon.js:3461
    at dispatchEvent (../vendor/sinon.js:3374)
    at readyStateChange (../vendor/sinon.js:3661)
    at setResponseBody (../vendor/sinon.js:3817)
    at respond (../vendor/sinon.js:3827)
    at respond (phantomjs://webpage.evaluate():143)
    at phantomjs://webpage.evaluate():80 (from line #undefined in "undefined")
CONSOLE: TypeError: 'undefined' is not an object (evaluating 'o.projects[o.currentProject]') (from line #undefined in "u
ndefined")
ERROR: TypeError: 'undefined' is not an object (evaluating 'o.projects[o.currentProject]')
TRACE:
 -> https://icomoon.io/app/scripts/dd4edeb3.scripts.js: 6
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 36 (in function "e")
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 36
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 75
 -> phantomjs://webpage.evaluate(): 23
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 111
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 125
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 122
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 125
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 80 (in function "m")
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 85 (in function "n")
 -> https://icomoon.io/app/components/angular/angular-sha3d71416.min.js: 86
 -> ../vendor/sinon.js: 3461
 -> ../vendor/sinon.js: 3374 (in function "dispatchEvent")
 -> ../vendor/sinon.js: 3661 (in function "readyStateChange")
 -> ../vendor/sinon.js: 3817 (in function "setResponseBody")
 -> ../vendor/sinon.js: 3827 (in function "respond")
 -> phantomjs://webpage.evaluate(): 143 (in function "respond")
 -> phantomjs://webpage.evaluate(): 80

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:117:20)
    at Pipe.close (net.js:465:12)

C:\xampp\htdocs\gurushots\html\trunk\website>npm install icomoon-build
npm WARN package.json path@0.4.9 path is also the name of a node core module.
\
> phantomjs@1.9.12 install C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\node_modules\phantomj
s
> node install.js

PhantomJS detected, but wrong version 1.9.7 @ C:\Windows\SYSTEM32\phantomjs.BAT.
Download already available at C:\Users\vsync\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip
Extracting zip contents
Removing C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\node_modules\phantomjs\lib\phantom
Copying extracted folder C:\Users\vsync\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract-1417956958521\p
hantomjs-1.9.8-windows -> C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\node_modules\phantomjs
\lib\phantom
Removing C:\Users\vsync\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract-1417956958521
Writing location.js file
Done. Phantomjs binary available at C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\node_modules
\phantomjs\lib\phantom\phantomjs.exe
icomoon-build@0.2.2 node_modules\icomoon-build
├── adm-zip@0.4.4
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
└── phantomjs@1.9.12 (which@1.0.8, progress@1.1.8, rimraf@2.2.8, kew@0.4.0, ncp@1.0.1, mkdirp@0.5.0, request-progress@0.
3.1, npmconf@2.0.9, request@2.42.0)

C:\xampp\htdocs\gurushots\html\trunk\website>gulp
[gulp] Using file C:\xampp\htdocs\gurushots\html\trunk\website\gulpfile.js
[gulp] Working directory changed to C:\xampp\htdocs\gurushots\html\trunk\website
[gulp] Running 'icomoon'...
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 8.13 ms
[gulp] Running 'spriteLoop'...
[gulp] Finished 'spriteLoop' in 1.86 ms
[gulp] Running 'concatJS'...
[gulp] Finished 'concatJS' in 1.53 ms
[gulp] Running 'buildJS'...
[gulp] Finished 'buildJS' in 7.72 ms
[gulp] Running 'templates'...
[gulp] Finished 'templates' in 2.28 ms
[gulp] Running 'watch'...
[gulp] Finished 'watch' in 365 ms
emptied file
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 2.5 ms
[gulp] Running 'copyToServer'...
[gulp] Finished 'copyToServer' in 2.98 ms
[gulp] Running 'buildJS'...
[gulp] Finished 'buildJS' in 3.75 ms
[gulp] Running 'copyToServer'...
[gulp] Finished 'copyToServer' in 1.57 ms
.sprite-eyevoyage
.sprite-miggo
.sprite-empty-tank
.sprite-join-the-challenge-bg
.sprite-live-challenge
.sprite-logo
.sprite-logo2
.sprite-noPlayers
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 1.95 ms

C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onNavigationRequested: https://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onInitialized: https://icomoon.io/app/

 --

ERROR: Unable to open file '../assets/presets.json'

TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
[gulp] Errored 'icomoon' in 6.54 s Command failed:
C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onNavigationRequested: https://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onInitialized: https://icomoon.io/app/

 --

ERROR: Unable to open file '../assets/presets.json'

TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp\node_modules\orchestrator\index.js:153
                        throw err;
                              ^
Error: Command failed:
C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onLoadStarted: about:blank
 --
onNavigationRequested: https://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onInitialized: https://icomoon.io/app/
 --
ERROR: Unable to open file '../assets/presets.json'
TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:117:20)
    at Pipe.close (net.js:465:12)
yairEO commented 9 years ago

Also this error I'm getting now:

 --

onNavigationRequested: https://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onInitialized: https://icomoon.io/app/

 --

ERROR: Unable to open file '../assets/presets.json'

TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
[gulp] Errored 'icomoon' in 6.54 s Command failed:
C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onNavigationRequested: https://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onInitialized: https://icomoon.io/app/

 --

ERROR: Unable to open file '../assets/presets.json'

TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp\node_modules\orchestrator\index.js:153
                        throw err;
                              ^
Error: Command failed:
C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onLoadStarted: about:blank
 --
onNavigationRequested: https://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onInitialized: https://icomoon.io/app/
 --
ERROR: Unable to open file '../assets/presets.json'
TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:117:20)
    at Pipe.close (net.js:465:12)

C:\xampp\htdocs\gurushots\html\trunk\website>npm install phantomjs
npm WARN package.json path@0.4.9 path is also the name of a node core module.
\
> phantomjs@1.9.12 install C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\phantomjs
> node install.js

PhantomJS detected, but wrong version 1.9.7 @ C:\Windows\SYSTEM32\phantomjs.BAT.
Download already available at C:\Users\vsync\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip
Extracting zip contents
Removing C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\phantomjs\lib\phantom
Copying extracted folder C:\Users\vsync\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract-1417957159157\p
hantomjs-1.9.8-windows -> C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\phantomjs\lib\phantom
Removing C:\Users\vsync\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract-1417957159157
Writing location.js file
Done. Phantomjs binary available at C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\phantomjs\lib\phantom\phan
tomjs.exe
phantomjs@1.9.12 node_modules\phantomjs
├── which@1.0.8
├── progress@1.1.8
├── rimraf@2.2.8
├── kew@0.4.0
├── ncp@1.0.1
├── adm-zip@0.4.4
├── request-progress@0.3.1 (throttleit@0.0.2)
├── mkdirp@0.5.0 (minimist@0.0.8)
├── npmconf@2.0.9 (uid-number@0.0.5, inherits@2.0.1, osenv@0.1.0, ini@1.3.2, semver@4.1.0, once@1.3.1, config-chain@1.1.
8, nopt@3.0.1)
└── request@2.42.0 (caseless@0.6.0, aws-sign2@0.5.0, forever-agent@0.5.2, json-stringify-safe@5.0.0, oauth-sign@0.4.0, t
unnel-agent@0.4.0, stringstream@0.0.4, mime-types@1.0.2, qs@1.2.2, node-uuid@1.4.2, http-signature@0.10.0, tough-cookie@
0.12.1, bl@0.9.3, hawk@1.1.1, form-data@0.1.4)

C:\xampp\htdocs\gurushots\html\trunk\website>gulp
[gulp] Using file C:\xampp\htdocs\gurushots\html\trunk\website\gulpfile.js
[gulp] Working directory changed to C:\xampp\htdocs\gurushots\html\trunk\website
[gulp] Running 'icomoon'...
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 8.87 ms
[gulp] Running 'spriteLoop'...
[gulp] Finished 'spriteLoop' in 1.4 ms
[gulp] Running 'concatJS'...
[gulp] Finished 'concatJS' in 1.76 ms
[gulp] Running 'buildJS'...
[gulp] Finished 'buildJS' in 9.75 ms
[gulp] Running 'templates'...
[gulp] Finished 'templates' in 1.92 ms
[gulp] Running 'watch'...
[gulp] Finished 'watch' in 371 ms
emptied file
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 1.74 ms
[gulp] Running 'copyToServer'...
[gulp] Finished 'copyToServer' in 3.62 ms
[gulp] Running 'buildJS'...
[gulp] Finished 'buildJS' in 7.96 ms
[gulp] Running 'copyToServer'...
[gulp] Finished 'copyToServer' in 3.54 ms
.sprite-eyevoyage
.sprite-miggo
.sprite-empty-tank
.sprite-join-the-challenge-bg
.sprite-live-challenge
.sprite-logo
.sprite-logo2
.sprite-noPlayers
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 2.04 ms
.sprite-1
.sprite-2
.sprite-3
.sprite-4
.sprite-5
.sprite-6
[gulp] Running 'scss'...
[gulp] Finished 'scss' in 3.11 ms

C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onNavigationRequested: https://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onInitialized: https://icomoon.io/app/

 --

ERROR: Unable to open file '../assets/presets.json'

TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
[gulp] Errored 'icomoon' in 13 s Command failed:
C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onNavigationRequested: https://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onInitialized: https://icomoon.io/app/

 --

ERROR: Unable to open file '../assets/presets.json'

TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp\node_modules\orchestrator\index.js:153
                        throw err;
                              ^
Error: Command failed:
C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onLoadStarted: about:blank
 --
onNavigationRequested: https://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onInitialized: https://icomoon.io/app/
 --
ERROR: Unable to open file '../assets/presets.json'
TRACE:

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:117:20)
    at Pipe.close (net.js:465:12)
SAPikachu commented 9 years ago

Sorry, my fault. I forgot to prepend library path when reading presets.json. Can you update to master branch and try again?

yairEO commented 9 years ago

it works now. Thanks a lot for your quick response, I highly appreciate it! :+1:

SAPikachu commented 9 years ago

No problem. :)

yairEO commented 9 years ago

hmm now I get this error log:

G:\gurushots\BUILD\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onLoadFinished: about:blank

Status: fail

 --

onInitialized: about:blank

 --

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*icomoon-lib\/presets\.json' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*\.json' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*authstat.*' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*getsessiontime' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*' (from line #undefined in "undefined")

ERROR: SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

TRACE:

 -> phantomjs://webpage.evaluate(): 6

 -> phantomjs://webpage.evaluate(): 39

 -> phantomjs://webpage.evaluate(): 39

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
[gulp] Errored 'icomoon' in 21 s Command failed:
G:\gurushots\BUILD\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/

type: Other

willNavigate: true

main: true

 --

onLoadStarted: about:blank

 --

onLoadFinished: about:blank

Status: fail

 --

onInitialized: about:blank

 --

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*icomoon-lib\/presets\.json' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*\.json' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*authstat.*' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*getsessiontime' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*' (from line #undefined in "undefined")

ERROR: SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

TRACE:

 -> phantomjs://webpage.evaluate(): 6

 -> phantomjs://webpage.evaluate(): 39

 -> phantomjs://webpage.evaluate(): 39

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

G:\gurushots\BUILD\node_modules\gulp\node_modules\orchestrator\index.js:153
                        throw err;
                              ^
Error: Command failed:
G:\gurushots\BUILD\node_modules\icomoon-build\lib\cli.js:14
                throw err;
                      ^
Error: Command failed: onNavigationRequested: http://icomoon.io/app/
type: Other
willNavigate: true
main: true
 --
onLoadStarted: about:blank
 --
onLoadFinished: about:blank
Status: fail
 --
onInitialized: about:blank
 --
CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*icomoon-lib\/presets\.json' (from line #undefined in "undefined")

CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*\.json' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*authstat.*' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*getsessiontime' (from line #undefined in "undefined")
CONSOLE: [PhantomXHR] Match added [All REST verbs] : .*' (from line #undefined in "undefined")
ERROR: SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
TRACE:
 -> phantomjs://webpage.evaluate(): 6
 -> phantomjs://webpage.evaluate(): 39
 -> phantomjs://webpage.evaluate(): 39

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:117:20)
    at Pipe.close (net.js:465:12)
yairEO commented 9 years ago

I think it's some sort of communication error, but I can go to the icomoon website in my browser. Now it's ok. I think this shouldn't abort from gulp, but just try again and again with internal. when it aborts everything I need to start my gulp manually again..

SAPikachu commented 9 years ago

Haven't seen this error before.. Maybe you can try catching the error by passing a callback to cli, and retry on fail (with appropriate delay)?