• 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
Xcode 3.1 doesn't jump to error location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 3.1 doesn't jump to error location


  • Subject: Xcode 3.1 doesn't jump to error location
  • From: xcode <email@hidden>
  • Date: Mon, 05 Oct 2009 21:39:03 +0200

Hi,

on compile errors, xcode does not jump to the error location (neither
from the "Errors and Warnings" smart group, nor from the "Build results"
widget, if an external build tool is used and the build directory is
not  the project directory.

Is this is a bug? Is there a workaround other than moving all sources to
the top?

Here is a small example using make and gcc:

1) Create a project 'test' with external build tool in directory 'test'.
2) Add a subdirectory 'src' containing 'Makefile' and 'main.cpp' (see below)
3) Add an external build target 'test' and set the build directory to 'src'
4) Run the build.

Now a compile error is shown (expected!), but double clicking onto the
error location does not open main.cpp (as expected).

After step 2), the directory 'test' looks like this:
./src:
Makefile main.cpp

./test.xcodeproj:
project.pbxproj ...

Makefile:
------
test: main.cpp
gcc -o test main.cpp
------

main.cpp:
-----
int main() {
error;
}
-----

Error in step 4):
Line Location main.cpp:2: error: 'error' was not declared in this scope

If main.cpp and Makefile are moved one directory up and the build
directory is empty, the same compile error is reported and "Errors and
Warnings" gets me to main.cpp (even shows message bubbles)

Am I doing something wrong?




_______________________________________________ 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: Nib exploded (according to SCM)
  • Next by Date: Re: Nib exploded (according to SCM)
  • Previous by thread: [MEETING] Toronto Area Cocoa & WebObjects Developer Group - October 13
  • Next by thread: Faster adding of files to targets
  • Index(es):
    • Date
    • Thread