• 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: Refactor -> Rename does nothing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refactor -> Rename does nothing


  • Subject: Re: Refactor -> Rename does nothing
  • From: Doug Hill <email@hidden>
  • Date: Wed, 23 Sep 2015 18:09:07 -0700

Hi Quincey,

Thanks for the suggestions. FWIW, here is what I see:

• Project is indexed. I can tell because I’ve tried this without indexing being finished and it tells me to wait until that’s done.
• I can also Command-click that symbol to go to declaration/implementation.
• Target seems to be set correctly. I’m using a scheme that seems to reference the correct target. Also, in the Targets list of the Project, the correct one is highlighted.
• I’ve done Clean Build Folder and removed items in Derived Data.
• Console doesn’t have any messages when I do the Refactor and I don’t see anything in the history that is suspicious.

One possibility is that I’m working on new code and there are some compile errors in files completely unrelated to the symbol I’m trying to rename. Does that trip up the refactor?

Doug Hill


On Sep 23, 2015, at 5:47 PM, Quincey Morris <email@hidden> wrote:

On Sep 23, 2015, at 17:37 , Doug Hill <email@hidden> wrote:

It seems like I’m the only person that sees this. I guess I should report a bug.

The most likely reason for this (aside from a random bug) is that your project isn’t being indexed. The first thing to do is try to find out whether any symbols are indexed. (For example, Command-click on a symbol you defined, and see if you get to the definition.)

If not, that’s the problem you actually need to figure out.

If indexing has been done, you need to try to find out if the symbol you’re renaming is included in the index. (For example, Command-click on the symbol, and see if you get to the definition.)

Another reason for this behavior might be that the code you’re starting from isn’t in the current target. (This would be a variant of “isn’t being indexed”.)

If you’re desperate, you can try cleaning the project, cleaning the build folder, or deleting the derived data folder.

Also, don’t forget to check the system log (Console app) to see if there’s anything interesting there.


 _______________________________________________
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: Refactor -> Rename does nothing
      • From: Quincey Morris <email@hidden>
References: 
 >Refactor -> Rename does nothing (From: Doug Hill <email@hidden>)
 >Re: Refactor -> Rename does nothing (From: Kaydell Leavitt <email@hidden>)
 >Re: Refactor -> Rename does nothing (From: Doug Hill <email@hidden>)
 >Re: Refactor -> Rename does nothing (From: Doug Hill <email@hidden>)
 >Re: Refactor -> Rename does nothing (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Refactor -> Rename does nothing
  • Next by Date: Re: Refactor -> Rename does nothing
  • Previous by thread: Re: Refactor -> Rename does nothing
  • Next by thread: Re: Refactor -> Rename does nothing
  • Index(es):
    • Date
    • Thread