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
|