Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19156] LiveView via CLI does not work (Error: write EIO)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-07-31T04:46:17.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsLiveView
Labelsn/a
ReporterFokke Zandbergen
AssigneeFeon Sua Xin Miao
Created2015-06-29T12:02:12.000+0000
Updated2017-03-16T21:08:57.000+0000

Description

Since updating Studio to 4.1.0 Beta LiveView does no longer work via CLI. It gives error that were [reported earlier on Q&A](https://community.appcelerator.com/topic/364/liveview-works-on-studio-but-doesn-t-work-on-cli):
...
[INFO]  Finished building the application in 1s 581ms
[INFO]  Launching iOS Simulator
 [LiveView]  { [Error: write EIO] code: 'EIO', errno: 'EIO', syscall: 'write' }
[INFO]  Project built successfully in 27s 928ms

-- Start simulator log -------------------------------------------------------
[INFO]  Application started
 [LiveView]  [Error: This socket is closed.]
[INFO]  appc-upgrade-4.1.0/1.0 (4.1.0.e2cc3f1)
 [LiveView]  [Error: This socket is closed.]
Every time you save a file the socket errors occur. The Simulator is not updated.

Comments

  1. Fokke Zandbergen 2015-07-03

    A Q&A user found out, and I just confirmed that switching back from NodeJS v0.12 to NodeJS v0.10 resolves the issue. It seems like our server-part is not NodeJS v0.12 compatible, but only when ran via CLI?
  2. Feon Sua Xin Miao 2015-07-10

    PR: https://github.com/appcelerator/liveview/pull/87 To test: 1. Switch to Node v0.12 2. Run appc run -p ios --liveview 3. liveview server should start with no EIO error 4. Try with Node v0.10, it should work too
  3. Praveen Innamuri 2015-07-31

    PR merged to master.
  4. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source