• 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
Quick compile or syntax check instead of complete build for syntax check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quick compile or syntax check instead of complete build for syntax check


  • Subject: Quick compile or syntax check instead of complete build for syntax check
  • From: Kieran Kelleher <email@hidden>
  • Date: Wed, 8 Dec 2004 10:49:17 -0500

SHORT VERSION:
Is there a way to perform quick syntax check of the (java) code file I am currently working on WITHOUT having to do a time-consuming build just to check my syntax at compile time?


LONG VERSION:
As you may know, Code Sense starts to behave weird (in java dev anyway) if you have syntax errors in code that you have just typed.

For example if you do something like this with the ';' missing from the first line of code, then the selectedRegions. later on will not display NSMutableArray's methods:
NSMutableArray selectedRegions = new NSMutableArray()


java.util.Enumeration regionIterator = regionsWithDistanceList.objectEnumerator();
while ( regionIterator.hasMoreElements() ) {
NSMutableDictionary regionWithDistance = regionIterator.nextElement();
CTRegion region = (CTRegion)(regionWithDistance.objectForKey("selection"));
if ( region != null ) {
selectedRegions.addObject(<#java.lang.Object#>)
}
}

Simply correcting the syntax error magically makes Code Sense behave properly for that last line of code. So when I see Code Sense misbahaving while typing code, I want to quickly (keyboard shortcut and see errors) check syntax since Code Sense not working suddenly means there is a syntax error in the code I just typed. How can I do this?

Regards, Kieran


________________________________________________________________
Dev Config = OS X 10.3.5 / Java 1.4.2_05 / WO 5.2.3 / XCode v1.5 / MySQL 4.0.20 / Connector-J 3.0.11
Deploy Config = OS X 10.3.5 Server / Java 1.4.2_05 / WO 5.2.3 / MySQL 4.0.20 / Connector-J 3.0.11
My Blog: http://webobjects.webhop.org/

 _______________________________________________
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

  • Prev by Date: Re: What should CodeSense do?
  • Next by Date: Info.plist problem
  • Previous by thread: Re: Distributed Builds and External Targets?
  • Next by thread: Info.plist problem
  • Index(es):
    • Date
    • Thread