Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Rename not working in php project. #6531

Closed
mhrownaghi opened this issue Oct 4, 2023 · 3 comments
Closed

Refactor Rename not working in php project. #6531

mhrownaghi opened this issue Oct 4, 2023 · 3 comments
Labels
kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor)

Comments

@mhrownaghi
Copy link

Apache NetBeans version

Apache NetBeans 19

What happened

I find error when refactor rename a method or a property. The error message is "The element has the same name as before.".

How to reproduce

My file:
Screenshot from 2023-10-04 23-00-18
step1: Select on setName method and press CTRL+R.
step2: click Preview button
error:
Screenshot from 2023-10-04 22-53-38

Did this work correctly in an earlier version?

No / Don't know

Operating System

OpenSUSE Leap 15.5 - x64

JDK

11

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

@mhrownaghi mhrownaghi added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Oct 4, 2023
@junichi11 junichi11 added PHP [ci] enable extra PHP tests (php/php.editor) and removed needs:triage Requires attention from one of the committers labels Oct 4, 2023
@junichi11
Copy link
Member

@mhrownaghi Please provide not only the image but also an example code to reproduce it.

@troizet
Copy link
Collaborator

troizet commented Oct 5, 2023

Did you enter a new method name in the New Name field before clicking the Preview button?
rename_form2

@mhrownaghi
Copy link
Author

oh yes, I forgot enter new method name. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

No branches or pull requests

3 participants