• 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 3.0 and Java Code Completion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 3.0 and Java Code Completion


  • Subject: Re: Xcode 3.0 and Java Code Completion
  • From: Rob Lockstone <email@hidden>
  • Date: Mon, 7 Apr 2008 12:19:39 -0700

On Apr 6, 2008, at 12:09 , Andrew Pontious wrote:
On Mar 31, 2008, at 8:25 PM, Rob Lockstone wrote:

I would have sworn this was working, but now I'm not so sure.

Code completion in a java project is working in terms of completing java import statements and in finding strings that exist in the project, but it's not doing method completion, either for standard Java library methods or even for methods within the scope of the project of even the same file.

Did I miss some step when installing Xcode 3.0?

I can duplicate this with a newly created Java Tool project, so I know it's not specific to my projects. I've tried rebuilding the code sense index (multiple times), but no luck.

I also tried searching the list archives via apple's site and google. I don't see any recent (post 3.0 release) of this problem, so I have to assume I'm doing something wrong.

I have also created a Java Tool project in Xcode 3.0, and am having trouble with code completion. If you look at the class browser window for such a project (Cmd-Shift-C), you'll see that the index is populated with Java library classes, such as String, and String has methods.

But if I do this in my main Java class:

    public static void main (String args[]) {
        // insert code here...
        System.out.println("Hello World!");
        
        String foo = new String();
        
        foo.
    }

and attempt to code complete after "foo.", I get no results. I get the same behavior in 2.5, so switching to Xcode 2.5 is not a viable workaround.

Please file a bug with your own use case for this issue, and email me the bug number.

Thanks Andrew. I did file a bug report on April 3rd, <rdar://5842431>.

In my experience, java code completion *did* work with Xcode 2.5, when I had just Xcode 2.5 installed. I do not currently have 2.5 installed, only 3.0. I am extremely reluctant to install 2.5 because I at least have subversion working with Xcode 3.0 and don't want to do anything to mess that up.

Fwiw, in the past, Xcode had problems doing code completion inside java static methods (though it worked fine in 2.5, iirc). So that's why, in my bug report, I mentioned that I created a new method and code completion still did not work.

Rob

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 3.0 and Java Code Completion
      • From: Ladd Van Tol <email@hidden>
References: 
 >Re: Xcode 3.0 and Java Code Completion (From: Andrew Pontious <email@hidden>)

  • Prev by Date: Maybe someone can answer this question about the Ref Docs
  • Next by Date: Re: Xcode 3.0 and Java Code Completion
  • Previous by thread: Re: Xcode 3.0 and Java Code Completion
  • Next by thread: Re: Xcode 3.0 and Java Code Completion
  • Index(es):
    • Date
    • Thread