Skip to content

[BUG] when using --root and --no-vcs intelisense is not working #380

Open
@S7ud

Description

@S7ud

Describe the bug
related to #359
I can run the tests fine both in the terminal or using the in-file controls, but the intellisence is putting red squiggles under all keywords and resources. I cannot ctrl + left click into a keyword.

I have the following enviroment variables in my dev container

"--env",
"ROBOTCODE_NO_VCS=true",
 "--env",
 "ROBOTCODE_ROOT=/workspaces/project/src/test_framework",

my robot.toml is: /workspaces/project/src/test_framework/robot.toml

in my robot.toml I have set paths relative to /workspaces/project/src/test_framework

for example: paths = ["tests"]

python-path = [
    "common",
    "tests/integration_tests/test_resources",
    "tests/integration_tests/test_code",
    "tests/app_ui_web/test_resources",
]

The intelisense problem seems to go away when I set the python-paths to but now I cannot run the tests.

python-path = [
    "src/test_framework/common",
    "src/test_framework/tests/integration_tests/test_resources",
    "src/test_framework/tests/integration_tests/test_code",
    "src/test_framework/tests/app_ui_web/test_resources",
]

Steps To Reproduce
Steps to reproduce the behavior:
see above description

Expected behavior
when setting the project root I can run the tests and use intelisence for keywords and resources

Desktop (please complete the following information):

  • VS Code Version [e.g. 1.96.4]
  • RobotCode Version [e.g. 0.108.0]
  • OS: [e.g. Linux]
  • Python Version [e.g. 3.10.12]
  • RobotFramework Version [e.g. 7.1.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions