Skip to content

Polymer 404 issues when run in Dartium #18316

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 Apr 18, 2014 · 5 comments
Closed

Polymer 404 issues when run in Dartium #18316

DartBot opened this issue Apr 18, 2014 · 5 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report
Milestone

Comments

@DartBot
Copy link

DartBot commented Apr 18, 2014

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)

@kevmoo
Copy link
Member

kevmoo commented Apr 19, 2014

Added Area-Polymer, Triaged labels.

@jmesserly
Copy link

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

@sigmundch
Copy link
Member

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

@sigmundch
Copy link
Member

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


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

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report labels Jul 7, 2014
@DartBot DartBot added this to the 1.6 milestone Jul 7, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#167.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

4 participants