{ "id": "118879", "key": "TIMOB-14933", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15645", "description": "2013 Sprint 18 Core", "name": "2013 Sprint 18 Core", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "15646", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-27T22:16:56.000+0000", "created": "2013-08-21T20:05:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.2.0" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-12-04T18:34:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "The CLI tries to strip the first argument if it's the actual \"node\" executable before parsing the args. The problem is on Windows the node executable can sometimes contain the .exe and the following line of code fails:\r\n\r\n{code}\r\n// cli.js (line 218)\r\nargs[0].slice(-4) === 'node' && args.shift();\r\n{code}\r\n\r\nThis line needs to look like this:\r\n\r\n{code}\r\nargs[0].replace(/\\\\/g, '/').split('/').pop() == process.execPath.replace(/\\\\/g, '/').split('/').pop().replace(/\\.exe$/, '') && args.shift();\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI: Builds where tiapp.xml sdk-version differs from selected SDK fail to properly fork in Windows", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": "Windows only", "comment": { "comments": [ { "id": "268431", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test:\n\n1) Find a Windows machine\n2) Install the Titanium CLI 3.1.2\n3) Download Titanium SDK 3.1.1.GA and 3.1.2.GA\n4) Set Titanium SDK 3.1.2.GA the selected SDK (ti sdk select 3.1.2.GA)\n5) Apply the PR fix to titanium/lib/cli.js\n6) Create an app and set the app's to 3.1.1.GA\n7) Build the app (ti build -p mobileweb)", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-27T19:53:42.000+0000", "updated": "2013-08-27T19:53:42.000+0000" }, { "id": "268435", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium/pull/54", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-27T20:08:11.000+0000", "updated": "2013-08-27T20:08:11.000+0000" }, { "id": "282432", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nWindows 7\nTitanium Studio, build: 3.2.0.201311262027\nTitanium SDK, build: 3.2.0.v20131127194046\nCLI: 3.2.0-beta\nAlloy: 1.3.0-beta\n\nIf tiapp.xml sdk differs from the selected sdk in CLI, then CLI will fork the correct SDK and build successfully.\n{code}[INFO] tiapp.xml set to 3.2.0.v20131127194046, but current Titanium SDK set to 3.2.0.v20131203104847\n[INFO] Forking correct SDK command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" \"C:\\Users\\tester\\AppData\\Roaming\\npm\\node_modules\\titanium\\bin\\titanium\" \"build\" \"--sdk\" \"3.2.0.v20131127194046\" \"--config-file\" \"C:\\Users\\tester\\.titanium\\config.json\" \"--\nplatform\" \"mobileweb\" \"--project-dir\" \"C:\\Users\\tester\\Documents\\Titanium_Studio_Workspace\\mobileweb\" \"--log-level\" \"trace\" \"--deploy-type\" \"development\"{code}\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-04T18:33:44.000+0000", "updated": "2013-12-04T18:33:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }