[ 
https://issues.apache.org/jira/browse/CB-9297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14741379#comment-14741379
 ] 

ASF GitHub Bot commented on CB-9297:
------------------------------------

Github user pmuellr commented on the pull request:

    https://github.com/apache/cordova-lib/pull/305#issuecomment-139631229
  
    @csantanapr  re: not a fan of sync in node.js
    
    Sync becomes a problem if you're wasting precious cycles in a single 
operation, instead of using async to potentially handle multiple operations.  
For CLI tools, it's often the case that you need to do stuff serially anyway, 
so async actually becomes a problem, in terms of arranging those serial 
operations.
    
    In this case, I think parsing sync is most likely fine.  Especially given 
the timings provided - thx @vladimir-kotikov
    
    Should also note that node v4 has added a callback to send() to fix this.  
Doesn't help for node < v3, but you could hack a 1 sec timeout to "emulate" it 
(under most conditions anyway).  Smells bad, but prolly would work.


> Cordova CLI fails silently with iojs
> ------------------------------------
>
>                 Key: CB-9297
>                 URL: https://issues.apache.org/jira/browse/CB-9297
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 5.1.2
>         Environment: Cordova CLI: 5.1.1 (this isn't in your version list 
> above)
> ios-deploy version: 1.7.0 
> ios-sim version: 4.1.1 
> OS: Mac OS X Yosemite
> Xcode version: Xcode 6.4 Build version 6E35b 
> node (iojs): 1.8.1
>            Reporter: Robert Churchill
>            Assignee: Vladimir Kotikov
>            Priority: Critical
>              Labels: cordova-ios-4.0.x
>
> Running most build tasks (emulate, run, build) for ios when node is replaced 
> by iojs results in the build failing silently. Example:
> $ cordova build ios
> $
> $ cordova build ios --verbose
> Generating config.xml from defaults for platform "ios"
> Calling plugman.prepare for platform "ios"
> Preparing ios project
> ...
> [seems to finish prepare (but without executing hooks) then exits]
> ...
> $
> Not sure if you plan to support iojs, but at least this report might help 
> someone googling. Unfamiliar with the Apache JIRA system so apologies if this 
> report is in the wrong place etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to