Skip to content

[BUG] robotcode.namespace(VariableNotFound) when using Set (Test/Suite/Global) Variable keywords #233

Open
@kstine

Description

@kstine

Describe the bug
Whenever Setting a new variable with the Set (Test/Suite/Global) Variable keyword there is a robotcode.namespace(VariableNotFound) error message even though running the test case raises no such error.

To Reproduce

A More Complex Test Case
    [Documentation]    Test documentation
    [Tags]    standard-example-tag
    Set Test Variable    ${EXPECTED_LENGTH}    3
    ${IS_LARGER_THAN_FOUR}    Create List    suite    scope    variable
    Length Should Be    ${IS_LARGER_THAN_FOUR}    ${EXPECTED_LENGTH}

Expected behavior
Expect it to detect that the variable was created previous to usage.

Screenshots/ Videos
Screenshot 2024-03-03 at 11 28 29 AM

Logs
Copy the messages from VSCode "Output" view for RobotCode and RobotCode Language Server for the specific folder/workspace.

Desktop (please complete the following information):

  • VS Code Version 1.87.0
  • RobotCode Version 0.76.2
  • OS: MacOS
  • Python Version 3.11.8
  • RobotFramework Version 6.1.1
  • robotframework-robocop 5.0.3
  • robotframework-tidy 4.9.0

Additional context
If the variable is first listed in the *** Variables *** section then the error goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions