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: David Ewing <email@hidden>
- Date: Fri, 6 Aug 2004 11:09:53 -0600
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.
On Aug 5, 2004, at 5:38 PM, Rob Lockstone wrote:
For me, the code completion works on instances of java objects
which I have created and which exist in my project but not for
standard Java classes. That is, it shows instance methods of my own
custom classes. However, it does not show instance (or static)
methods of Java classes. I'm working with a "converted" pre-1.5
Xcode project, i.e. not a new project/target created with 1.5.
Matthew, does Java code completion only work completely when a
project/target is created specifically by the 1.5 version of Xcode?
Bug filed: <rdar://3753175/>. If you think this is important to
fix, then you should file a bug as well because Apple uses the
number of instances of a bug report filed to help set the priority.
Rob
On Aug 5, 2004, at 4:36 PM, Ken Hawkins wrote:
i know it sounds crazy but have you clicked and activated the
'Automatically suggest matching option' check box as well as
'Enable code completion'?
i just tried it with 1.5 and found that i needed to check this one
as well and POOF! like it was supposed to happen it did.
ken;
On Aug 5, 2004, at 4:07 PM, Christian Pekeler wrote:
On Aug 5, 2004, at 2:51 PM, Matthew Formica wrote:
Here are some of the key improvements in this version:
* Code completion for Java and AppleScript
What do you actually mean by code completion? To me, the Java
code completion doesn't seem much different from the text
completion in Xcode 1.2. For example
String aString = "blah";
aString.ind
doesn't give me any completion for indexOf() in Xcode 1.5, one of
String's methods. Other Java IDEs know that aString is an
instance of String and are able to complete to all methods
provided by String, and in this case trim down the selection of
possible completions to all methods starting with 'ind'.
I expect that if you're not running into the issue above, then you're
trying to do code completion outside of a method. This is an
unfortunate known limitation to code completion in Xcode 1.5.
Dave
_______________________________________________
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.