• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]


  • Subject: Re: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
  • From: Shawn Morel <email@hidden>
  • Date: Tue, 10 Aug 2004 18:02:20 -0400

I went through all the steps outlined below and still cannot seem to get the simplest of code sense to work with java. Sure Xcode will offer code completion for text tokens that I have entered elsewhere in the file but so code completion when it comes to actual code insight.

an example that fails:

import java. (pops up a list of bogus constants that seem to have no relevance to the project)

also I can't seem to get any method insight for methods in other classes. Are we supposed to add a jar file to our java projects to make this work. Is anyone else having difficulties with getting code sense to work with Java. It just sort of seems moot that one of the touted features of this release was Java code sense support.

Shawn

On 9-Aug-04, at 2:49 PM, Rob Lockstone wrote:

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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
      • From: David Ewing <email@hidden>
References: 
 >Quick questions upon installing XCode 1.5 (From: Daryle Walker <email@hidden>)
 >Re: Quick questions upon installing XCode 1.5 (From: Prachi Gauriar <email@hidden>)
 >Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED] (From: Rob Lockstone <email@hidden>)

  • Prev by Date: Re: Code Sense
  • Next by Date: Re: Developer documentation as PDF
  • Previous by thread: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
  • Next by thread: Re: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
  • Index(es):
    • Date
    • Thread