Skip to content

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

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

Open
huuhtaneno opened this issue Apr 9, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@huuhtaneno
Copy link

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
@huuhtaneno huuhtaneno added the bug Something isn't working label Apr 9, 2025
@huuhtaneno huuhtaneno changed the title [BUG] <title> [BUG] Go To Definition not working when variable is set in python variable file and ***Variables*** Apr 9, 2025
@d-biehl
Copy link
Member

d-biehl commented Apr 14, 2025

Can reproduce it, so it is a bug. Thank you for reporting!!!

@d-biehl d-biehl self-assigned this Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants