Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart cannot be run if installed in a directory with an escaped ':' (%3A) #46364

Closed
karlklose opened this issue Jun 15, 2021 · 1 comment
Closed
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@karlklose
Copy link
Contributor

karlklose commented Jun 15, 2021

I suspect that the %3A is converted into a ':' at some point.

Reproduction:

  1. download Dart SDK 2.14.0-24.0.dev and put it in a directory called test%3Adir.

  2. Run dart

$ test%3Adir/dart-sdk/bin/dart
Error: Error when reading 'dartdev': No such file or directory.
  1. Make a copy in test:dir and it works:
$ cp -R test%3Adir test:dir
$ test%3Adir/dart-sdk/bin/dart
A command-line utility for Dart development.

Usage: dart [<vm-flags>] <command|dart-file> [<arguments>]

Global options:
-h, --help                 Print this usage information.
-v, --verbose              Show additional command output.
    --version              Print the Dart SDK version.
    --enable-analytics     Enable analytics.
    --disable-analytics    Disable analytics.

Available commands:
  analyze   Analyze Dart code in a directory.
  compile   Compile Dart to various formats.
  create    Create a new Dart project.
  fix       Apply automated fixes to Dart source code.
  format    Idiomatically format Dart source code.
  migrate   Perform null safety migration on a project.
  pub       Work with packages.
  run       Run a Dart program.
  test      Run tests for a project.

Run "dart help <command>" for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.

(this is on Debian Linux)

@karlklose karlklose changed the title Dart cannot be run from a directory with an escaped ':' (%3A) Dart cannot be run if installed in a directory with an escaped ':' (%3A) Jun 15, 2021
@mraleph mraleph added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Jun 15, 2021
@a-siva
Copy link
Contributor

a-siva commented Jun 15, 2021

//cc @bkonyi error is from 'dartdev.dart' I presume.

@bkonyi bkonyi self-assigned this Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

4 participants