• 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 1.5 Release - Java Code Completion Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Tue, 10 Aug 2004 21:24:07 -0600

On Aug 6, 2004, at 4:10 PM, Rob Lockstone wrote:

I don't know if this is relevant, but I get the following error twice in the Console every time I start Xcode 1.5, before even opening a project file:

2004-08-06 15:06:53.562 Xcode[2191] _NSCodeAndEnumerationFlagForTypeInSuite(): The type 'NSData<QDPoint>' used in the script suite 'PBXProjectSuite' wasn't parsed successfully.

I'm not sure why you're seeing this, but I am sure that it's not related. It would be good to file a bug on it though.



On Aug 6, 2004, at 1:06 PM, Rob Lockstone wrote:

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?

By "Definition Search" I just mean doing a "Find in Project" and switching from "Textual" to "Definition". It searches the index rather than the source files.


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.

This is definitely a necessary step if you're using index templates (which you really don't need to do). The other option is to turn off index templates (which don't help as much for Java because of some major performance improvements). For that do "defaults write com.apple.Xcode PBXCodeSenseEnableIndexTemplates NO" in Terminal.


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.

This sounds suspiciously like AppKit's completion, and not Xcode's. Does the list that appears have a field at the bottom showing the type of the completed expression? Does it have a narrow scroll bar? You can compare the list to what you get in TextEdit. If they look the same, then that's what you're seeing. Now, why you would be seeing this is a complete mystery to me. It would be good to file a bug on this, and include your preferences file (~/Library/Preferences/com.apple.Xcode.plist), and the project where you're seeing the problem.


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.

Do you have any third party extensions installed? Anything that might make your installation different from the norm?


Dave

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).
_______________________________________________
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.


  • Follow-Ups:
    • Re: Xcode 1.5 Release - Java Code Completion Issues
      • From: j o a r <email@hidden>
References: 
 >Re: Xcode 1.5 Release (From: Matthew Formica <email@hidden>)
 >Re: Xcode 1.5 Release (From: Christian Pekeler <email@hidden>)
 >Re: Xcode 1.5 Release (From: Ken Hawkins <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: Rob Lockstone <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: Rob Lockstone <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: David Ewing <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: Rob Lockstone <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: David Ewing <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: Rob Lockstone <email@hidden>)
 >Re: Xcode 1.5 Release - Java Code Completion Issues (From: Rob Lockstone <email@hidden>)

  • Prev by Date: Build variables in .strings files?
  • Next by Date: Re: Xcode 1.5 Code Completion Issues [PARTIALLY SOLVED]
  • Previous by thread: Re: Xcode 1.5 Release - Java Code Completion Issues
  • Next by thread: Re: Xcode 1.5 Release - Java Code Completion Issues
  • Index(es):
    • Date
    • Thread