You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Using variables from Python files in Robot Framework does not navigate to the correct line #428
Describe the bug
Some variables are defined in a Python file, and the file is imported in the *** Variables *** section of a Robot Framework file. When clicking on a variable in *** Test Cases ***, it does not navigate to the corresponding line in the Python file.
Steps To Reproduce
Steps to reproduce the behavior:
Create a Python variables file, e.g., test.py.
Import the Variables file in the Robot file.
Hover over the variable name—the variable value is displayed.
Press Ctrl + Left Click.
The cursor jumps to the Python file but defaults to the first line instead of the line where the variable is defined.
this is not supported yet, i know RFLS can do something like this, but it used his own algorithm to find variables in variable files and not the robot framework algorithm, so it does only support simple variables, but on complex things or dynamic variable files. RobotCode uses Robot Frameworks algorithm to find variables, but unfortunally RobotFramework has no information about where, on which line this variable is defined.
Should we convert this bug in an enhancement request?
Activity
d-biehl commentedon Apr 29, 2025
this is not supported yet, i know RFLS can do something like this, but it used his own algorithm to find variables in variable files and not the robot framework algorithm, so it does only support simple variables, but on complex things or dynamic variable files. RobotCode uses Robot Frameworks algorithm to find variables, but unfortunally RobotFramework has no information about where, on which line this variable is defined.
Should we convert this bug in an enhancement request?