[TIMOB-7458] Tooling: api.jsca is generated with invalid xml tags resulting in content assist disparities
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-13T13:45:50.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 1.8.1 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | Tooling |
Labels | core, regression |
Reporter | Dustin Hyde |
Assignee | Bill Dawson |
Created | 2012-01-27T16:35:15.000+0000 |
Updated | 2017-03-06T18:58:44.000+0000 |
Description
Using content assist, in the studio editor, Ti.Media.videoPlayer.repeatMode and other sdk properties have incomplete content assist property descriptions.
The api.jsca file in the sdk has invalid tags for these properties in 1.8.0.1 and 1.8.1. Screenshot attached.
The xml tags were correct and the properties were properly described in content assist using sdk 1.7.5. Screenshot attached.
Steps to Reproduce:
1. Open studio.
2. Create a new project.
3. Select sdk 1.8.0.1 or 1.8.1.
4. In the app.js file, type:
var videoPlayer = Ti.Media.createVideoPlayer();
videoPlayer
5. Open content assist. If it is not open by pressing cntrl + space.
6. Next to videoPlayer, type .repeatMode (e.g., videoPlayer.repeatMode)
7. Click on the content assist description for the property.
Expected Result:
Property description should be fully populated with descriptive elements (i.e., other properties).
Part of the description should read: 'Defaults to Titanium.Media.VIDEO_REPEAT_MODE_NONE.'
Actual Result:
There are holes in the description.
Part of the description reads: 'Defaults to .'
Attachments
File | Date | Size |
---|---|---|
1.7.5 works.png | 2012-01-27T16:35:15.000+0000 | 103356 |
1.8.0.1-1.8.1 doesn't work.png | 2012-01-27T16:35:16.000+0000 | 125650 |
RE-CREATE FAILCASE:
* Create a new Titanium Mobile project in Ti Studio. * Open app.js and type "Titanium.XML.Node.". * Make sure content assist comes up (hit ctrl-space if not) so you can see ATTRIBUTE_NODE, etc. in the member list. * Look at the descriptive text for ATTRIBUTE_NODE. It won't make sense, because it says "The value of when this node is a".TEST THE FIX:
* Create a _new_ Titanium Mobile project in Ti Studio (don't use the old one you used for testing the failcase, because Studio caches the code assist info per-project, so you'll have old code assist info in that older project.) * Open app.js and type "Titanium.XML.Node.". * Make sure content assist comes up (hit ctrl-space if not) so you can see ATTRIBUTE_NODE, etc. in the member list. * Look at the descriptive text for ATTRIBUTE_NODE. This time it should make sense and say "The value of nodeType when this node is a Titanium.XML.Attr".Re-opening because I didn't include the display of pseudo-type names.
SEcond PR: https://github.com/appcelerator/titanium_mobile/pull/1995
Closing ticket due to time passed.