-
Notifications
You must be signed in to change notification settings - Fork 1.7k
polymer + pub serve fails (maybe windows bug?) #14677
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 is caused by an IsolateSpawnException when loading the plugin isolate -- almost certainly because it can't find "package:polymer/transformer.dart". Rob, did you run "pub get" before "pub build"? Are you sure your polymer version is up-to-date? Can you post your pubspec.lock file? |
This comment was originally written by @rbishop-bah Yup. Up to date: Generated by pubSee http://pub.dartlang.org/doc/glossary.html#lockfilepackages: |
What surprises me the most is that Rob previously run 'pub build' and that worked fine. Nathan - any clues on something windows specific that could be going on here? |
This comment was originally written by @rbishop-bah Still seeing the same pub serve crash with 0.8.10.0_r29746. |
This comment was originally written by @Fox32 I'm on Windows 8.1 64 bit and have the same issue. Not only with the polymer transformer, also with my own one. pub build works fine, but pub serve not. Dart Editor version 0.8.7_r29341 |
This comment was originally written by [email protected] I am running 32 bit Linux and have the same issue. pub build without issue.. Dart VM version: 0.1.2.0_r29778 on "linux_ia32" |
cc @sigmundch. |
I don't think this is Windows-specific. https://codereview.chromium.org/49293003/ should provide more information about what the underlying error is here, but we're holding off on committing it for the time being. |
On my Mac, it looks like the issue may be that the pub server bound to "localhost" gets bound to an IPv6 address, which the isolate then fails to find. The actual error is: IsolateSpawnException: 'HTTP error.'file:///var/folders/00/0v3s8000h01000cxqpysvccm003cg5/T/pub_Js1Jjo/runInIsolate.dart': Error: line 1 pos 1: library handler failed Note the "::1". Maybe we should use "127.0.0.1" as the default hostname? |
Set owner to @munificent. |
This comment was originally written by [email protected] I was having this problem on Mac too and I can confirm that removing the IPv6 directives from /etc/hosts solved the problem. |
See issue #14924 regarding a URL with an IPv6 literal. It needs to be enclosed in square brackets. The import import "http://::1:8080/packages/myapp/transformer.dart"; is wrong. It should be: import "http://[::1]:8080/packages/myapp/transformer.dart"; |
Thanks, Søren! I have a proper fix for this in now. Added Fixed label. |
This issue has been moved to dart-lang/pub#696. |
See error report from this message:
https://groups.google.com/a/dartlang.org/d/msg/web-ui/jdoLc_roMLI/RmtYwB1N7DQJ
FINE: Listed directory .......\dart\portfolio-filter\src\main\portfolio-filter\web:
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\blank.html
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\images
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\index.css
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\index.html
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\packages
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\PortfolioFilter.dart
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\PortfolioFilter.html
| .......\dart\portfolio-filter\src\main\portfolio-filter\web\WEB-INF
FINE: Loading transformers from polymer|lib/transformer.dart
IO : Created temp directory C:\Users\xxxxxx\AppData\Local\Temp\pub_fdd2ab5f-4251-11e3-ae2a-2cd05a7f4437
IO : Writing 14093 characters to text file C:\Users\xxxxxx\AppData\Local\Temp\pub_fdd2ab5f-4251-11e3-ae2a-2cd05a7f4437\runInIsolate.dart.
IO : Deleting directory C:\Users\xxxxxx\AppData\Local\Temp\pub_fdd2ab5f-4251-11e3-ae2a-2cd05a7f4437.
FINE: Clean up system cache temp directory C:\Users\xxxxxx\AppData\Roaming\Pub\Cache_temp.
ERR : Transformer library "package:polymer/transformer.dart" not found.
I tried pub serve on a couple of different projects (and with a couple of different ports)... same results.
The text was updated successfully, but these errors were encountered: