{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/17796","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/17796/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/17796/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/17796/events","html_url":"https://github.com/dart-lang/sdk/issues/17796","id":84573418,"number":17796,"title":"dart2js hint in generated asset crashes pub build","user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Pub","name":"Area-Pub","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Fixed","name":"Fixed","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Unassigned","name":"Priority-Unassigned","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Pub-Build","name":"Pub-Build","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-03-25T23:39:06Z","updated_at":"2015-06-05T22:18:12Z","closed_at":"2015-06-03T13:46:56Z","body":"I'm triggering an assert() in dart2js_transformer I think because there's a hint in some purely generated Dart code. In the diagnostic handler, there's no associated URI, but the message is not fatal either, so the assert on line 338 fails.\n\nI think the assert can either be removed, or turned into a more descriptive exception. Is there a way to add a URI to a generated asset? Should pub be generating one from the asset id?\n\nStacktrace:\n\nCompiling js|test/js_wrapping/browser_tests.dart...\nUncaught exception in diagnostic handler: 'file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart': Failed assertion: line 338 pos 14: 'fatal' is not true.\n#­0      handleDiagnostic (file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart:338:14)\n#­1      Compiler.callUserHandler (file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart:318:14)\n#­2      Compiler.reportDiagnostic (file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart:303:22)\n#­3      Compiler.compileLoadedLibraries.&lt;anonymous closure&gt; (file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:1102:25)\n#­4      \\_HashMap&amp;&amp;_LinkedHashMapMixin.forEach (dart:collection-patch/collection_patch.dart:965)\n#­5      Compiler.compileLoadedLibraries (file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:1095:33)\n#­6      Compiler.runCompiler.&lt;anonymous closure&gt; (file:///Users/justinfagnani/Documents/Projects/dart2-repo/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:1028:29)\n#­7      \\_rootRunUnary (dart:async/zone.dart:730)\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/109459112","html_url":"https://github.com/dart-lang/sdk/issues/17796#issuecomment-109459112","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/17796","id":109459112,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:18:12Z","updated_at":"2015-06-05T22:18:12Z","body":"This issue has been moved to dart-lang/pub#939."}}