Jump to content
Mr. Daniel

Refactor menu grayed out for Rename...

Recommended Posts

Dear all, I am struggling with 10.4.2.

Rename refactoring worked during 1 hour after installation but has suddenly stopped working (the menu is grayed out, and control shift E, show the Find dialog instead of the refactor window). As well as control G, to 'go to' a variable or method declaration, doesn't work anymore.

 

What is the cause of this behaviour ?

 

Regards, Daniel

 

 

Share this post


Link to post
20 minutes ago, Mr. Daniel said:

Rename refactoring worked during 1 hour after installation but has suddenly stopped working (the menu is grayed out, and control shift E, show the Find dialog instead of the refactor window). As well as control G, to 'go to' a variable or method declaration, doesn't work anymore.

What plug-ins have you installed?

Share this post


Link to post

It looks like the IDE is kinda struggling with itself, because after some time code completion also failed. Now that I have restarted the IDE, code completion works again.

Share this post


Link to post

Somewhat related, but for a different refactoring.

 

Using the inline var definition breaks the extract method refactoring. 

 

procedure Test;
var
  Value: Integer;
begin
  Value := 0;

  for var i := 0 to 10 do
    Inc(Value);
end;

 

For the above you can't extract Value := 0; as a method. If i is defined in the var section you can. 

 

procedure Test;
var
  i, Value: Integer;
begin
  Value := 0;

  for i := 0 to 10 do
    Inc(Value);
end;

 

I have submitted a report for this RSP-33176

 

Edited by Rob Truby
  • Like 1

Share this post


Link to post

I've noticed this quite a bit. Also, for some projects, the <ctrl>-Space does nothing, even though the project compiles and runs fine. Restarting the IDE doesn't help.

Edited by David Schwartz

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×