Open
Description
Describe the bug
Invalid vscode plugin warnings that cause multiple issues
Using VS code plugin
Name: RobotCode - Robot Framework Support
Id: d-biehl.robotcode
Description: Robot Framework IntelliSense, linting, test execution and debugging, code formatting, refactoring, and many more
Version: 0.73.3
Publisher: Daniel Biehl
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=d-biehl.robotcode
- blah.robot
*** Settings ***
Variables variables.py
Library MyLib ${MY_VAR} AS MyFavLib # generates warning saying that MY_VAR does not exist
*** Test Cases ***
My Test
Log ${MY_VAR} # does not generate above warning and indicates (suite variable [imported]) ${MY_VAR}
MyFavLib.do_something # this is also generating a warning which is likely due to the fact that vscode extension considers this lib un-initialized. At runtime everything is fine however suppressing a warning on each keyword usage is not very practical
- variables.py
def get_variables() -> dict:
return {
"MY_VAR": "whatever",
}
Desktop (please complete the following information):
Version: 1.85.2
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:11.430Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.4.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status