robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
168 stars 13 forks source link

[QUESTION] Error: Executing robotcode failed with code 2 #168

Closed john1726 closed 9 months ago

john1726 commented 9 months ago

Please describe.

When I attempt to run my robot framework test suite in VS Code it gives me this message:

Error: Executing robotcode failed with code 2

How can I troubleshoot this issue?

Desktop (please complete the following information):

d-biehl commented 9 months ago

what exactly do you do? And what is the output above this error?

d-biehl commented 9 months ago

ping @john1726

john1726 commented 9 months ago

I'm not sure what was wrong. I am guessing that I didn't have my python path setup properly in .vscode\settings.json

{
    "python.pythonPath": ".venv\\Scripts\\python.exe"
}

or forgot to activate my virtual environment:

.\.venv\Scripts\activate

See https://code.visualstudio.com/docs/python/environments

Anyways, I went through the steps to setup the project again and it is working. Thank you!