Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-3901

Studio: Code changes in app.js are not being reflected in simulator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio 3.1.0
    • Component/s: Projects
    • Environment:

      Titanium Studio, build: 3.1.0.201303182358
      Titanium SDK, build: 3.1.0.v20130319225749
      iPhone 6.1 simulator
      CLI 3.0.25

    • Story Points:
      5

      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

      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:
                mxia Michael Xia
                Reporter:
                oromero Olga Romero
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: