Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14877] Liveview: Unable to launch liveview enable session for device or emulator on windows

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-09-30T17:20:08.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 20, 2013 Sprint 20 Tooling
ComponentsLiveView
Labelsqe-3.1.2
ReporterEric Merriman
AssigneeChristian Sullivan
Created2013-08-13T22:53:51.000+0000
Updated2014-01-28T23:51:19.000+0000

Description

Description:

When trying to launch a liveview instance on Windows 7 in the emulator, the command was unrecognized and the launch failed. Here is the console output:
[INFO] :   Emulator process exited successfully
'"C:\Users\tester\AppData\Local\Appcelerator Studio\plugins\com.appcelerator.titanium.liveview.core_1.0.0.1375925433\node_modules\liveview\bin\liveview-server"' is not recognized as an internal or external command,
operable program or batch file.
[INFO] :   Project built successfully in 2s 633ms
[INFO] :   Emulator not running, exiting...
[LiveView] version 0.1.32
[LiveView] { [Error: listen EADDRINUSE] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen' }
[LiveView] File Server Started on Port 8324
Address in use, retrying...
[LiveView] [Error: Not running]
Subsequent attempts on device also failed with the same error. Attempts on our windows 8 machines also failed with the same error on device and emulator.

Steps to reproduce:

1) Ensure the plugin version of liveview is uninstalled 2) Update to the latest RC studio version for windows 3) Launch an emulator or device build with liveview enabled

Result:

Failure to install/launch and errors in the console

Expected Result:

Emulator or device build launches, liveview event/file servers working, liveview functions as expected on device or emulator.

Comments

  1. Michael Xia 2013-08-13

    Praveen investigated and found that cleaning the project did help to resolve the issue. It lowers the priority some, but we should still look into potential cause for why liveview-server command wasn't being recognized.
  2. Michael Xia 2013-08-27

    The problem was observed by a customer as well, and cleaning the project didn't help for them. Also they were actually not trying to run the app with LiveView, but because the liveview hook is already in "ti config", the liveview-server executable is still being referenced somehow and causes the app to fail. The only workaround for them is to remove the liveview hook manually from the command prompt. [~csullivan] Could you take a look at this for 3.1.3? Thanks.
  3. Christian Sullivan 2013-09-26

    [~mxia] I have tested on windows 7 & 8 and I am able to run liveview fine, but I think there might be an issue with how the cli is handling the hook if it is executing liveview even if it is not enabled. Any ideas [~cbarber] ?
  4. Chris Barber 2013-09-26

    [~csullivan] [~mxia] If a CLI plugin is in the global paths.plugins setting, then all plugins found in those paths are loaded for every CLI command. The only time a plugin is conditionally loaded is when it's being loaded via the tiapp.xml.
  5. Christian Sullivan 2013-09-27

    I am unable to reproduce can we please get a bit more info from the customer.

JSON Source