Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19090] Windows: Building for ws-local fails with powershell error 'Read-Host : Windows PowerShell is in NonInteractive mode'

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-06-29T13:41:33.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsTooling, Windows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeChristopher Williams
Created2015-06-27T06:15:34.000+0000
Updated2015-07-02T17:51:52.000+0000

Description

Description

When building for ws-local the build fails with the following error
[ERROR] Read-Host : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available
At line:1 char:1
+ Read-Host 'Press Enter to continue...' | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Read-Host], PSInvalidOperationException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ReadHostCommand
The build works fine when using the 4.1.0.v20150624180823 SDK

Steps to reproduce

1. Create a new project using the latest SDK 2. Build the project using appc run -p windows -T ws-local, generate a .pfx if needed

Actual result

The build fails with the error above

Expected result

The build should pass

Comments

  1. Christopher Williams 2015-06-29

    Once PR is merged to windowslib, I'll need to publish and then update titanium_mobile as well.
  2. Ewan Harris 2015-07-02

    Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 Appc Studio: 4.1.0.201507010234 When building for ws-local the build no longer fails Closing ticket

JSON Source