{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/dartdoc-viewer/issues/123","labels_url":"https://api.github.com/repos/dart-lang/dartdoc-viewer/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dartdoc-viewer/issues/123/comments","events_url":"https://api.github.com/repos/dart-lang/dartdoc-viewer/issues/123/events","html_url":"https://github.com/dart-lang/dartdoc-viewer/issues/123","id":57744582,"number":123,"title":"\"platform.js\" has been renamed to \"webcomponents.js\"","user":{"login":"mehaase","id":320904,"avatar_url":"https://avatars.githubusercontent.com/u/320904?v=3","gravatar_id":"","url":"https://api.github.com/users/mehaase","html_url":"https://github.com/mehaase","followers_url":"https://api.github.com/users/mehaase/followers","following_url":"https://api.github.com/users/mehaase/following{/other_user}","gists_url":"https://api.github.com/users/mehaase/gists{/gist_id}","starred_url":"https://api.github.com/users/mehaase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehaase/subscriptions","organizations_url":"https://api.github.com/users/mehaase/orgs","repos_url":"https://api.github.com/users/mehaase/repos","events_url":"https://api.github.com/users/mehaase/events{/privacy}","received_events_url":"https://api.github.com/users/mehaase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-15T20:29:15Z","updated_at":"2015-02-17T21:15:42Z","closed_at":null,"body":"I'm trying to get started with dartdocgen and the dartdoc viewer. Dartdocgen works fine (I think) but the dartdoc viewer seems to be unmaintained.\r\n\r\n    $ pubpub build\r\n    Loading source assets... \r\n    Loading polymer/src/build/mirrors_remover, code_transformers/src/delete_file, observe and smoke/src/default_transformer transformers..Loading polymer/src/build/mirrors_remover, code_transformers/src/delete_file, observe and smoke/src/default_transformer transformers... \r\n    Loading polymer transformers... \r\n    Loading dartdoc_viewer transformers... \r\n    Building dartdoc_viewer... \r\n    [Warning from polymer (Linter) on dartdoc_viewer|web/index.html]:\r\n    line 9, column 3 of web/index.html: \"platform.js\" has been renamed to \"webcomponents.js\". See http://goo.gl/5HPeuP#polymer_46 for details.\r\n    <script src=\"packages/web_components/platform.js\">\r\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n    [Warning from polymer (Linter) on dartdoc_viewer|web/index.html]:\r\n    line 10, column 3 of web/index.html: No need to include \"dart_support.js\" by hand anymore. See http://goo.gl/5HPeuP#polymer_43 for details.\r\n    <script src=\"packages/web_components/dart_support.js\">\r\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n    [Warning from Analytics on dartdoc_viewer|web/index.html]:\r\n    Could not find asset dartdoc_viewer|lib/config/config.yaml.\r\n    null\r\n    [Warning from Analytics on dartdoc_viewer|web/index.html]:\r\n    No config used.\r\n    [Info from Dart2JS]:\r\n    Compiling dartdoc_viewer|web/index.html.0.dart...\r\n    [Dart2JS on dartdoc_viewer|web/index.html.0.dart]:\r\n    2 warning(s) suppressed in package:dartdoc_viewer.\r\n    [Info from Dart2JS]:\r\n    Took 0:00:10.289786 to compile dartdoc_viewer|web/index.html.0.dart.\r\n    [Info from Dart2JS]:\r\n    Compiling dartdoc_viewer|web/index.html_bootstrap.dart...\r\n    [Dart2JS on dartdoc_viewer|web/index.html_bootstrap.dart]:\r\n    2 warning(s) suppressed in package:dartdoc_viewer.\r\n    [Info from Dart2JS]:\r\n    Took 0:00:06.446011 to compile dartdoc_viewer|web/index.html_bootstrap.dart.\r\n    Built 86 files to \"build\".\r\n\r\nThey're jus warnings, so I cross my fingers and hope it works anyway. But when I view this in a browser (Chrome), I see:\r\n\r\n    Failed to load resource: the server responded with a status of 404 (File not found)\r\n    http://localhost:8000/packages/web_components/platform.js\r\n\r\nThis is on master (7d7610). It seems that platform.js was renamed [months ago|https://blog.polymer-project.org/announcements/2014/10/16/platform-becomes-webcomponents/] but dartdoc viewer hasn't been updated to match? Am I crazy, or is dartdoc viewer totally broken? I can't be the only person to install dartdoc viewer in the last 2 months.\r\n\r\nIf I make the suggested changes, I still get the following error:\r\n\r\n    Uncaught ReferenceError: HTMLImports is not defined \r\n\r\nNow I'm totally stumped. I think this might be a problem in Polymer, but this whole stack is new to me and it's got a lot of moving pieces and magical bits.\r\n\r\nHere's what I'm running:\r\n\r\n* Dartium Version 38.0.2125.0 (292384) (64-bit)\r\n* HTML5lib 0.12.0\r\n* Polymer 0.15.3+2\r\n* Polymer Expressions 0.13.0+1\r\n* Web Components 0.10.0\r\n\r\nAny advice?"},"comment":{"url":"https://api.github.com/repos/dart-lang/dartdoc-viewer/issues/comments/74755171","html_url":"https://github.com/dart-lang/dartdoc-viewer/issues/123#issuecomment-74755171","issue_url":"https://api.github.com/repos/dart-lang/dartdoc-viewer/issues/123","id":74755171,"user":{"login":"alan-knight","id":3476088,"avatar_url":"https://avatars.githubusercontent.com/u/3476088?v=3","gravatar_id":"","url":"https://api.github.com/users/alan-knight","html_url":"https://github.com/alan-knight","followers_url":"https://api.github.com/users/alan-knight/followers","following_url":"https://api.github.com/users/alan-knight/following{/other_user}","gists_url":"https://api.github.com/users/alan-knight/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-knight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-knight/subscriptions","organizations_url":"https://api.github.com/users/alan-knight/orgs","repos_url":"https://api.github.com/users/alan-knight/repos","events_url":"https://api.github.com/users/alan-knight/events{/privacy}","received_events_url":"https://api.github.com/users/alan-knight/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T21:15:42Z","updated_at":"2015-02-17T21:15:42Z","body":"Yeah, that's confusing, part of it temporary, and part of it because this package is confusing. The top level of this package would be right if you were running in Dartium. That might even mean client, not client/web, I'm not sure. And the fact that it doesn't work in Dartium is a weird temporary artifact, and one which makes it tricky to work on. \r\n\r\nWith pub build it generates the compiled version into the build/ directory. That's normal pub behaviour, but if you're not used to using it, you wouldn't be expected to know. The easier thing to do is use pub serve, where it runs its own server and does the build for you.\r\n\r\nWhere the doc files go varies depending on what configuration this is deployed in, which is part of what makes this a confusing package. It's different if it's being built for dartdocs.org, or for api.dartlang.org, or running locally. The easy path for using it locally is to have dartdocgen do it for you, thus the --serve option. But it's definitely more confusing than most Dart packages. And it is not being actively developed because the new thing is the dartdoc package, which just generates static files which should be easier to work with. Sorry for the confusion.\r\n"}}