How to set RobotCode extension root directory? #369
-
Hello! We've recently added robot to our project (yay 🚀), and I'm trying to use RobotCode's integration with VSCode. The current project layout is similar to this (with better naming): project/
├── .git
└── testing/
└── robot_project/
├── .vscode
├── .venv
├── test_suites
└── libraries The issue is when I set the "robotcode.robot.pythonPath": [
"./libraries"
] and use the 'Run and Debug' or the 'Testing' tab of VS code, it adds So my questions is if there is a way to set RobotCode's root directory so that it's all contained in the robot_project directory? Maybe use the workspace as the variable? Rather than adding a longer path in the settings of the project. Thank you in advance! I'm new to robot and RobotCode so I might have missed something in the documentation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, this option is not available at the moment. However, there is already an enhancement request for it—see issue #287. As a workaround, instead of opening the "project" folder in VS Code, I recommend opening the "robot_project" folder. This setup should work without any issues. If you're using Python virtual environments (which I assume you are 😉), keep in mind that VS Code can only automatically detect the virtual environment if the venv folder is located at the root of the project. |
Beta Was this translation helpful? Give feedback.
No, this option is not available at the moment. However, there is already an enhancement request for it—see issue #287.
As a workaround, instead of opening the "project" folder in VS Code, I recommend opening the "robot_project" folder. This setup should work without any issues.
If you're using Python virtual environments (which I assume you are 😉), keep in mind that VS Code can only automatically detect the virtual environment if the venv folder is located at the root of the project.