GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-13T03:44:29.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 07, 2013 Sprint 08 JS, 2013 Sprint 08, Release 3.1.2, Release 3.2.0 |
Components | LiveView |
Labels | liveview, qe-3.1.0, qe-testadded |
Reporter | Dustin Hyde |
Assignee | Christian Sullivan |
Created | 2013-04-06T02:55:21.000+0000 |
Updated | 2013-12-03T20:59:52.000+0000 |
LiveView: iOS Simulator LiveView fails to run.
Disabling LiveView allows app to build and run successfully.
Logs attached.
Test Steps:
1. Open Appcelerator Studio.
2. Create Titanium Project w/Appcelerator Services.
3. Run Configurations... iOS Simulator => LiveView Enabled => Run.
Actual Result:
App fails to build. Fails on terminal and Appcelerator Studio. See logs.
It seems that you have multiple LiveView servers running. Not sure how that's possible, but we should certainly fix it by randomly picking a port above 1024 until we get one that's available. This would be done here: https://github.com/appcelerator/liveview/blob/master/lib/fserver.js#L20.
The problem is the hook got installed twice. The port can not be randomly assigned since it is replaced in the liveview.js file on build. I will do a double check that the hook is not already installed.
Fixed https://github.com/appcelerator/liveview/tree/0.1.1-cr
Bug behavior is present in Appcelerator Studio 3.1.0.201304091724 Reopening and assigning to Michael.
The bin directories under packaged node_modules/liveview source were not included in the build due to .gitignore. Pushed the fix, and it's available in 3.1.0.201304111438 and after.
Reopening. Appcelerator Studio 3.1.0.201304111438 LiveView version 0.1.2-cr CLI version 3.1.0-cr ti config 'paths.hooks' output:
Steps to reproduce: 1. Create two separate projects. 2. Build/run first project with LiveView enabled Result: project runs correctly and LiveView works as expected 3. Build/run the first project again Result: project runs correctly and LiveView works as expected 4. build/run the second project Result: project fails to build and bug behavior is reproduced 5. kill node processes (killall node) and run again the second project Result: project runs correctly and LiveView works as expected. 6. Build/run the first project Result: project fails to build and bug behavior is reproduced Same results if directly running from terminal the liveView command used by Studio; in my case:
PR https://github.com/appcelerator/liveview/pull/12
Verified the default alloy app launches successfully with LiveView on the following configuration: Appcelerator Studio, build: 3.1.2.201307261628 LiveView feature 1.0.0.201307261639 LiveView version 0.1.29 CLI 3.1.1 SDK 3.1.2.v20130723160131