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 #17050

Closed
DartBot opened this issue Feb 22, 2014 · 5 comments
Closed
Labels
closed-duplicate Closed in favor of an existing report os-windows

Comments

@DartBot
Copy link

DartBot commented Feb 22, 2014

This issue was originally filed by emurph...@conceptuamath.com


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 Feb 23, 2014

This comment was originally written 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
Copy link
Author

DartBot commented Feb 23, 2014

This comment was originally written by emurph...@conceptuamath.com


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.

@kevmoo
Copy link
Member

kevmoo commented Feb 24, 2014

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

@nex3
Copy link
Member

nex3 commented Feb 24, 2014

This is a fundamental limitation of symbolic links on Windows. Issue #15103 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 #15103.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#880.

This issue was closed.
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 os-windows
Projects
None yet
Development

No branches or pull requests

3 participants