Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25827] Windows: Error thrown when building to emulator with forceUnInstall flag for first time

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-05-07T01:00:25.000+0000
Affected Version/sRelease 7.1.0, Release 7.2.0
Fix Version/swindowslib 0.6.5
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2018-03-01T16:53:09.000+0000
Updated2019-05-09T06:51:07.000+0000

Description

Description

When building an app for wp-emulator with --forceUnInstall and the emulator is in a clean state (i.e. no app already installed), then the build will fail because it's trying to uninstall a non-existent app and then doesn't continue on with the install when the uninstall fails
[ERROR] A debug application is already installed, please remove existing debug application
[ERROR] Error: A debug application is already installed, please remove existing debug application
    at ChildProcess.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\7.1.0.v20180228160738\node_modules\windowslib\lib\wptool.js:915:15)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

Steps to reproduce

1. Build an application for wp-emulator with the emulator closed (clean state)

Actual

Build fails with above

Expected

Build should not fail

Comments

  1. Kota Iguchi 2018-03-02

    This may be tricky because we should satisfy TIMOB-23800 too. (See also: https://github.com/appcelerator/windowslib/pull/54)
  2. Kota Iguchi 2018-03-02

    https://github.com/appcelerator/windowslib/pull/84

JSON Source