Skip to content
This repository was archived by the owner on Dec 19, 2017. It is now read-only.

Polymer 404 issues when run in Dartium #167

Closed
DartBot opened this issue Jun 5, 2015 · 4 comments
Closed

Polymer 404 issues when run in Dartium #167

DartBot opened this issue Jun 5, 2015 · 4 comments

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

Originally opened as dart-lang/sdk#18316

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Create new "Web application (using the polymer library)" project, with "Generate sample content" checked. Call the project "PolyTest".
  2. Add "polymer_elements" and "polymer_ui_elements" as dependencies. Do a "pub get".
  3. In the main web/polytest.html file, add the following lines just after the polytest.css link tag:
            
        <link rel="import" href="packages/polymer_ui_elements/polymer_ui_icon_button/polymer_ui_icon_button.html">
        <link rel="import" href="packages/polymer_ui_elements/polymer_ui_toolbar/polymer_ui_toolbar.html">
        <link rel="import" href="packages/polymer_elements/polymer_flex_layout/polymer_flex_area.html">
  4. Add the following at the top of the <body>, before the other default content:

    <header>
      <polymer-ui-toolbar>
        <polymer-ui-icon-button icon="refresh"></polymer-ui-icon-button>
        <polymer-ui-icon-button icon="add"></polymer-ui-icon-button>
        <polymer-flex-area flex>&nbsp;</polymer-flex-area>
        <polymer-ui-icon-button icon="refresh"></polymer-ui-icon-button>
        <polymer-ui-icon-button icon="add"></polymer-ui-icon-button>
      </polymer-ui-toolbar>
    </header>

  1. After the workspace automatically builds, run web/polytest.html in Dartium, and then do a "pub build" and run the build/web/polytest.html in Chrome.

What is the expected output? What do you see instead?

    The expected output for both should be a toolbar with pairs of icons at each end of the toolbar, and the toolbar would be located above the default content.

    The actual output is different between Dartium and the build output. The built "Run in browser" version works fine. The "Run in Dartium" one results in a bunch of 404 errors with various polymer CSS files. Output is in the attached PolymerDart404Errors.txt file. An example error:

    Failed to load resource: the server responded with a status of 404 (Not Found)
      http://127.0.0.1:3030/PolyTest/web/polymer_ui_icon.css

What version of the product are you using? On what operating system?

    Dart Editor 1.3.3 build 35121. Clean Windows 7 SP1 x64 VM, with Java 1.7u51 x64. Also happens on Windows 8.

Please provide any additional information below.

    These errors did NOT occur on Dart Editor 1.1.3, using the same (latest) versions of polymer, polymer_elements, and polymer_ui_elements. I was able to tweak the CSS paths in the polymer code to get "Run in Dartium" to work, but made the "pub build" fail with invalid path errors.


Attachment:
PolymerDart404Errors.txt (1.71 KB)

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


Added Area-Polymer, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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


Removed Area-Polymer label.
Added Pkg-Polymer, Area-Pkg labels.

@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


Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@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


I believe the issue is that 'icon' is being rewritten (see issue #411).


Added Duplicate label.
Marked as being merged into #411.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant