How to set RobotCode extension root directory? #369
Unanswered
AtromixCode
asked this question in
Q&A
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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):
The issue is when I set the
robotcode.robot.pythonPath
to the bellow:and use the 'Run and Debug' or the 'Testing' tab of VS code, it adds
project/libraries
to the PYTHONPATH instead ofproject/testing/robot_project/libraries
and it puts the results toprojects/results
rather than theproject/testing/robot_project/results
.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.
All reactions