Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13861] Code Processor: Fatal errors need to be sent to stderr, even when output format is json or stream

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-15T20:46:35.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsCode Processor
Labelsn/a
ReporterBryan Hughes
AssigneeBryan Hughes
Created2013-05-15T04:34:45.000+0000
Updated2013-05-29T02:17:31.000+0000

Description

When a fatal error occurs during parsing (anything that results in a call to process.exit()), the error needs to be hard-printed to stderr, not just to the logger (which may or may not print to stderr).

Comments

  1. Bryan Hughes 2013-05-15

    PR: https://github.com/appcelerator/titanium-code-processor/pull/184 1_0_X PR: https://github.com/appcelerator/titanium-code-processor/pull/185
  2. Bryan Hughes 2013-05-15

    Testing instructions: Run "titanium analyze -p iphone -o stream" in a directory that is not a Titanium project. With the fix, you will see " does not appear to be a valid Titanium Mobile project." Without the fix, nothing is displayed.
  3. Tony Lukasavage 2013-05-15

    Passes code review and functional testing. Merged both PRs.
  4. Federico Casali 2013-05-29

    Verified as fixed with titanium-code-processor 1.0.1-alpha3 Closing.

JSON Source