{ "id": "130953", "key": "ALOY-1054", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-05-28T09:20:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "38794", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "132604", "key": "TISTUD-6684", "fields": { "summary": "Windows: Alloy compiler does not show error details", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-08-28T21:16:07.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "*Shouldn't it show at least the file name?*\r\n\r\n\\[INFO\\] : Executing Alloy compile: alloy.cmd compile xxxxx\\app --config platform=android,version=0,simtype\r\n=none,devicefamily=none,deploytype=development\r\n\\[DEBUG\\] : .__ .__ \r\n\\[DEBUG\\] : _____ | | | | ____ ___.__.\r\n\\[DEBUG\\] : \\__ \\ | | | | / _ < | |\r\n\\[DEBUG\\] : / __ \\| |_| |_( <_> )___ |\r\n\\[DEBUG\\] : (____ /____/____/\\____// ____|\r\n\\[DEBUG\\] : \\/ \\/\r\n{color:red}\r\n\\[ERROR\\] Application Installer abnormal process termination. Process exit value was 1\r\n\\[ERROR\\] : Error parsing XML file.\r\n\\[ERROR\\] : Alloy compiler failed\r\n{color}", "attachment": [ { "id": "48480", "filename": "alloy3.avi", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-05-30T11:40:47.000+0000", "size": 3573608, "mimeType": "video/avi" } ], "flagged": false, "summary": "Windows: Alloy compiler does not show error details when using from Ti Studio", "creator": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Windows 7, 3.2.3.GA, Android", "closedSprints": [ { "id": 147, "state": "closed", "name": "2014 Sprint 13 Alloy", "startDate": "2014-06-23T14:36:08.509Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T16:06:44.759Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "306666", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried to reproduce this issue but for me I can see all the details. I just corrupted my xml file. Here is the console output.\r\n\r\n{code}\r\n[INFO] : Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /Users/ragrawal/Documents/Titanium_Studio_Workspace/BugTC4150_alloy/app --config platform=android,version=0,simtype=none,devicefamily=none,deploytype=development\r\n[DEBUG] : .__ .__ \r\n[DEBUG] : _____ | | | | ____ ___.__.\r\n[DEBUG] : \\__ \\ | | | | / _ < | |\r\n[DEBUG] : / __ \\| |_| |_( <_> )___ |\r\n[DEBUG] : (____ /____/____/\\____// ____|\r\n[DEBUG] : \\/ \\/\r\n[DEBUG] : Alloy 1.3.1 by Appcelerator. The MVC app framework for Titanium.\r\n[DEBUG] : \r\n[DEBUG] : ----- CONFIGURATION -----\r\n[DEBUG] : raw config = \"platform=android,version=0,simtype=none,devicefamily=none,deploytype=development\"\r\n[DEBUG] : platform = android\r\n[DEBUG] : version = 0\r\n[DEBUG] : simtype = none\r\n[DEBUG] : devicefamily = none\r\n[DEBUG] : deploytype = development\r\n[DEBUG] : project path = /Users/ragrawal/Documents/Titanium_Studio_Workspace/BugTC4150_alloy\r\n[DEBUG] : app path = /Users/ragrawal/Documents/Titanium_Studio_Workspace/BugTC4150_alloy/app\r\n[DEBUG] : \r\n[DEBUG] : ----- CONFIG.JSON -----\r\n[DEBUG] : {\r\n[DEBUG] : \"dependencies\": {},\r\n[DEBUG] : \"sourcemap\": true,\r\n[DEBUG] : \"autoStyle\": false,\r\n[DEBUG] : \"adapters\": [\r\n[DEBUG] : \"localStorage\",\r\n[DEBUG] : \"properties\",\r\n[DEBUG] : \"sql\"\r\n[DEBUG] : ]\r\n[DEBUG] : }\r\n[DEBUG] : \r\n[DEBUG] : ----- CLEANING RESOURCES -----\r\n[DEBUG] : Removing orphaned controllers...\r\n[DEBUG] : Removing orphaned models...\r\n[DEBUG] : Removing orphaned styles...\r\n[DEBUG] : Removing orphaned sync adapters...\r\n[DEBUG] : Removing orphaned assets and libs...\r\n[DEBUG] : \r\n[DEBUG] : ----- BASE RUNTIME FILES -----\r\n[DEBUG] : \r\n[INFO] : ----- MVC GENERATION -----\r\n[INFO] : [global style] loading from cache...\r\n[INFO] : [index.xml] view processing...\r\n[INFO] : style: \"index.tss\"\r\n[INFO] : view: \"index.xml\"\r\n\r\n[ERROR] : Error parsing XML file.\r\n[ERROR] : source code out of document root\r\n[ERROR] : @#[line:3,col:9]\r\n[ERROR] : Alloy compiler failed\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n\r\n{code}\r\n\r\nYou can attach your project and we will be happy to take a look.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T16:52:23.000+0000", "updated": "2014-05-28T16:52:23.000+0000" }, { "id": "306696", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "body": "Try the markup below. I've just checked the both 3.2.2.GA and 3.2.3.GA. The both give me the error like as in the initial report.\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t \r\n \r\n\t \r\n\t\r\n\r\n{code}", "updateAuthor": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-05-28T18:03:27.000+0000", "updated": "2014-05-28T18:03:27.000+0000" }, { "id": "306878", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-29T18:33:26.000+0000", "updated": "2014-05-29T18:33:57.000+0000" }, { "id": "306991", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "body": "Seems the things are even worse. The error messages are not the same if one builds the same code/markup several times. See the video attached.", "updateAuthor": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-05-30T11:40:47.000+0000", "updated": "2014-05-30T11:40:47.000+0000" }, { "id": "307644", "author": { "name": "zvandor", "key": "zvandor", "displayName": "Zoltan Vandor", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "zvandor", "key": "zvandor", "displayName": "Zoltan Vandor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-05T09:40:33.000+0000", "updated": "2014-06-05T09:40:33.000+0000" }, { "id": "307645", "author": { "name": "zvandor", "key": "zvandor", "displayName": "Zoltan Vandor", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just realized that @Ragrawal used the command line. Running compile from CLI, I do get a proper error message:\r\n\r\n[ERROR] Error parsing XML file.\r\n[ERROR] end tag name: View is not match the current start tagName:Window\r\n[ERROR] @#[line:6,col:30]\r\n", "updateAuthor": { "name": "zvandor", "key": "zvandor", "displayName": "Zoltan Vandor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-05T09:52:27.000+0000", "updated": "2014-06-05T09:52:27.000+0000" }, { "id": "309025", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reproducible on Windows 8\r\n\r\nTiSDk 3.3.0.v20140612101712 \r\nAppcelerator Studio 3.3.0.v20140612101712 \r\nCLI 3.3.0-rc\r\nAlloy 1.4.0-rc\r\n\r\nOn MAC OS X error details are correctly shown in the Studio too. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-13T22:55:03.000+0000", "updated": "2014-06-13T22:55:03.000+0000" }, { "id": "309761", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I tried running the same command (on terminal) on both Mac and Windows - and I noticed that Alloy fails to output additional console information about the missing tag/attribute on Windows.\r\n\r\nI did also notice that on Mac, it has additional info logs related to Configuration, Config.JSON, Cleaning resources, Base runtime files, MVC generation. However, it didn't output any of these compile phases on Windows.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T00:03:05.000+0000", "updated": "2014-06-19T00:03:05.000+0000" }, { "id": "309829", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "[~pinnamuri] If you look at the output from the Windows logs vs the Mac logs, you'll see that the file name info is output at the [INFO] log level, while the errors are output at either the [DEBUG] or [ERROR] levels. It appears that Studio on Windows is incorrectly filtering out the [INFO] level messages, while Studio on Mac is not. This is in keeping with Zoltan's comment that the file name is output on Windows when using the CLI.\r\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-19T12:42:45.000+0000", "updated": "2014-06-19T12:42:45.000+0000" }, { "id": "309843", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~skypanther] Referring to my previous comment, I tried the same build command on terminal for both Windows and Mac platforms. I can verify that the build command does not output the fileName on Windows.\r\n\r\nCan you try it on Windows and confirm please ?", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T15:35:07.000+0000", "updated": "2014-06-19T15:35:07.000+0000" }, { "id": "309889", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I resurrected my Windows machine and can confirm this issue. I don't seem to get any [INFO] level logging output. Still investigating the root cause.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-19T18:11:37.000+0000", "updated": "2014-06-19T18:11:37.000+0000" }, { "id": "309905", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Further troubleshooting:\r\n\r\n{{alloy compile --config platform=mobileweb}} and {{alloy compile --config platform=android}} show the error messages and all log output as expected. \r\n\r\n{{ti build -p mobileweb}} (or android) does not show the error message as described in the ticket. \r\n\r\nI confirmed that my CLI is configured to show Trace level messages and tried setting it to all the other levels, with and without colors. None of those changes get the error messages to show up. Perhaps this is a CLI issue?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-19T18:43:13.000+0000", "updated": "2014-06-19T18:43:13.000+0000" }, { "id": "310734", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber], thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T19:49:41.000+0000", "updated": "2014-06-24T19:49:41.000+0000" }, { "id": "310737", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ingo] Couple of thoughts. First is that we need people to enable TRACE output. There are details we are missing.\r\n\r\nSecond, the Alloy CLI should be deprecated and Alloy should be a CLI plugin. I've said this over and over again.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-24T19:59:06.000+0000", "updated": "2014-06-24T19:59:06.000+0000" }, { "id": "310738", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I just submitted a PR. I'm waiting for Jenkins to run before merging.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-24T20:03:19.000+0000", "updated": "2014-06-24T20:03:19.000+0000" }, { "id": "310745", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR https://github.com/appcelerator/alloy/pull/461 (PR has been merged to the 1_4_X and master branches)\r\n\r\nFunctional test:\r\n\r\n*Perform these steps on Windows*\r\n\r\n1. Create a new Alloy project.\r\n2. Edit app/views/index.xml and delete the closing tag\r\n3. From the command line, enter {{ti build -p mobileweb}} The error output should include the file name. You could also build for Android.\r\n\r\n*Perform those same steps on OS X* to confirm that the change didn't break anything on that platform. You can build for any platform to test.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-24T20:42:29.000+0000", "updated": "2014-06-24T20:43:01.000+0000" }, { "id": "311114", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Reopening because the fix is causing compilations to fail on iOS:\r\n\r\n{code}\r\n[INFO] Found Alloy app in /Users/timpoulsen/repos/skypanther_alloy/test/projects/Harness/app\r\n[INFO] Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /Users/timpoulsen/repos/skypanther_alloy/test/projects/Harness/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator\r\n[DEBUG] /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n[DEBUG] throw e;\r\n[DEBUG] ^\r\n[DEBUG] TypeError: Cannot call method 'on' of null\r\n[DEBUG] at /Users/timpoulsen/repos/skypanther_alloy/test/projects/Harness/plugins/ti.alloy/hooks/alloy.js:142:18\r\n{code}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-26T17:58:07.000+0000", "updated": "2014-06-26T17:58:07.000+0000" }, { "id": "311123", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "New PR https://github.com/appcelerator/alloy/pull/462\r\n\r\nMerged to master and 1_4_X branches", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-26T18:26:28.000+0000", "updated": "2014-06-26T18:26:28.000+0000" }, { "id": "313712", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-12T20:43:34.000+0000", "updated": "2014-07-12T21:10:11.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }