Skip to content

[QUESTION] How to tell robotcode that a library is being imported without importing it? #553

@balmeida-nokia

Description

@balmeida-nokia

Please describe.
I have a library which I want to import but, to instantiate it, I need variables which are only available at Suite setup.
So, after getting that data at beginning of Suite Setup, it uses Import Library at the end of that block to load the library.
Everything works correctly when robot runs but robocode can't detect and help with the library. Actually, RobotCode believes that the keywords that the library provides do not exist while they certainly exist.
Is there a way to provide metadata to robotcode that the library exists and is available so it can do static analysis of it and provides the help it does as if it was defined in the *** Settings *** section as Library?

To be clear: My issue is with static code analysis by the vscode extension, not robot execution.

Desktop (please complete the following information):

  • VS Code Version 1.107.1
  • RobotCode Version 2.2.0
  • OS: Windows
  • Python Version 3.12.9
  • RobotFramework Version 7.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions