Skip to content

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

Closed
sigmundch opened this issue Oct 31, 2013 · 14 comments
Closed

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

sigmundch opened this issue Oct 31, 2013 · 14 comments
Assignees
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@sigmundch
Copy link
Member

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.

@nex3
Copy link
Member

nex3 commented Oct 31, 2013

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

DartBot commented Oct 31, 2013

This comment was originally written 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"

@sigmundch
Copy link
Member Author

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

DartBot commented Nov 2, 2013

This comment was originally written by @rbishop-bah


Still seeing the same pub serve crash with 0.8.10.0_r29746.

@DartBot
Copy link

DartBot commented Nov 3, 2013

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

@DartBot
Copy link

DartBot commented Nov 3, 2013

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"

@dgrove
Copy link
Contributor

dgrove commented Nov 5, 2013

cc @sigmundch.
Set owner to @nex3.

@nex3
Copy link
Member

nex3 commented Nov 6, 2013

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.

@munificent
Copy link
Member

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?

@munificent
Copy link
Member

Set owner to @munificent.
Added Started label.

@DartBot
Copy link

DartBot commented Nov 8, 2013

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.

@sgjesse
Copy link
Contributor

sgjesse commented Nov 8, 2013

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";

@munificent
Copy link
Member

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


Added Fixed label.

@sigmundch sigmundch added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures labels Nov 8, 2013
@DartBot
Copy link

DartBot commented Jun 5, 2015

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

6 participants