Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6689] iOS: CommonJS - relative path in require() causes nested include() statements to fail

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-12-15T18:05:28.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50
ComponentsiOS
Labelsn/a
ReporterTim Poulsen
AssigneeBlain Hamon
Created2011-12-15T08:08:41.000+0000
Updated2011-12-19T06:23:33.000+0000

Description

Expected: require('ui').createMainWindow().open() should load module and any include() statements within ui.js should work Actual: throws file not found error on the include() statement; need to use require('/ui').createMainWindow().open() Attached file demonstrates problem. The relative path worked in 1.7.6 and the CI build of 1.8 noted in the code comments Possibly related to TIMOB-6602

Attachments

FileDateSize
RequireTest_ios.zip2011-12-15T08:08:41.000+00002320486

Comments

  1. Stephen Tramer 2011-12-15

    From the provided test, we cannot reproduce. Three team members ran the attached test and were unable to get the error; everybody saw the label with the correct text within it. This could be the result of changes since the tested SDK.
  2. Tim Poulsen 2011-12-19

    Tested with 1.8.0.1.v20111218001633 and I cannot reproduce the error.

JSON Source