pub-dartlang
pub-dartlang copied to clipboard
Syntax highlighting on pub.dartlang.org not working with '```Dart'
From [email protected] on May 22, 2013 09:54:49
What steps will reproduce the problem? 1. create a package with readme.md file 2. in readme.md add following
class Test {}
- publish the package to pub.dartlang.org What is the expected output? What do you see instead? I would expect to see the correctly highlighted syntax, but it is not highlighted. It works if '
dart' (lowercase 'd') is used instead of '
Dart'. This is not necessarily a bug, but I guess that many people assume that markdown on pub.dartlang.org is compatible with github, which accepts both Dart/dart. What version of the product are you using? On what operating system? N/A Please provide any additional information below.
Original issue: http://code.google.com/p/dart/issues/detail?id=10790
This is probably happening because of an html import to the wrong packages
folder. The rules for this are somewhat complicated, I would reference this doc https://www.dartlang.org/polymer-old/app-directories.html#importing-assets.
Interesting that in this project (link in the comments) only produces this errors in device mode http://stackoverflow.com/questions/33242044/error-on-changing-to-device-mode-already-have-a-dart-type-associated
I have had the same problem using polymer-dart 1.0. I have striped it down to a single page app and hosted on github https://github.com/cbobach/spa_error. The errors is only there in device mode. Hope it can cast some light over the problem.
spa_error
Reconstruct polymer-dart spa errors in device mode
See .yaml file for versions, using dart version: 1.13.0-dev.7.2, chromium version: 45.0.2454.101 Ubuntu 15.10
ERROR: interop_support.js:72 Already have a Dart type associated with iron-media-query interop_support.js:72 Already have a Dart type associated with iron-selector interop_support.js:72 Already have a Dart type associated with paper-drawer-panel interop_support.js:72 Already have a Dart type associated with paper-item interop_support.js:72 Already have a Dart type associated with paper-menu interop_support.js:72 Already have a Dart type associated with iron-meta interop_support.js:72 Already have a Dart type associated with iron-meta-query interop_support.js:72 Already have a Dart type associated with iron-icon interop_support.js:72 Already have a Dart type associated with iron-iconset-svg interop_support.js:72 Already have a Dart type associated with opaque-animation interop_support.js:72 Already have a Dart type associated with neon-animatable interop_support.js:72 Already have a Dart type associated with neon-animated-pages interop_support.js:72 Already have a Dart type associated with slide-left-animation interop_support.js:72 Already have a Dart type associated with slide-from-right-animation interop_support.js:72 Already have a Dart type associated with array-selector interop_support.js:72 Already have a Dart type associated with dom-bind interop_support.js:72 Already have a Dart type associated with dom-if interop_support.js:72 Already have a Dart type associated with dom-repeat js_helper.dart:1697 Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'main-app'. A type with that name is already registered.