Skip to content

"The system cannot move the file to a different disk drive" running "pub run test" #444

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

Closed
DanTup opened this issue Jul 24, 2016 · 5 comments

Comments

@DanTup
Copy link
Contributor

DanTup commented Jul 24, 2016

I don't know if pub run test is the righty way to run tests (I thought there was a pub test?!) however I got this strange error when running it...

I'm on Windows 10, happens in both PowerShell and standard command windows.

I cloned https://github.com/dart-lang/convert, ran pub get then pub run test and got the following:

PS M:\Coding\Applications\convert> pub run test
Directory listing failed, path = 'test\packages\analyzer\dart\*' (OS Error: The system cannot move the file to a different disk drive.
, errno = 17)
dart:io                                    _Directory.listSync
package:test/src/runner/loader.dart 91:49  Loader.loadDir
package:test/src/runner.dart 240:60        Runner._loadSuites.<fn>
dart:_internal                             ListIterable.forEach
package:async/src/stream_group.dart 58:13  StreamGroup.merge
package:test/src/runner.dart 239:24        Runner._loadSuites
package:test/src/runner.dart 116:18        Runner.run.<async>

This is an unexpected error. Please file an issue at http://github.com/dart-lang/test
with the stack trace and instructions for reproducing the error.
PS M:\Coding\Applications\convert>

I've gotta go out, but I'll try and do some more debugging later.

@zoechi
Copy link

zoechi commented Jul 24, 2016

AFAIK you can't have the Dart code on network drives.

@DanTup
Copy link
Contributor Author

DanTup commented Jul 24, 2016

It's just a standard drive:

disks

@DanTup
Copy link
Contributor Author

DanTup commented Jul 24, 2016

My guess is that it's related to pub cache being on a different drive to my Dart code, I think the "move" in the error is a bit misleading.

@DanTup
Copy link
Contributor Author

DanTup commented Jul 24, 2016

Ok, this is because pub cache is on a different drive. Therefore this is a dupe of dart-lang/pub#880. It kinda sucks, but the symlinks stuff kinda sucks anyway. For me it's trivial for me to move my cache so it's not a big deal.

@DanTup DanTup closed this as completed Jul 24, 2016
@zoechi
Copy link

zoechi commented Jul 24, 2016

dart-lang/pub#880

AFAIK it is one of the next tasks to make test compatible with --no-package-symlinks which would solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants