Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6694] Android: Fastdev: v8/rhino: Adding an external js file and restarting with fastdev running does not pick up the new file

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-12-15T21:39:31.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.8.0.1, Release 2.0.0
ComponentsAndroid
Labelsqe-and121411, regression
ReporterNatalie Huynh
AssigneeMarshall Culpepper
Created2011-12-15T10:56:49.000+0000
Updated2011-12-16T13:27:06.000+0000

Description

Steps To Reproduce: 1. Run TC1011 from https://wiki.appcelerator.org/display/tp/Fastdev+Test+Case Actual Result: After clicking on the button you get a runtime error: 'Uncaught Error: Requested module not found: win' Expected Result: To load the content of win.js "Got a new window" Workaround: Need to recompile the entire project to see the new window Note: Last working with 1.7.5

Comments

  1. Allen Yeung 2011-12-15

    Here are modified steps to reproduce this issue: 1. Create a new titanium mobile project 2. Add a new button under app.js
       var button = Titanium.UI.createButton({
           title: 'Open Button'
       })
        
       button.addEventListener("click", function(e){
           var win3 = Titanium.UI.createWindow({
               url:'win.js'
           });
           tab1.open(win3);
       });
       win1.add(button);
       
    3. Launch the Application 4. Create a new file under Resources called win.js with the following code
       var win = Titanium.UI.currentWindow;
        
       win.add(Titanium.UI.createLabel({
           text: 'Got a new window'
       }));
       
    4. Click on the button 5. Click back from the emulator 6. Modify win.js text:'Got a new window' to text:'Got updated' 7. Click on the button
  2. Natalie Huynh 2011-12-16

    Tested with 1.8.0.1.v20111216124633 with v8/rhino no longer getting runtime error

JSON Source