[TIMOB-7389] iOS: Content Assist - Content Assist does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-01-25T15:58:12.000+0000 |
Affected Version/s | Release 1.8.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios012312 |
Reporter | Wilson Luu |
Assignee | Bill Dawson |
Created | 2012-01-24T17:14:17.000+0000 |
Updated | 2017-03-09T23:19:58.000+0000 |
Description
Steps to reproduce:
1. Create default Titanium project
2. In app.js, type Ti.
Actual: Nothing appears.
Expected: Pop over dialog should appear that has access to different API classes.
Note: Content Assist works in 1.8.0.1 and 1.9.0.v20120115231633 (1/16/12 Weekly Regression Pass)
Seems like this is a studio, and not timob, bug.
It was working earlier with the same Studio version so it may be a JSCA issue.
Per Wilson, git hash for is 7f46286, so I'll be building and testing with that on my machine.
Cannot reproduce. Works fine for me using build hash 7f46286. But I'm using Titanium Studio 1.0.7.201112281340. I'm not sure how to get the same version of Titanium Studio as Wilson. Here's how i tested: * I checked out, built and released 7f46286. * I verified that the resulting 1.8.1 folder indeed contained the "api.jsca" file, which is what Code Assist uses. * I opened Titanium Studio. * I created a wholly new project (no special templates) targeting 1.8.1 and just iPhone. * I opened Resources/app.js in the editor within Titanium Studio. * I typed "Ti." and immediately Code Assist popped up as expected.
The Titanium Studio version I used for testing was from the RC path: http://preview.appcelerator.com/appcelerator/studio/standalone/update/rc/
Note that if content assist works in one SDK and not another, that can't be a Studio issue (i.e. works in 1.8.0.1 and 1.9, but not in 1.8.1)
Some additional info: Since switching SDKs in Tiapp causes a clean and therefore a reindexing of the JSCA file, we will try to see if this is interfering with our trying to get reproducible case on this. We have seen this not work, and then switching off and then back to the same SDK, the problem was not reproducible anymore.
My guess is that it could be related to something like the attached ticket, where indexing is confused. Cleaning the project should fix it, if that's the case.
The only thing we do is plop api.jsca into the root folder of the sdk. It's there, I checked. Anything beyond that is beyond me.
We have some additional info. On two systems with SDK: 1.8.1.v20120124200134 Titanium Studio, build: 1.0.8.201201210622 we tried "Ti." and got the expected content assist content. Then we cleaned the project (with the file still open and active) and tried content assist again and got nothing. Not sure if this is related or not.
Eric, when CA fails, can you report back the following:
What does your Studio log file say?
Open up Window > Show View > Other > Index View, and make sure the project in question is selected. The Index View should show "Ti" on Window as a property of type Titanium, if all is working correctly.
Do you guys have Project > Build automatically off?
By the way, are those builds coming from the build server or were they hand-made for you by one of the platform engineers? I only checked the build server's version of 7f46286, and it indeed has api.jsca. When we hand-build, we have to the option to _not_ build the api.jsca (since it makes our builds take longer). So if someone hand built it for you, there's the chance that api.jsca is not in there. Of course, in that case, it shouldn't have worked pre-cleaning either.
@Bill The builds we get are from the build server. Not hand-made from platform engineers. @Ingo With Build Automatically off, I was able to repo the bug consistently: 1. Switch SDK build in tiapp and save file 2. In .js file, type Ti However, with Build Automatically on, this bug does not appear.
Closing ticket as invalid.