{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/611","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/611/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/611/events","html_url":"https://github.com/dart-lang/pub/issues/611","id":85643988,"number":611,"title":"app named web_ui can't use web_ui package","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},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Fixed","name":"Fixed","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-05T22:10:05Z","updated_at":"2015-06-05T22:10:05Z","closed_at":null,"body":"<a href=\"https://github.com/kwalrath\"><img src=\"https://avatars.githubusercontent.com/u/2164483?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [kwalrath](https://github.com/kwalrath)**\n_Originally opened as dart-lang/sdk#12300_\n\n----\n\nOK, this seems obvious in hindsight, but I should've seen a better error/warning.\n\nIn Dart Editor I created a little app to test web_ui, named the app web_ui (duh!), and then (not editing the boilerplate code a bit) got this error message:\n\nUnable to open file: /Users/kathyw/dart/web_ui/packages/web_ui/component_build.dart'file:///Users/kathyw/dart/web_ui/build.dart': Error: line 2 pos 1: library handler failed\nimport 'package:web_ui/component_build.dart';\n^\n\nLooking in packages, I saw browser, js, and meta, but not web_ui. I tried `pub install` on the command line, and it happily executed without a single error message or warning.\n\nApparently, pub install can't/doesn't get web_ui if your app is named web_ui. I assume this is true for any package that has the same name as the app.\n\nPub install (and/or the editor) should give you a warning about this. If this behavior is technically correct, the message could just be something like: Didn't download web_ui package because this app is named web_ui."},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/109456163","html_url":"https://github.com/dart-lang/pub/issues/611#issuecomment-109456163","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/611","id":109456163,"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:10:05Z","updated_at":"2015-06-05T22:10:05Z","body":"<a href=\"https://github.com/munificent\"><img src=\"https://avatars.githubusercontent.com/u/46275?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [munificent](https://github.com/munificent)**\n\n----\n\n*Added [Fixed](../labels/Fixed) label.*\n*Marked as being merged into #.*\n"}}