HyperRobotFrameworkPlugin icon indicating copy to clipboard operation
HyperRobotFrameworkPlugin copied to clipboard

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

Open smailloux67 opened this issue 8 months ago • 1 comments

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

smailloux67 avatar Apr 11 '25 11:04 smailloux67

Thanks for your feedback, it's a bug, the interesting thing is this bug occurs in Windows, in OSX it works well.

jnhyperion avatar Apr 15 '25 03:04 jnhyperion