Skip to content

[Bug] New version of RobotCode 2.6.* misses option -I in terminal command which causes errors #624

Closed

Description

@ReneFromHolland

Description
For me it is a bug, but maybe I misunderstand something.

I am used to run Robot Framework scripts from VS Code by selecting 1 script or all scripts in a file by clicking on the green arrow on left side of the test script. I use for my testscripts the normal Testcase style, but also the Gherkin feature style.
When I run a test script in this way a command will be created automatically and this will be executed on the terminal (command line) in VS Code. This worked always fine, but since RobotCode versie 2.6.0 I miss in this command the option -I. ('-I' 'keyworduse/testje.robot' ) This causes that Robot Framework is widening its scope and all kind of errors appear.

Examples of the command that is created by RobotCode for Robot Framework and the resulting errors:

Robot Code version 2.5.1
PS C:\Users\USER\Documents\Tool projecten\Robot Framework Verzamelmap\RobotDemo-master-Probeersel> & 'c:\Users\USER\AppData\Local\Programs\Python\Python314\python.exe' 'c:\Users\USER.vscode\extensions\d-biehl.robotcode-2.5.1\bundled\tool\robotcode' '-dp' '.' 'debug' '--no-debug' '--tcp' '59384' '--' '-d' 'results' '-I' 'keyworduse/testje.robot' '-N' 'RobotDemo-master-Probeersel' '-s' 'RobotDemo-master-Probeersel.Keyworduse.Testje' '-bl' 'RobotDemo-master-Probeersel.Keyworduse.Testje.Testcase1'

Robot Code version 2.6.2
PS C:\Users\USER\Documents\Tool projecten\Robot Framework Verzamelmap\RobotDemo-master-Probeersel> & 'c:\Users\USER\AppData\Local\Programs\Python\Python314\python.exe' 'c:\Users\USER.vscode\extensions\d-biehl.robotcode-2.6.2\bundled\tool\robotcode' '-dp' '.' 'debug' '--no-debug' '--tcp' '61318' '--' '-d' 'results' '-s' 'RobotDemo-master-Probeersel.Keyworduse.Testje' '-bl' 'RobotDemo-master-Probeersel.Keyworduse.Testje.Testcase1'
[ ERROR ] Error in file 'C:\Users\USER\Documents\Tool projecten\Robot Framework Verzamelmap\RobotDemo-master-Probeersel\data_driven_met_keywords.robot' on line 14: Setting 'Test Template' is allowed only once. Only the first value is used.
[ ERROR ] Error in file 'C:\Users\USER\Documents\Tool projecten\Robot Framework Verzamelmap\RobotDemo-master-Probeersel\Gherkin\gherkin voorbeeld.robot' on line 12: Creating keyword 'Example' failed: Invalid argument specification: Invalid argument syntax '${kop} ${periodClosed}'.
[ ERROR ] Error in file 'C:\Users\USER\Documents\Tool projecten\Robot Framework Verzamelmap\RobotDemo-master-Probeersel\Gherkin copy\gherkin voorbeeld.robot' on line 12: Creating keyword 'Example' failed: Invalid argument specification: Invalid argument syntax '${kop} ${periodClosed}'.

This problem appears at my home computer and at my work computer. It is also a reproducible issue. Installing back and forward the old and new version of RobotCode doesn't change the behaviour for each specific version.

Desktop - at home:

  • VS Code Version 1.126.0
  • RobotCode Version 2.6.0/2.6.1/2.6.2
  • OS: [e.g. Windows 11
  • Python Version 3.14
  • RobotFramework Version 7.4.2

Desktop - at work:

  • VS Code Version 1.126.0
  • RobotCode Version 2.6.0/2.6.1/2.6.2
  • OS: [e.g. Windows 11
  • Python Version 3.13
  • RobotFramework Version 7.4.2

Activity

  1. deleted a comment from on Jun 28, 2026
  2. d-biehl commented on Jun 28, 2026

    @d-biehl
    Member

    I removed the previous comment because it linked to a ZIP file containing an executable. Please do not share binaries as fixes in issue comments.

    If you have a suggested fix, please open a pull request or share the source code changes so they can be reviewed safely.

  3. d-biehl commented on Jun 28, 2026

    @d-biehl
    Member

    @ReneFromHolland I’ll take a deeper look at this, but not today — it’s too hot right now... maybe tonight.

    I hope you did not download or run the ZIP from the previous comment.

  4. added theissue type on Jun 28, 2026
  5. changed the title [-]New version of RobotCode 2.6.* misses option -I in terminal command which causes errors[/-] [+][Bug] New version of RobotCode 2.6.* misses option -I in terminal command which causes errors[/+] on Jun 28, 2026
  6. added
    bugSomething isn't working
    and removed
    questionFurther information is requested
    on Jun 28, 2026
  7. ReneFromHolland commented on Jun 28, 2026

    @ReneFromHolland
    Author

    Hallo Daniel,

    Danke.

    The ZIP that was added by someone was not accepted by my virus scanner fortunately. I thought that the account was created apparently quite recently.

    I can still manage with version 2.5.1, but I can't enjoy your latest updates. I also would except that more people would have the same issue.

    Met vriendelijke groeten,
    René

  8. added a commit that references this issue on Jul 28, 2026
    c76b113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions