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

NONE for Test Setup / Teardown causes "Undefined keyword" error #597

Closed
MrBIN89 opened this issue Mar 5, 2022 · 2 comments
Closed

NONE for Test Setup / Teardown causes "Undefined keyword" error #597

MrBIN89 opened this issue Mar 5, 2022 · 2 comments
Labels
bug Something isn't working P0 robotframework-ls

Comments

@MrBIN89
Copy link

MrBIN89 commented Mar 5, 2022

Describe the bug
Special NONE value (to disable test case setup or teardown) is highlighted red, complains Undefined keyword: NONE
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-setup-and-teardown:
It is also possible to use value NONE to indicate that a test has no setup/teardown.

To Reproduce
Steps to reproduce the behavior:

  1. Type the code below in VSCode editor
*** Settings ***
Test Setup    NONE
Test Template    NONE
Test Timeout    NONE

*** Test Cases ***
My Test Case
    [Setup]    NONE
    [Template]    NONE
    [Tags]     NONE
    [Timeout]    NONE
    Should Be True    ${TRUE}
*** Keywords ***

Expected behavior
NONE is known and defined value for settings, such as Test Setup, Test Teardown, [Setup], [Teardown], Test Template, [Template], etc.
Screenshots
изображение

Versions:

  • OS: Windows 10
  • Robot Framework Version: 4.1.3
  • Robot Framework Language Server Version: 0.41.0
  • Client Version: VSCode 1.65.0
@MrBIN89 MrBIN89 added bug Something isn't working robotframework-ls labels Mar 5, 2022
@fabioz
Copy link
Collaborator

fabioz commented Mar 5, 2022

Thanks for the report. Marking as high-priority.

@fabioz fabioz added the P0 label Mar 5, 2022
@fabioz fabioz closed this as completed in 388df5c Mar 8, 2022
@fabioz
Copy link
Collaborator

fabioz commented Mar 10, 2022

This is now fixed.

As a note, it's available in a pre-release if you want to check it (see: https://code.visualstudio.com/updates/v1_63#_pre-release-extensions on how to use pre-releases).

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

No branches or pull requests

2 participants