Skip to content

False "Variable definition not found" warning when blank line separates [Documentation] and assignment (in test cases or keywords) #90

@smailloux67

Description

@smailloux67

Description:
In the Hyper RobotFramework Support plugin for PyCharm, a false-positive warning appears when using variable assignment if there is a blank line between the [Documentation] setting and the assignment — this happens in both test cases and keywords.

Steps to Reproduce:

Create a test case or keyword like this:

*** Test Cases ***
Test Var
    [Documentation]    test

    ${var1}  ${var2} =    Extract Test
    Log To Console    ${var1}:${var2}

Or:

*** Keywords ***
Extract Test
    [Documentation]
    
    ${test1} =    Set Variable    Alice
    ${test2} =    Set Variable    30
    RETURN    ${test1}  ${test2}

The plugin incorrectly highlights the variables with: Variable definition not found

Expected Behavior:
A blank line after [Documentation] should not affect variable recognition.
Robot Framework executes both examples without error — so this is a plugin-specific bug.

Workarounds:

  • Remove the blank line between [Documentation] and the assignment.
  • Insert any keyword between them.

Environment Details:

Plugin: Hyper RobotFramework Support
IDE: PyCharm
Robot Framework: 7.0
Python: 3.8
OS: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions