[TIMOB-13550] CLI: LiveView process messages result in a Studio freeze or error of some kind
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-24T18:43:13.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 08, 2013 Sprint 09 JS, 2013 Sprint 09, Release 3.2.0 |
Components | CLI, LiveView |
Labels | qe-3.1.0 |
Reporter | Dustin Hyde |
Assignee | Christian Sullivan |
Created | 2013-04-13T19:42:57.000+0000 |
Updated | 2013-07-29T01:24:47.000+0000 |
Description
iOS Device Run Config: unable to create config with unknown char error: closing running liveview process id.
Probably related to a previous liveview run, using either android device or iphone simulator.
Steps to Reproduce:
1. Create an iOS Device run configuration.
Actual Result:
Failure. Every time.
Expected Result:
Config created successfully, even if liveview was run at some previous time.
Attachments
I can't get out of this state. Restarting Studio does not work. Terminating any running processes using the Studio UI does not work.
It goes without saying any run on ios device operation will fail. Can't profile, etc.
If I run the cli from the command line, I get output like this:
The iOS Preferences menu will freeze in Studio. Any iOS Device run configs will have a UI Error.
1. iOS Device Run Config 2. iOS Studio Preferences 3. command line ti -v calls 4. ???
Fixed added support for --no-colors to LiveView https://github.com/appcelerator/liveview/tree/0.1.4-cr
Fixed based on Christian's comments.
I opened the Android SDK preferences menu in Titanium Studio, and I get a liveview error (screenshot attached). Titanium Studio, build: 3.1.0.201304132117
This is the same error I see this morning going into the iOS preferences:
For me, editing: /Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1365901334 and commenting out the following lines allows me to get around the issue node_modules/liveview/lib/fserver.js: console.log('[INFO]'.green, ' Closing running liveview process id:' + _pid); node_modules/liveview/lib/fserver.js: console.log('\n[INFO]'.green, ' Closing running liveview process id:' + pid); The weird thing is that I don't see that line being printed when I run the CLI directly from the command line, even if I use the exact same call Studio is using.
@ingo if that fixes it I can just remove that part from the module
[~csullivan] It at least allows the preference pages to open. LiveView itself still doesn't work.
After updating to the latest Appcelerator Studio version, I found myself into this error state. The biggest problem was that I was not able anymore to run any Android project. Studio was not finding anymore a valid Android version to be used. Opening 'Preferences/Platform/Android' eventually was leading to get Appcelerator Studio stuck and had to kill it from Activity Monitor. Workaround from Ingo worked fine, as well as using a brand new version starting from a clean state, so I cannot reproduce the error anymore. Will reopen if I can reproduce it again.
Going to reopen as the issue with the "closing process" message is still causing problems. Christian said he will remove.
uninstalling latest titanium CLI and Liveview and reinstalling Titanium CLI (existing GA branch), and android SDK is recognized again. Could this be a problem with the clihook?
also just reinstalled new CLI (3.1.0-cr) and did not install liveview - this issue pops back up. See it across Titanium Studio (3.2.0.201303262408) and Appc Studio ( 3.2.0.201304132149)
LiveView is included in the Appcelerator Studio application folder, under plugins.
This issue is also impacting Titanium Studio if LiveView is installed separately as explained in https://wiki.appcelerator.org/display/tools/LiveView#LiveView-Testing My paths.hooks: ["/usr/local/lib/node_modules/liveview/bin/../hook"] Also with Titanium Studio (currently on the latest version 3.1.0.201304142146), bug is reproducible, so Android SDK is no longer recognized. Applying Ingo's workaround to the '/usr/local/lib/node_modules/liveview/lib/fserver.js' file fix the problem.
This issue is either from a hooks path in the config.json that no longer exists or multiple versions of the liveview hook from different directories I think. I can try parsing the hooks path for liveview and not the full path to avoid conflicts from 2 versions in different locations but that would mean if the user installs via npm+git after studio is installed then the npm+git version would be used instead Of the version installed with studio. We should add functionality to the cli hooks system to check the hooks package.json to ensure duplicate hooks are not installed and that studio can force the studio installed hook to be run by default if needed.
The other issue is the liveview post install hook uses the normalized version of the path and the post remove hook looks for the non-normalized hook path to remove
Updating Appcelerator Studio from 3.1.0.201304151708 to 3.1.1.201304231946 version, I ran in to similar issue with Android SDK (Please see attachment). After *restarting* my machine, I could not reproduce this issue. I was able to install the project on to Android device. OS: OS X Mountain Lion 10.8.3 Appcelerator Studio: 3.1.1.201304231946 Titanium CLI: 3.1.0 Titanium SDK: 3.1.1.v20130423100100 Alloy: 1.1.1 LiveView: 0.1.4-cr LiveView plugin: com.appcelerator.titanium.liveview.core_1.0.0.1366390662, com.appcelerator.titanium.liveview.core_1.0.0.1365901334
Verified fixed on the following configuration: Appcelerator Studio, build: 3.1.2.201307261628 LiveView feature 1.0.0.201307261639 LiveView package 0.1.29 CLI 3.1.1 SDK 3.1.2.v20130723160131