[ALOY-1140] Windows: The path format for app.js is different from controller files in sourcemap
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | High | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2014-10-28T02:16:32.000+0000 | 
| Affected Version/s | Alloy 1.5.0 | 
| Fix Version/s | Alloy 1.6.0 | 
| Components | Appcelerator Studio | 
| Labels | n/a | 
| Reporter | Praveen Innamuri | 
| Assignee | Tim Poulsen | 
| Created | 2014-09-16T04:11:53.000+0000 | 
| Updated | 2015-03-30T18:14:51.000+0000 | 
Description
	The sourcemap contains different source location path format for app.js file compared to controller files on Windows platform.
The map file for app.js is :
"version":3,"file":"Resources/android/app.js","sources":["Resources/android/app.js"]
"version":3,"file":"Resources\\alloy\\controllers\\index.js","sources":["Resources\\alloy\\controllers\\index.js","app\\controllers\\index.js"]
PR: https://github.com/appcelerator/alloy/pull/581 Functional test: 1. Create a new Alloy project or use an existing one (any functional app will do). 2. Make sure there is some valid code in the app/alloy.js file (that won't get removed the optimizer -- like set an Alloy.Globals.something variable). 3. Update config.json to set sourcemap: true 4. Build the app. 5. Open build/map/Resources/(platform)/app.js and compare to one of the controllers in build/map/Resources/(platform)/alloy/controllers The format of the file paths should match (all use \ \ folderName on Windows) <- stupid Jira won't let me put two \ next to each other w/out spaces
Reopen to backport to 1_6_X branch
1_6_X PR https://github.com/appcelerator/alloy/pull/608 Functional test as above
PR merged.
Verified fixed using: Windows 8 Alloy 1.6.0-alpha2 Appc NPM 0.3.37 Appc CLI 0.2.201 Studio 4.0.0.v201503271912 SDK 4.0.0.v20150327114208 Paths match and all include the '\\'.