{ "id": "63202", "key": "TIMOB-2570", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-19T17:04:31.000+0000", "created": "2011-04-15T03:23:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "gui", "jss" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T17:54:42.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

If a jss file is modified after a full rebuild has already been\ncompleted, the changes do not take effect. To reproduce:

\n

Create a simple app.js file, add a button and add it to the\nwindow.

\n

var button = Ti.UI.createButton({id:'b'})

\n

Create app.js and add some properties for the button:

\n

#b { width:100; height: 90; title: \"tyskland\"; }

\n

Launch the app. If this is the first time the project has been\nrun, the build process will take place and the app will start. The\nbutton will appear as expected. Now modify the title for the\nbutton. Save the file and re-deploy with the emulator. Notice that\nthe new title is not displayed, the old title is still visible.

\n

Reproduced against 1.5 RC2 running iphone simulator.

{html}", "attachment": [], "flagged": false, "summary": "JSS files are not properly rebuilt when launching emulator", "creator": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128805", "author": { "name": "alexanderjohansson", "key": "alexanderjohansson", "displayName": "Alexander Johansson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I think \nmy problem and yours is the same bug..

\n

Steps to reproduce:
\n1. Create a new (1.5.1) project
\n2. Run iPhone-emulator
\n3. Create the app.jss
\n4. Run the emulator again (the layout hasn't changed)

{html}", "updateAuthor": { "name": "alexanderjohansson", "key": "alexanderjohansson", "displayName": "Alexander Johansson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:06.000+0000", "updated": "2011-04-15T03:23:06.000+0000" }, { "id": "128806", "author": { "name": "roman.heinrich(atgmail)", "key": "roman.heinrich(atgmail)", "displayName": "roman.heinrich (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Yeah, I'm hitting the same bug... It's still not fixed with the\nlatest (2011.01.27 ) build.... So, jss is quite useless for now,\nright?

{html}", "updateAuthor": { "name": "roman.heinrich(atgmail)", "key": "roman.heinrich(atgmail)", "displayName": "roman.heinrich (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:06.000+0000", "updated": "2011-04-15T03:23:06.000+0000" }, { "id": "128807", "author": { "name": "chrisscharf", "key": "chrisscharf", "displayName": "Chris Scharf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This seems to have worked for me:

\n

cp build/iphone/Resources/stylesheet.plist\nbuild/iphone/build/Debug-iphonesimulator/UnionPlus.app/stylesheet.plist

{html}", "updateAuthor": { "name": "chrisscharf", "key": "chrisscharf", "displayName": "Chris Scharf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:07.000+0000", "updated": "2011-04-15T03:23:07.000+0000" }, { "id": "128808", "author": { "name": "chrisscharf", "key": "chrisscharf", "displayName": "Chris Scharf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I should mentioned that you'll want to change the \".app\" path in\nthere for the name of your app (mine is UnionPlus.app in the\nexample)

{html}", "updateAuthor": { "name": "chrisscharf", "key": "chrisscharf", "displayName": "Chris Scharf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:07.000+0000", "updated": "2011-04-15T03:23:07.000+0000" }, { "id": "156893", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "A HD Support ticket encountered same glitch about JSS, where some properties are not fully/properly loaded from JSS file. \r\n\r\nhttp://support.appcelerator.com/tickets/APP-257869/\r\n\r\nrepro sequence:\r\n\r\n//FILE: APP.JS\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar myPlatform = Ti.Platform.osname;\r\nvar win1 = null;\r\nvar myClass = null;\r\n\r\nvar win1 = Titanium.UI.createWindow({className: 'myWin' });\r\n\r\nvar myLabel = Ti.UI.createLabel({\r\n\tclassName: 'myLabel', top:20\r\n}); win1.add(myLabel);\r\n\r\nvar button = Ti.UI.createButton({\r\n\tid:'b',\r\n\theight:25, top:80\r\n});\twin1.add(button);\r\n\r\nif (myPlatform == \"iphone\") {\r\n\tmyClass = 'iphoneClass';\r\n}else{\r\n\tmyClass = 'ipadClass';\r\n}\r\n\r\nbutton.addEventListener('click',function(){\r\n\tvar win2 = Titanium.UI.createWindow({className: myClass });\r\n\twin2.open();\t\r\n});\r\n\r\nwin1.open();\r\n\r\n//FILE: APP.JSS\r\n.iphoneClass {\r\n\turl: \"win2iphone.js\";\r\n\ttitleid: \"base_title\";\r\n\ttitleImage: \"appicon.png\";\r\n}\r\n\r\n.ipadClass {\r\n\turl: \"win2ipad.js\";\r\n\ttitleid: \"base_title\";\r\n\ttitleImage: \"appicon.png\";\r\n}\r\n\r\n.myLabel{\r\n\tcolor: #FF0000; title: \"To open Window\"; \r\n}\r\n\r\n#b { color:#FF8888; width:100; height: 90; title: \"Press Button\"; }\r\n\r\n.myWin {\r\n\tcolor: #FF0000;\r\n}\r\n\r\n//FILE: win2ipad.js\r\nvar win = Titanium.UI.createWindow({backgroundColor:'red'});\r\n\r\nvar _title = Ti.UI.createLabel({\r\n\ttext:'Welcome to iPad', color:'white', top:45\r\n});\r\n\r\nwin.add(_title);\r\nwin.open();\r\n\r\n\r\n//FILE: win2iphone.js\r\nvar win = Titanium.UI.createWindow({backgroundColor:'green'});\r\n\r\nvar _title = Ti.UI.createLabel({\r\n\ttext:'Welcome to iPhone', color:'white', top:45\r\n});\r\n\r\nwin.add(_title);\r\nwin.open();\r\n", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-16T06:59:17.000+0000", "updated": "2011-06-16T06:59:17.000+0000" }, { "id": "393626", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "JSS support has been removed since Titanium SDK 4.2.0.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-19T17:04:31.000+0000", "updated": "2016-08-19T17:04:31.000+0000" }, { "id": "413847", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as JSS support has been removed since Titanium SDK 4.2.0.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:54:42.000+0000", "updated": "2017-03-20T17:54:42.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }