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
VM should interpret path arguments in the console like any other unix command #2930
Comments
Set owner to mattsh@google.com. |
Set owner to @dgrove. |
Issue #8535 has been merged into this issue. |
Added this to the Later milestone. |
Bumping a couple of labels and changing the title. This is an issue for (Didn't try profile_dir, but I'm guessing it's the same) Using --coverage_dir=/Users/Kevin/tmp works fine We have the same problem in commands written in Dart, too (docgen, etc). But these have to be fixed in the VM, I'm guessing Set owner to @iposva-google. |
FYI: related feature request to make this easy in Dart apps - https://code.google.com/p/dart/issues/detail?id=18466 |
Removed the owner. |
Is this something we want in the VM? The reason I ask, is that if we do, we should make it available through dart:io as well. If not, I'll close https://code.google.com/p/dart/issues/detail?id=18466 with a suggestion to do this in a pkg. Basically, I don't want it in dart:io, unless there is a really good reason (such as a VM use case). |
I think the case for #18466 is that there are likely platform-specific methods for resolving these paths that will be tough to reproduce accurately in a package. The case for this bug -- #2930 -- is for the dart command line to act like other command line apps |
muenster[sdk] java -classpath /tmp:~/tmp/java Bug2930 |
I'm trying to use the fancy new package root stuff:
/tmp/dart-sha > dart --package-root=/Code/Dart-git/dart/lib/ crypto.dartUnable to open file: ~/Code/Dart-git/dart/lib/crypto/crypto.dart'file:///Users/sethladd/tmp/dart-sha/crypto.dart': Error: line 3 pos 1: library handler failed
import('package:crypto/crypto.dart');
^
The file ~/Code/Dart-git/dart/lib/crypto/crypto.dart certainly exists.
The contents of crypto.dart in my work dir is:
import('package:crypto/crypto.dart');
main() {
var sha = new SHA256();
}
The solution was the fully qualify my path for the package-root command line arg. The ~ did not work.
The text was updated successfully, but these errors were encountered: