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

Undefined variable error shown for variables in template calls #632

Closed
VilleSalonen opened this issue Mar 31, 2022 · 3 comments
Closed

Undefined variable error shown for variables in template calls #632

VilleSalonen opened this issue Mar 31, 2022 · 3 comments
Labels
bug Something isn't working robotframework-ls

Comments

@VilleSalonen
Copy link

VilleSalonen commented Mar 31, 2022

Describe the bug
Variables in template call are shown as being undefined.

To Reproduce

*** Test Cases ***
Sum Test
    [Template]    Sum ${a} And ${b} Should Be ${expected_sum}
    1    2    3
    3    4    7

*** Keywords ***
Sum ${a} And ${b} Should Be ${expected_sum}
    ${sum}    Evaluate    ${a} + ${b}
    Should Be Equal As Integers    ${sum}    ${expected_sum}

Expected behavior
Template variables should be detected as being defined.

Screenshots
image

Versions:

  • OS: Windows 11
  • Robot Framework Version: 5.0
  • Robot Framework Language Server Version: 0.43.2
  • Client Version: 1.66

Logs
Logs can be recreated by running the sample code above.

@VilleSalonen VilleSalonen added bug Something isn't working robotframework-ls labels Mar 31, 2022
@fabioz fabioz closed this as completed in 571d9fe Apr 5, 2022
@fabioz
Copy link
Collaborator

fabioz commented Apr 6, 2022

This should be fixed in the 0.43.5 pre-release (please test it -- if everything is ok a new stable release should be done -- hopefully tomorrow).

@VilleSalonen
Copy link
Author

Thank you @fabioz. I will test this tomorrow at work.

@VilleSalonen
Copy link
Author

This worked great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working robotframework-ls
Projects
None yet
Development

No branches or pull requests

2 participants