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 incorrect when the referenced method is defined in another project. #7805

Open
ttSpace opened this issue Jan 16, 2024 · 0 comments
Assignees

Comments

@ttSpace
Copy link

ttSpace commented Jan 16, 2024

Describe the bug

image

Steps to Reproduce

  1. Create python application named PythonAppication1
  2. Create python application named PythonAppication2
  3. Right-click in PythonAppication1 and select Add->reference..., select PythonApplication2 as referenced
  4. Typing code in PythonApplication2.py
def add(a, b):
    print(a + b)
  1. Typing code in PythonAppication1.py
import PythonApplication2
PythonApplication2.add(1,2)
  1. Open PythonApplication2.py and select function name add and right-click to select rename...
  2. Input a new name addTest in rename dialog and press enter

Expected behavior

The name add can be renamed as addTest both in PythonApplication2.py and PythonApplication1.py

Actual behavior

Only renamed in PythonApplication2.py. the name of the place where this method is called has not changed.

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants