Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13851] LiveView: does not work when editing FSA 1.0 Alloy generated .js files within Studio

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-05-17T06:01:02.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsAndroid, LiveView
Labelsn/a
ReporterMatt Langston
AssigneeChristian Sullivan
Created2013-05-14T01:23:19.000+0000
Updated2013-08-14T22:18:24.000+0000

Description

LiveView does not work when editing FSA 1.0 Alloy generated .js files. I tried this both with and without the "app restart" logic from Allen with the same non-working Live View result. Steps to reproduce: 1. Enable Live View for FSA 1.0. 2. Open this Alloy generated file in Studio: /Field-Service-App/Resources/alloy/controllers/my-service-outlets/myServiceOutlets.js 3. Insert this line under line 328: Ti.API.info("MDL: LiveView detected my change."); 4. Save the file (File > Save) to trigger Live View. 5. Live View will claim to detect the change with this output from Studio's console: [32m [LiveView] Reload Triggered  -REASON: File Changed  -FILE: /Users/matt/Documents/Appcelerator/src/titanium_mobile_repos/forks/field_service_app/Resources/alloy/controllers/my-service-outlets/myServiceOutlets.js 5. From within the FSA 1.0 app click the map icon next to "464 Hanover Street", which should trigger the output from step 3. 6. The output from step 3 is not in the logcat output, which can be verified by running this command from Terminal and not seeing the output from step #3: adb logcat -d -v threadtime | grep "MDL: LiveView detected my change."

Comments

  1. Ingo Muschenetz 2013-05-17

    Unable to replicate with LiveView 0.1.21/Studio 3.1.1.201305151653. I see the following in my log output:
       [INFO]  LOCATION_INFO_CLICKED
       [INFO]  MDL: LiveView detected my change.
       
  2. Michael Xia 2013-08-14

    Verified on Appcelerator Studio, build: 3.1.2.201308091728, OSX 10.8.3 that I'm able to run FSA with LiveView and have the app correctly reloaded when there is a change.

JSON Source