• 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: Code Sense
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Sense


  • Subject: Re: Code Sense
  • From: Rob Lockstone <email@hidden>
  • Date: Tue, 10 Aug 2004 12:19:09 -0700

On Aug 10, 2004, at 12:01 PM, Marcus S. Zarra wrote:

I am trying to migrate over to X-Code from IntelliJ's Idea and am
having some difficulty with the code sense.  It seems to me that when
it activates it just shows you every possibility based on the file you
are in instead of showing you the methods, etc that would be
appropriate for where you are.

See my previous post (below) for information and the steps I took to get it partially working. It's not perfect, but better.


Rob

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.


References: 
 >Dynamic file structure (From: Shawn Morel <email@hidden>)
 >Re: Dynamic file structure (From: Scott Tooker <email@hidden>)
 >Re: Dynamic file structure (From: Bryan Pietrzak <email@hidden>)
 >Re: Dynamic file structure (From: Scott Tooker <email@hidden>)
 >Re: Dynamic file structure (From: Bryan Pietrzak <email@hidden>)
 >Re: Dynamic file structure (From: Shawn Morel <email@hidden>)
 >Code Sense (From: "Marcus S. Zarra" <email@hidden>)

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