robotcodedev / robotcode

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

[BUG] Running Test returns RobotCode Usage Spew #301

Open adamweld opened 2 weeks ago

adamweld commented 2 weeks ago

Describe the bug After following minimal setup, running a test case or suite (from the file or from the Testing pane) returns the USAGE spew from RobotCode, rather than executing the test.

To Reproduce Steps to reproduce the behavior:

  1. New VSCode window, new empty folder
  2. Create a new virtual environment python -m venv venv
  3. Activate the environment, and select it as the VSCode python interpreter
  4. Install robotframework
  5. Create simple test suite
  6. Run test suite with RobotCode extension
  7. Rather than getting test output in the console, the RobotCode USAGE documentation is printed, indicating that the command line options are wrong somehow.

Expected behavior

my_test.robot:

one
    log to console    two

running with robotframework directly from terminal $ robot my_test.robot expected output:

==============================================================================
My Test
==============================================================================
one                                                                   two
one                                                                   | PASS |
------------------------------------------------------------------------------
My Test                                                               | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output:  C:\code\deleteme\output.xml
Log:     C:\code\deleteme\log.html
Report:  C:\code\deleteme\report.html

Screenshots/ Videos

image

Logs There is no output under Output, only terminal (see screenshot)

Desktop (please complete the following information):

d-biehl commented 2 weeks ago

Cannot reproduce this...

do you have any settings regarding robotcode left on user level or project level? I see an empty --profile entry.

I am not sure, if this is the problem, I had some trouble with the builtin windows powershell with some commands in VSCode. That's why I switched to the new PowerShell, did you tried it: https://github.com/PowerShell/PowerShell? You can install it via the Window Store or with winget.

d-biehl commented 2 weeks ago

I just realized that somehow some packages in the VSCode extension file got lost. I'll have to find out why...

Can you maybe try to install an old RobotCode version and check if it works?

d-biehl commented 1 week ago

Any news about this issue?