[TIMOB-19156] LiveView via CLI does not work (Error: write EIO)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-31T04:46:17.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 5.0.0 |
Components | LiveView |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Feon Sua Xin Miao |
Created | 2015-06-29T12:02:12.000+0000 |
Updated | 2017-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.
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?
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 noEIO
error 4. Try with Node v0.10, it should work tooPR merged to master.
Closing ticket as fixed.