Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13155

Studio: Code changes in app.js are not being reflected in simulator when --deploy-type test

    Details

      Description

      While running app on simulator I encountered this issue. When changes in JS code are made to app.js, they were not reflected in the simulator. Only deleting the project's build folder or cleaning project applies changes.

      Test steps:
      1. Run the following code in the simulator

      var win = Ti.UI.createWindow({
      	backgroundColor:"green"
      	});
      	
      var button = Ti.UI.createButton({
      	title:"click me"
      });
       
      var Cloud = require('ti.cloud');
       
       
      button.addEventListener("click", function() {
      	Ti.API.info('click fired');
      	Cloud.Users.login({
      		login : 'user',
      		password : 'password'
      	}, function(e) {
      		if (e.success) {
      			alert('worked');
      		} else {
      			alert('error');
      			Ti.API.info(e.message);
      		}
      	});
      }); 
       
       
      win.add(button);
      win.open();
      

      2. Change the following
      backgroundColor:"green" to
      backgroundColor:"blue"
      3. Run the app in simulator again without cleaning with --deploy-type test

      Actual result:
      1. Screen is green
      3. Screen is green

      Expected result:
      1. Screen should be green
      2. Screen should be blue

      Also we were able to reproduce this issue using an Alloy project and Studio. Building using CLI from the terminal works as expected.

      The environment:

      1)
      TiStudio: 3.1.0.201303202340
      TiSDK: 3.1.0.v20130319125050
      TiCLI: CLI version 3.0.24
      Node version: 0.8.17
      Alloy: 1.1.0
      2)
      TiStudio: 3.1.0.201303202340
      TiSDK: 3.1.0.v20130321105651
      TiCLI: CLI version 3.0.25
      Node: 0.8.17
      Alloy: 1.1.0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                oromero Olga Romero
                Reviewer:
                Bryan Hughes
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15966
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration