Re: crashes after changing signatures of virtual functions / virtual inherited classes
Re: crashes after changing signatures of virtual functions / virtual inherited classes
- Subject: Re: crashes after changing signatures of virtual functions / virtual inherited classes
- From: Dair Grant <email@hidden>
- Date: Fri, 4 Aug 2006 12:07:19 +0100
Steve Checkoway wrote:
>>> I've noticed that - it's as if Xcode doesn't immediately save the
>>> file when you hit "Save". If you save and then compile quickly
>>> sometimes it misses that the file has changed (it seems to compile
>>> with the old version of the file - the one before saving). If you
>>> hit compile again a few seconds later all is well.
>>
>> I have seen this also - I tend to make changes, and then hit cmd-S
>> cmd-K. Sometimes I will get compile errors that I have just fixed -
>> as if Xcode is compiling the old version of the file.
>
>I haven't seen this while compiling, but I've seen something similar
>with SCM.
I have also seen this problem, but since I do SCM outside of Xcode I
don't think that's related.
In my case (rdar://4419522, closed as can't reproduce), after a failed
build I selected an error in the Build Results window to make the fix in
the embedded editor. The source in the embedded editor contained some
typos, which failed to compile, and that I thought I had fixed.
I had the same source file open in a stand-alone editor, and attached a
screenshot to my radar showing the two editors displaying different
content for the same source file, even though neither of them have their
icon/close widget marked as dirty.
From this I assume that Xcode keeps multiple copies of source files in
memory, rather than sharing the same data between editors, and what was
sent to the compiler was the wrong copy.
That would be consistent with the build failing, as the end result was
as if the (older) source in the embedded editor had been sent to the
compiler and the (newly saved) source in the stand-alone editor had not.
I have lost work a couple of times to this, by making changes and saving
from the embedded editor (which then overwrites the file with the old
copy of the source) so I don't think it's that time sensitive (other
than the two editors getting out of sync).
-dair
___________________________________________________
mailto:email@hidden http://www.refnum.com/
_______________________________________________
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