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

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

Open
S7ud opened this issue Jan 28, 2025 · 0 comments
Open

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

S7ud opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@S7ud
Copy link

S7ud commented Jan 28, 2025

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]
@S7ud S7ud added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant