-
Notifications
You must be signed in to change notification settings - Fork 232
polymer-dart pub build not supported behind proxy #729
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
Comments
This comment was originally written by [email protected] I have encountered the same issue. Pub files and output: https://gist.github.com/xlevus/acba5f930214eff6d693 Additionally, when running $ http_proxy='' https_proxy='' pub build While $ env --unset=http_proxy --unset=https_proxy pub build Works. |
This comment was originally written by [email protected] And further, setting the $ no_proxy="localhost,127.0.0.0/8,::1,[::1]" pub build |
<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 Pub doesn't explicitly handle any proxy configuration; it just calls dart:io and dart:isolate and lets those libraries do the low-level work. The problem here is that pub starts a server that serves Dart code, then spawns an isolate that imports this Dart code. Apparently this isn't working when a proxy is active. I've filed issue dart-lang/sdk#15215 to track the issue in the underlying libraries. Marked this as being blocked by dart-lang/sdk#15215. |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 Issue #768 has been merged into this issue. |
<img src="https://avatars.githubusercontent.com/u/1343914?v=3" align="left" width="48" height="48"hspace="10"> Comment by sgjesse After looking further into this the 'no_proxy' setting in comment #2 is wrong. The syntax 127.0.0.0/8 is not supported. Use 127.0.0.1 instead: $ no_proxy="localhost,127.0.0.1,::1,[::1]" pub build Should work. |
<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent Removed Priority-Unassigned label. |
This comment was originally written by [email protected] I'm having the same issue with 'Transformer library "package:observe/transformer.dart" not found.', but I'm not behind a proxy. My code works fine in dartium, run alone or with the dart-editor, but when I try to "pub build" on the command line, it fails with the aforementioned "not found" error. Very confused, because the file is obviously there. Here's the output of my I've also attached it to this message. There are some warnings in there. Attachment: |
This comment was originally written by [email protected] Oh, and for reference, here's my example project: https://github.com/wulftone/tabby-element/ |
<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent @trevor, I'm not seeing any errors in either of those logs. Am I missing something? |
<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent This looks like it might be stale. Is anyone on this thread still having problems? |
<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent Added AssumedStale label. |
This comment was originally written by [email protected] hi i am seeing the same error on window with Dart Editor version 1.2.0.release behind a proxy. code works fine in dartium but cannont build and run as javascript. |
This comment was originally written by [email protected] Hi. I saw the same in dart 1.3...without a proxy... Turns out my pub cache (AppData\Roaming\Pub\Cache) was corrupt (because I once was behind a proxy), and removing it solved the problem. |
This comment was originally written by [email protected] It's not stale. Still having some problems, probably related to that proxy issue. |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 It sounds from issue dart-lang/sdk#15215 that the solution is to disable the proxy when using pub by setting the environment variable "no_proxy=localhost" when invoking pub. |
Originally opened as dart-lang/sdk#15161
This issue was originally filed by [email protected]
When running outside of a proxy, the build goal succeeds. When behind a corporate proxy, 'pub build' fails with an error: "Transformer library "package:polymer/transformer.dart" not found."
Dart 1.0.0.3_r30188, Mac OS X 10.8 and 10.9
Pub is able to see the proxy settings ("pub upgrade" successfully downloads dependencies) but the transformer library does not seem to respect those settings. Could this be related in any way to the IPv6 issues in [Issue #696]? (though I'm not trying to run pub serve)
The text was updated successfully, but these errors were encountered: