Skip to content

polymer + pub serve fails (maybe windows bug?) #696

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
DartBot opened this issue Jun 5, 2015 · 13 comments
Closed

polymer + pub serve fails (maybe windows bug?) #696

DartBot opened this issue Jun 5, 2015 · 13 comments
Assignees
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="96" height="96"hspace="10"> Issue by sigmundch
Originally opened as dart-lang/sdk#14677


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.

@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 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?

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


Yup. Up to date:

Generated by pub

See http://pub.dartlang.org/doc/glossary.html#lockfile

packages:
  action_consolidator:
    description: action_consolidator
    source: hosted
    version: "0.1.3"
  analyzer:
    description: analyzer
    source: hosted
    version: "0.9.1"
  args:
    description: args
    source: hosted
    version: "0.8.9"
  barback:
    description: barback
    source: hosted
    version: "0.8.9"
  browser:
    description: browser
    source: hosted
    version: "0.8.9"
  csslib:
    description: csslib
    source: hosted
    version: "0.8.9"
  custom_element:
    description: custom_element
    source: hosted
    version: "0.8.9"
  dart_common:
    description:
      path: redacted
      relative: true
    source: path
    version: "0.0.0"
  dart_domain:
    description:
      path: redacted
      relative: true
    source: path
    version: "0.0.0"
  dart_owf4:
    description:
      path: redacted
      relative: true
    source: path
    version: "0.0.0"
  dart_visualization:
    description:
      path: redacted
      relative: true
    source: path
    version: "0.0.0"
  html5lib:
    description: html5lib
    source: hosted
    version: "0.8.9"
  html_import:
    description: html_import
    source: hosted
    version: "0.8.9"
  js:
    description: js
    source: hosted
    version: "0.1.0"
  logging:
    description: logging
    source: hosted
    version: "0.8.9"
  meta:
    description: meta
    source: hosted
    version: "0.8.8"
  mutation_observer:
    description: mutation_observer
    source: hosted
    version: "0.8.9"
  observe:
    description: observe
    source: hosted
    version: "0.8.9"
  path:
    description: path
    source: hosted
    version: "0.8.9"
  polymer:
    description: polymer
    source: hosted
    version: "0.8.9"
  polymer_expressions:
    description: polymer_expressions
    source: hosted
    version: "0.8.9"
  portfolio_common:
    description:
      path: redacted
      relative: true
    source: path
    version: "0.0.0"
  shadow_dom:
    description: shadow_dom
    source: hosted
    version: "0.8.9"
  source_maps:
    description: source_maps
    source: hosted
    version: "0.8.9"
  stack_trace:
    description: stack_trace
    source: hosted
    version: "0.8.9"
  template_binding:
    description: template_binding
    source: hosted
    version: "0.8.9"
  unittest:
    description: unittest
    source: hosted
    version: "0.8.9"
  unmodifiable_collection:
    description: unmodifiable_collection
    source: hosted
    version: "0.8.9"
  utf:
    description: utf
    source: hosted
    version: "0.8.9"
  yaml:
    description: yaml
    source: hosted
    version: "0.8.9"

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


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?

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


Still seeing the same pub serve crash with 0.8.10.0_r29746.

@DartBot DartBot added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) Fixed labels Jun 5, 2015
@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


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
Dart SDK version 0.8.7.0_r29341

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This comment was originally written by [email protected]


I am running 32 bit Linux and have the same issue.

pub build without issue..
pub serve.. Transformer library "package:polymer/transformer.dart" not found.

Dart VM version: 0.1.2.0_r29778 on "linux_ia32"

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


cc @sigmundch.
Set owner to @nex3.

@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


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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


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
import "http://::1:8080/packages/myapp/transformer.dart";

Note the "::1". Maybe we should use "127.0.0.1" as the default hostname?

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


Set owner to @munificent.
Added Started label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


See issue dart-lang/sdk#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";

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


Thanks, Søren! I have a proper fix for this in now.


Added Fixed label.

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

No branches or pull requests

2 participants