Skip to content

The description of toolArgs is misleading #5453

Closed

Description

@Lexedia

Describe the bug
The current description of the toolArgs is misleading,
Currently, it states:

Arguments to be passed to the Dart or Flutter tool.
These arguments appear after "dart run" or "flutter run":
dart (vmAdditionalArgs) run (toolArgs) bin/main.dart (args)

However, this is untrue, when setting the toolArgs with the resident compiler (-r), you get an error from dart stating Could not find an option or flag "-r".
Because it internally runs dart [program] instead of dart run [program]

The current workaround is to add run beforehand to fix this.

To Reproduce
Set toolArgs to ["-r"].

Expected behavior
It should work

Screenshots

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: Linux 6.11.11 #1-NixOS SMP PREEMPT_DYNAMIC Thu Dec 5 12:54:34 UTC 2024 - locale is en_GB.UTF-8
  • VS Code version: 1.98.2
  • Dart extension version: 3.106.0
  • Dart/Flutter SDK version: Dart 3.7.1
  • Target device (if the issue relates to Flutter debugging):

Activity

  1. DanTup commented on Mar 24, 2025

    @DanTup
    Member

    Thanks! I think we had originally used dart run but there was something about it that caused us to stick with just dart. I will update the description to use dart test since the intention was to show the difference between vmAdditionalArgs and toolArgs which is still appropriate there.

  2. added
    in docs / websiteRelates to documentation, including the Dart Code website
    on Mar 24, 2025
  3. added this to the v3.108.0 milestone on Mar 24, 2025
  4. added a commit that references this issue on Mar 24, 2025
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

    in docs / websiteRelates to documentation, including the Dart Code websiteis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions