• 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: Project Find - Replace Fails Silently - Watch Movie!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project Find - Replace Fails Silently - Watch Movie!


  • Subject: Re: Project Find - Replace Fails Silently - Watch Movie!
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 22 Oct 2008 05:30:50 -0700


On 2008 Oct, 20, at 17:34, Dan Korn wrote:

I'm guessing that the "strange offset" you mention in your movie is due to inconsistent line endings in your source file. If you quit Xcode, open the file up in another editor such as BBEdit, force all the line endings to be consistent, save it, then open the file in Xcode again, I'll bet that the problem goes away.

Yes, yes. Before reading Dan's message, I'd come to the same conclusion. But I still think it's buggy.


Months ago, I'd seem the same "offset" behavior when "jumping to definition" and also with the red and yellow markers that appear in the margin after a build. Typically, I get a bunch of warnings in the Build Transcript that say "line X", but the corresponding yellow marker appears at line X+2. Indeed, many project files were inherited from a CodeWarrior project, and since I explicitly set the "explicit" line ending on that file in the movie to "unix" I haven't seen it since.

But, months ago I did go into my Xcode prefs and set Text Editing > Line Endings
For new files: Unix (LF)
For existing files: Unix (LF)


Does the latter setting not mean that whenever Xcode overwrites any file, it will change all line endings to unix?? I expect that this should have cleaned out any non-Unix line endings by now but I still have this problem. With hundreds of files, I don't want to manually change each of them using the Info window. My Groups have "no explicit line endings", and I suppose I could try and change them there, but those settings default to my Xcode preferences if they are not set. Setting things in children individually instead of defaulting to a parent setting will cause more confusion later.

Does anyone know, would it solve this problem to do a multi-file search/replace on my whole "Projects" folder in BBEdit and change all line endings? I'd have to be careful and do some controlled tests first.

See this thread:
http://lists.apple.com/archives/xcode-users/2008/Sep/msg00215.html
http://www.cocoabuilder.com/archive/message/xcode/2008/9/11/24555


Oh, very disappointing to see that the problem might keep coming back if I paste in code from other sources :(

On 2008 Oct, 15, at 15:39, j o a r wrote:

Please file a bug report.

Got Bug ID # 6310211.

_______________________________________________
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


  • Follow-Ups:
    • Re: Project Find - Replace Fails Silently - Watch Movie!
      • From: Dan Korn <email@hidden>
    • Re: Project Find - Replace Fails Silently - Watch Movie!
      • From: Neil <email@hidden>
References: 
 >Project Find - Replace Fails Silently - Watch Movie! (From: Jerry Krinock <email@hidden>)
 >Re: Project Find - Replace Fails Silently - Watch Movie! (From: Dan Korn <email@hidden>)

  • Prev by Date: Re: Parallel Building
  • Next by Date: Re: Parallel Building
  • Previous by thread: Re: Project Find - Replace Fails Silently - Watch Movie!
  • Next by thread: Re: Project Find - Replace Fails Silently - Watch Movie!
  • Index(es):
    • Date
    • Thread