Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode project has lost track of file modification



Ah! I've caught it in the act. Xcode (3.1) seems to be extremely confused. I've ended up somehow with two separate dedicated windows both containing separate edits of the same file.

My project lives in /Volumes/Development/scatter
The file in question lives in /Volumes/Development/Common/ jComplex.h, and is added to the project for convenience but isn't a member of any targets.


When I command-click on the window title one of them (correctly) represents the path as:
Jonathan Taylor's MacBook ... Development ... Common ... jComplex.h
The other one represents the path as:
Jonathan Taylor's MacBook ... Development ... scatter ... Development [complete with the normal hard disk icon] ... Common ... jComplex.h
This path is of course non-existent.


There's no question this is a bug on some level, but I've no idea what has got corrupted or confused in order to trigger it. Any thoughts?

Are you sure there's not a symlink to /Volumes/Development in scatter?
I am certain that there isn't. I have read through the entire directory contents with ls -la and there is nothing untoward. I have also never actively created a symlink to anything anywhere on the machine.

I can reproduce the problem as follows:
Create a header file in Common which will trigger a compiler error
Add it to the project (not to any targets)
Include it from a source file
Compile that source file
When the header is displayed in the build results window it has the corrupted path associated with it.


There does seem to be something slightly special about the Common folder though: if I follow those steps but create the header in some other random directory on Development then I _don't_ seem to get the problem.

This project file has survived several Xcode upgrades. I don't remember if at some point I may have explicitly designated the Common folder in some way as containing source files (I can't remember what config options there have been in previous Xcode versions). However now there isn't any specific reference to that folder in the Project or Target settings, and a quick grep through the .xcodeproj doesn't reveal anything that looks sinister to me. Having added two files to the project:

FBA2A5B30E2C91F000D833B5 /* temp2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = temp2.h; path = ../from_cray/temp2.h; sourceTree = SOURCE_ROOT; };
FBA2A5B40E2C921000D833B5 /* temp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = temp.h; path = ../Common/temp.h; sourceTree = SOURCE_ROOT; };


... I can reproduce the bug with temp.h but not with temp2.h.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Xcode project has lost track of file modification (From: Jonny Taylor <email@hidden>)
 >Re: Xcode project has lost track of file modification (From: Chris Espinosa <email@hidden>)
 >Re: Xcode project has lost track of file modification (From: Jonny Taylor <email@hidden>)
 >Re: Xcode project has lost track of file modification (From: Jonny Taylor <email@hidden>)
 >Re: Xcode project has lost track of file modification (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.