Skip to content

[BUG] Go To Definition not working when variable is set in python variable file and ***Variables*** #424

Open
@huuhtaneno

Description

@huuhtaneno

Describe the bug
When a variable is set in a python file and then the same variable is set in the *** Variables *** section Go To Definition does not work.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create python variables file e.g. test_variables.py
  2. Import variables file in robot Settings
  3. Set same variable again in Variables
  4. Unable to Go To Definition anywhere in file

test_variables.py

FISH = None
***Settings***
Variables       test_variables.py

*** Variables ***
${FISH}=    test


*** Test Cases ***
Testing
    Log    ${FISH}

Expected behavior
Expected to be able to Go To Definition

Screenshots/ Videos

Image

Desktop (please complete the following information):

  • VS Code Version 1.97.2 also reproducable with 1.95.3
  • RobotCode Version 1.0.3 also reproducable with 0.100.2
  • OS: Windows
  • Python Version: 3.11.9
  • RobotFramework Version: 7.0.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions