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 for escaped variables #638

Closed
MrBIN89 opened this issue Apr 5, 2022 · 1 comment
Closed

Undefined variable for escaped variables #638

MrBIN89 opened this issue Apr 5, 2022 · 1 comment
Labels
bug Something isn't working robotframework-ls

Comments

@MrBIN89
Copy link

MrBIN89 commented Apr 5, 2022

Describe the bug
Example of code

*** Settings ***
Force Tags    vscode
*** Variables ***
@{DEFAULT_LIST}     @{EMPTY}

*** Test Cases ***
Import Variables Should Not Cause Undefined Variables
    @{SUITE_LIST_1} =    Set Variable    ${DEFAULT_LIST}
    Set Suite Variable    \@{SUITE_LIST_1}    one    two
    Set Suite Variable    @{SUITE_LIST_2}    three   four
    Should Be Equal    ${SUITE_LIST_1}[0]    one
    Suite Variable Should Be Defined In Keyword

*** Keywords ***
Suite Variable Should Be Defined In Keyword
    Should Be Equal    ${SUITE_LIST_1}[0]    one
    Should Be Equal    ${SUITE_LIST_2}[0]    three

Causes undefined variable for SUITE_LIST_1 in the next keyword, though SUITE_LIST_2 is defined properly

Expected behavior
Both variables are defined properly and don't cause errors

изображение

Versions:

  • OS: Windows 10
  • Robot Framework Version: 4.1.3
  • Robot Framework Language Server Version: v0.43.2
  • Client Version: VSCode 1.66
@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).

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