Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
- Subject: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
- From: Rob Lockstone <email@hidden>
- Date: Mon, 9 Aug 2004 11:49:19 -0700
On Aug 8, 2004, at 9:58 AM, Prachi Gauriar wrote:
2. Do I need to re-install the Java 1.4.2 SDK?
The readme says yes. I had a helluva time getting the documentation
to work properly, but I can't tell if that was because of my
configuration or not. Be sure to use the script in /Developer/ADC
Reference Library/documentation/Java/scripts to unpack and index the
Java documentation.
This appears to help with the code completion issues, at least somewhat
(thanks for pointing it out, Prachi). I don't know if it's the
un-jaring of the docs themselves or the running of PBHelpIndexer at the
end of the un-jaring script.
After running the unjar documentation script, code completion appears
to be working a little better, although not perfect. It's now
suggesting more appropriate method names for both my own classes and
for standard Java classes. However, it is still not quite right. For
example, indexOf is still not one of the suggested methods for an
instance of a String. But a SimpleDateFormat object doesn't suggest the
completely ridiculous names "pretty" or "probable" as before.
Also, I have yet to see it show the argument list or put in placeholder
arguments. Has anyone seen either of those options working for Java
code completion?
For the record, I also tried re-building the index templates (they were
already up to date, so running the script did nothing), and also
rebuilding my project's index again. These had no effect on the above
problems.
I followed the same process while upgrading my G5 over the weekend and
have the same results wrt Java Code Completion as on my PowerBook.
Here's the process I followed:
1. Install Xcode 1.5 over 1.2 (no previous Developer Previews of 1.5)
2. Re-install Java 1.4.2 SDK
3. Run the unjarJavaDocumentation script in /Developer/ADC Reference
Library/documentation/Java/scripts/
4. Modify the project.pbxproj file in /Developer/Extras/Xcode Index
Templates/ so that it refers to CurrentJDK instead of 1.4.1 (there are
two instances).
5. Run (as root) the install_templates script in
/Developer/Extras/Xcode Index Templates/
6. Rebuild my project's index
Regarding step 2, installing the 1.4.2 SDK, the Xcode 1.5 ReadMe
states, "If you are doing Java development, make sure you have the
latest Java software update (currently Java 1.4.2) and after installing
Xcode Tools, install the latest Java Developer Tools."
Unlike the Xcode 1.2 ReadMe, which explicitly said that you MUST
re-install the Java SDK after installing Xcode, the above statement is
open to interpretation. Do you have to reinstall the SDK? Or do you
just need to have it installed in the first place because Xcode 1.5
relies on it? This should be made clear.
Having said that, I elected to re-install the 1.4.2 SDK after
installing Xcode 1.5, just to be safe. But I still had problems with
code completion.
Rob
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.