{"action":"created","issue":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/150","labels_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/150/comments","events_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/150/events","html_url":"https://github.com/lihaoyi/Ammonite/issues/150","id":99949479,"number":150,"title":"Can't import using `load.ivy`","user":{"login":"mrmechko","id":1429154,"avatar_url":"https://avatars.githubusercontent.com/u/1429154?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmechko","html_url":"https://github.com/mrmechko","followers_url":"https://api.github.com/users/mrmechko/followers","following_url":"https://api.github.com/users/mrmechko/following{/other_user}","gists_url":"https://api.github.com/users/mrmechko/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmechko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmechko/subscriptions","organizations_url":"https://api.github.com/users/mrmechko/orgs","repos_url":"https://api.github.com/users/mrmechko/repos","events_url":"https://api.github.com/users/mrmechko/events{/privacy}","received_events_url":"https://api.github.com/users/mrmechko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-10T01:44:12Z","updated_at":"2015-08-11T05:47:56Z","closed_at":null,"body":"When I try to load my little library (which is on maven central), I get an error when I try to import from the library:\r\n\r\n```sbt\r\nLoading Ammonite Repl...\r\n@ load.ivy(\"com.github.mrmechko\" %% \"strips2\" % \"0.0.3\", true)\r\n\r\n@ import strips._\r\nCompilation Failed\r\nMain.scala:51: not found: value strips\r\n        import strips._\r\n               ^\r\n@\r\n```\r\n\r\nHowever, everything is fine and dandy when I include `ammonite` as a dependency for an `sbt` project using the instructions in the readme, with the exact same library loaded as a dependency in `build.sbt`:\r\n\r\n```sbt\r\nLoading Ammonite Repl...\r\n@ import strips._\r\nimport strips._\r\n@ \r\n@ Bye!\r\n```\r\n\r\nEither I've missed a vital step or something is fishy.  I'm leaning towards the 'vital step' side seeing as `scalaz` works perfectly fine on both tracks.  Any clues?"},"comment":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/comments/129713278","html_url":"https://github.com/lihaoyi/Ammonite/issues/150#issuecomment-129713278","issue_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/150","id":129713278,"user":{"login":"mrmechko","id":1429154,"avatar_url":"https://avatars.githubusercontent.com/u/1429154?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmechko","html_url":"https://github.com/mrmechko","followers_url":"https://api.github.com/users/mrmechko/followers","following_url":"https://api.github.com/users/mrmechko/following{/other_user}","gists_url":"https://api.github.com/users/mrmechko/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmechko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmechko/subscriptions","organizations_url":"https://api.github.com/users/mrmechko/orgs","repos_url":"https://api.github.com/users/mrmechko/repos","events_url":"https://api.github.com/users/mrmechko/events{/privacy}","received_events_url":"https://api.github.com/users/mrmechko/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T05:47:55Z","updated_at":"2015-08-11T05:47:55Z","body":"After looking at the code, I have further insight into the matter.  `resolveArtifact` returns a list of files as the result of getting a package.  `Interpreter` took that list and cached it as the set of dependencies for a particular set of coordinates regardless of whether the resolution was successful.  The end result was that in some edge case, the cache _thinks_ that it has the artifact and lists no unresolved files in the cache, resulting in no load and no error messages.  A rough hand wavy explanation, but my PR should prevent it from happening again."}}