Skip to content

[BUG] Glob pattern in python-path setting (robot.toml) does not work #352

Closed
@bennyvw

Description

@bennyvw

Describe the bug
In robot.toml the setting python-path can be used. According to the specs (https://robotcode.io/03_reference/config#python-path) a glob pattern can be used.
When I try this:
python-path = [ "Resources/Actions" ]
it works for the keywords in that folder. But when I try this:
python-path = [ "Resources/**" ]
(which should be correct according to https://globster.xyz/) it does not work. The imports in my robot files show up as 'not found'.

Steps To Reproduce

  1. Make sure Resources folder exists with subfolder containing keyword libraries.
  2. Create robot.toml with this line:
    python-path = [ "Resources/**" ]
  3. Have a .robot file importing a resource from the subfolder in Resources.

Expected behaviour
The resource can be found.

Actual behaviour
The resource cannot be found.

Desktop (please complete the following information):

  • VS Code Version 1.95.2
  • 0.96.0 RobotCode Version
  • 7.0.1 Robot Framework Version
  • 3.11.8 64-bit Python Version
  • 5.4.0 Robocop Version
  • 4.14.0 Tidy Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions