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

Pub does't work on Windows 8 when app is on different drive than Pub cache #880

Closed
DartBot opened this issue Jun 5, 2015 · 4 comments
Closed
Labels
closed-duplicate Closed in favor of an existing report type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

Originally opened as dart-lang/sdk#17050

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Install Dart on E:
  2. Open a project on E: (probably would also work on C:)
  3. Try to Pub get. Get this error message:

--- 3:10:20 PM Running pub get ... ---
Pub get failed, [1] Resolving dependencies.............................
Cannot create link, path = 'E:\projects\dart\ng-darrrt-codelab-master\packages\angular' (OS Error: Incorrect function.
, errno = 1)

Note that Pub Build will also fail, but with a different message, because it cant create lock file.

What is the expected output? What do you see instead?
Expect no error. If there is an error, I expect it to be clear, so tell me that Dart IDE and Pub cache must be on the same drive (letter) on windows.

What version of the product are you using? On what operating system? Dart Beta channel,
Dart Editor version 1.2.0.dev_05_12 (DEV)
Dart SDK version 1.2.0-dev.5.12
On Windows 8.1

Please provide any additional information below.
Seems that Pub cannot create a symbolic link across different drives on Windows 8.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/648527?v=3" align="left" width="48" height="48"hspace="10"> Comment by Fox32


My cache is on C, and my code on D, works fine on Windows 8. Dart is unpacked on D. Maybe a different problem?

@DartBot DartBot added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) closed-duplicate Closed in favor of an existing report OpSys-Windows labels Jun 5, 2015
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This comment was originally written by [email protected]


The most important detail is that the Dart ide is NOT on the same drive as the Pub cache. My ide is on drive E, my cache is on drive C.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo


Added Area-Pub, OpSys-Windows, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


This is a fundamental limitation of symbolic links on Windows. Issue #727 is tracking the removal of symlinks from pub's functionality. Until then, you can use the PUB_CACHE environment variable to control the location of your cache.


Added Duplicate label.
Marked as being merged into #727.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant