Skip to content

(BUG) Refactoring does not update resource file references In pycharm #598

@kondamurisaikrishna1997-collab

Description

Describe the bug
Refactoring does not update resource file references

Description:
Refactoring operations in Robot Framework projects are not updating resource file references automatically.

Specifically:
When a resource file is renamed, existing imports in other .robot files are not updated.
When a resource file is moved to a different folder, references are not updated automatically.

Steps To Reproduce
Steps to reproduce the behavior:
Prerequisite: All the python and pycharm setup should be done correctly.

  1. Create a project and add file name lets say filename1.robot
  2. Create another file as resource.robot
  3. As import call the resource file in filename1.robot (Resource resource.robot)
  4. Now right click on Resource.robot and refactor (rename) as Resources.robot and refactor
  5. All the variables used in resources.robot should be automatically update in filename1.robot but it is not updating

Expected Behavior
All references to the resource file should be automatically updated when:
The file is renamed
The file is moved

Actual Behavior
References remain unchanged.
Import paths become invalid, causing errors during execution.

Desktop (please complete the following information):

  • RobotCode Version [2.5.1]
  • OS: [Windows 11]
  • Python Version [3.14]
  • RobotFramework Version [7.4.2]
  • Pycharm version [Runtime version: 25.0.2+1-b329.72]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions