Re: Xcode 1.5 Release - Java Code Completion Issues
Re: Xcode 1.5 Release - Java Code Completion Issues
- Subject: Re: Xcode 1.5 Release - Java Code Completion Issues
- From: Rob Lockstone <email@hidden>
- Date: Fri, 6 Aug 2004 13:06:28 -0700
The class browser appears to show all my classes. At the very least, it
is showing classes that I know are NOT working with code completion.
I'm sorry, I don't know what a "Definition Search" is or how to perform
one. Can you elaborate?
Yes, if I look at the Activity Viewer while rebuilding the index, it
does show the files being processed.
I followed Christian's recommendation from a previous post and modified
the JavaIndex/JavaIndex.xcode/project.pbxproj file to use CurrentJDK
instead of pointing directly at 1.4.1 and then re-ran the
install_templates script. I also went into my own project directory and
removed the .pbxindex directory and it automatically rebuilt my
project's index from scratch when I restarted Xcode.
The result is exactly the same as before. I am not seeing methods (or
at least not the correct methods) for my own local classes. Nor am I
seeing the correct/complete methods for Java classes. For example,
attempting to use code completion on an instance of a
java.text.SimpleDateFormat object with the method name starting with
the letter 'p' shows such weird names as: party, possible, pretty and
probably. None of which are methods on the SimpleDateFormat object. I
really don't understand that list of words at all. The word "pretty"
appears absolutely nowhere in any of my source files except in some
comments and in an html file (which I don't think is part of the index
anyway, is it?). Furthermore, the two methods of SimpleDateFormat which
DO start with 'p' are parse and parseObject, neither of which show up
in the code completion list.
Also, as before, for any methods that are legitimate, it does not show
any argument lists.
Is there something else I can try? Something else I can delete and
rebuild? It seems like "code completion", for me at least, is just a
list of words that happen to appear anywhere in any of the files
included in the project. It's more like a vocabulary list than anything
else.
Rob
On Aug 6, 2004, at 10:09 AM, David Ewing wrote:
On Aug 5, 2004, at 8:42 PM, Rob Lockstone wrote:
Actually, it's even worse now. I re-ran the install_templates command
(restarted, even though I thought that wasn't necessary), then
rebuilt my project's index (Get Info -> Code Sense -> Rebuild Index).
Now I don't even get method names for my own classes, much less for
Java classes. :-(
Any thoughts?
What do you see in the class browser? Can you do a definition search
and find classes/methods? (Definition searches are the "lowest level"
access to the index. If they don't find a symbol, the symbol's not in
the index.)
Rebuild the index again with the Activity Viewer open. Do you see the
files get processed? If you're using index templates, you shouldn't
see all the system classes go by (but you should have seen them go by
when you built the templates in Terminal).
Dave
On Aug 5, 2004, at 7:11 PM, David Ewing wrote:
On Aug 5, 2004, at 7:07 PM, Rob Lockstone wrote:
Hmmm, I'm also not seeing argument lists for java code completion.
I have the radio buttons selected to both display and insert
placeholders for arguments. But I'm not seeing the argument lists.
Someone on the webobjects discussion list posted the following. I'm
going to try it now to see if it helps resolve any other code
completion issues I'm seeing. Note that what he did NOT solve the
issue of not seeing methods for standard Java classes.
----- From Owen McKerrow -----
After a little fiddling I thought I would pass on some little Tips
for CodeSense to get Code Completion to work with the WebObjects
FrameWorks :
1) You will need to use the index templates found under
/Developer/Extras/Index Templates. Follow the instructions in the
Read me file.
You shouldn't need to use the index templates.
2) If you already have them done under 1.2, you will need to
re-index them and restart your machine.
Ah, but this is certainly true (though there's no need to restart
your machine). This is probably what you're seeing Rob. It would
account for completion working for your classes but not the system
classes.
3) You will need to re-index your project.
That's probably also true. (This will have happened automatically,
but if you're using index templates and they weren't rebuilt first,
then you'll need to rebuild your project's index after rebuilding
the templates.)
I now have Code Completion for my WebObjects classes. I can't
however get it to work on standard Java classes such as String.
_______________________________________________
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.