Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7458] Tooling: api.jsca is generated with invalid xml tags resulting in content assist disparities

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-13T13:45:50.000+0000
Affected Version/sRelease 1.8.0.1, Release 1.8.1
Fix Version/sRelease 2.1.0, Sprint 2012-08
ComponentsTooling
Labelscore, regression
ReporterDustin Hyde
AssigneeBill Dawson
Created2012-01-27T16:35:15.000+0000
Updated2017-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

FileDateSize
1.7.5 works.png2012-01-27T16:35:15.000+0000103356
1.8.0.1-1.8.1 doesn't work.png2012-01-27T16:35:16.000+0000125650

Comments

  1. Bill Dawson 2012-04-11

    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".
  2. Bill Dawson 2012-04-12

    Re-opening because I didn't include the display of pseudo-type names.
  3. Bill Dawson 2012-04-13

    SEcond PR: https://github.com/appcelerator/titanium_mobile/pull/1995
  4. Bill Dawson 2012-04-13

  5. Lee Morris 2017-03-06

    Closing ticket due to time passed.

JSON Source