{"action":"created","issue":{"url":"https://api.github.com/repos/google/dagger/issues/324","repository_url":"https://api.github.com/repos/google/dagger","labels_url":"https://api.github.com/repos/google/dagger/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/google/dagger/issues/324/comments","events_url":"https://api.github.com/repos/google/dagger/issues/324/events","html_url":"https://github.com/google/dagger/issues/324","id":136161271,"number":324,"title":"dagger crash with NoSuchElementException","user":{"login":"nicks","id":278641,"avatar_url":"https://avatars.githubusercontent.com/u/278641?v=3","gravatar_id":"","url":"https://api.github.com/users/nicks","html_url":"https://github.com/nicks","followers_url":"https://api.github.com/users/nicks/followers","following_url":"https://api.github.com/users/nicks/following{/other_user}","gists_url":"https://api.github.com/users/nicks/gists{/gist_id}","starred_url":"https://api.github.com/users/nicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicks/subscriptions","organizations_url":"https://api.github.com/users/nicks/orgs","repos_url":"https://api.github.com/users/nicks/repos","events_url":"https://api.github.com/users/nicks/events{/privacy}","received_events_url":"https://api.github.com/users/nicks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-24T19:24:37Z","updated_at":"2016-02-24T21:54:39Z","closed_at":null,"body":"I'm still trying to figure out a minimal repro case, but here is the stack trace. It's likely a bug in our code but it seems like dagger should report an error message instead of crashing.\r\n\r\nRepro'd with dagger-compiler 2.0.2\r\n\r\n```\r\nCaused by: java.util.NoSuchElementException\r\n\tat com.sun.tools.javac.util.List$2.next(List.java:432)\r\n\tat com.google.common.collect.Iterators.getOnlyElement(Iterators.java:302)\r\n\tat com.google.common.collect.Iterables.getOnlyElement(Iterables.java:289)\r\n\tat dagger.internal.codegen.DependencyRequest$Factory.extractKindAndType(DependencyRequest.java:285)\r\n\tat dagger.internal.codegen.DependencyRequest$Factory.newDependencyRequest(DependencyRequest.java:245)\r\n\tat dagger.internal.codegen.DependencyRequest$Factory.forRequiredResolvedVariable(DependencyRequest.java:171)\r\n\tat dagger.internal.codegen.MembersInjectionBinding$Factory.injectionSiteForInjectField(MembersInjectionBinding.java:161)\r\n\tat dagger.internal.codegen.MembersInjectionBinding$Factory.access$200(MembersInjectionBinding.java:126)\r\n\tat dagger.internal.codegen.MembersInjectionBinding$Factory$1.visitVariableAsField(MembersInjectionBinding.java:208)\r\n\tat dagger.internal.codegen.MembersInjectionBinding$Factory$1.visitVariableAsField(MembersInjectionBinding.java:197)\r\n\tat com.sun.tools.javac.code.Symbol$VarSymbol.accept(Symbol.java:1237)\r\n\tat dagger.internal.codegen.MembersInjectionBinding$Factory.forInjectedType(MembersInjectionBinding.java:195)\r\n\tat dagger.internal.codegen.InjectBindingRegistry.getOrFindMembersInjectionBinding(InjectBindingRegistry.java:256)\r\n\tat dagger.internal.codegen.BindingGraph$Factory$RequestResolver.rollUpMembersInjectionBindings(BindingGraph.java:313)\r\n\tat dagger.internal.codegen.BindingGraph$Factory$RequestResolver.rollUpMembersInjectionBindings(BindingGraph.java:317)\r\n\tat dagger.internal.codegen.BindingGraph$Factory$RequestResolver.lookUpBindings(BindingGraph.java:305)\r\n\tat dagger.internal.codegen.BindingGraph$Factory$RequestResolver.resolve(BindingGraph.java:407)\r\n\tat dagger.internal.codegen.BindingGraph$Factory.create(BindingGraph.java:168)\r\n\tat dagger.internal.codegen.BindingGraph$Factory.create(BindingGraph.java:105)\r\n\tat dagger.internal.codegen.AbstractComponentProcessingStep.process(AbstractComponentProcessingStep.java:54)\r\n\tat dagger.internal.codegen.AbstractComponentProcessingStep.process(AbstractComponentProcessingStep.java:30)\r\n\tat dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:318)\r\n\tat dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:171)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)\r\n\tat com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)\r\n\tat com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)\r\n\tat com.sun.tools.javac.main.Main.compile(Main.java:523)\r\n```"},"comment":{"url":"https://api.github.com/repos/google/dagger/issues/comments/188469154","html_url":"https://github.com/google/dagger/issues/324#issuecomment-188469154","issue_url":"https://api.github.com/repos/google/dagger/issues/324","id":188469154,"user":{"login":"gk5885","id":2279476,"avatar_url":"https://avatars.githubusercontent.com/u/2279476?v=3","gravatar_id":"","url":"https://api.github.com/users/gk5885","html_url":"https://github.com/gk5885","followers_url":"https://api.github.com/users/gk5885/followers","following_url":"https://api.github.com/users/gk5885/following{/other_user}","gists_url":"https://api.github.com/users/gk5885/gists{/gist_id}","starred_url":"https://api.github.com/users/gk5885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gk5885/subscriptions","organizations_url":"https://api.github.com/users/gk5885/orgs","repos_url":"https://api.github.com/users/gk5885/repos","events_url":"https://api.github.com/users/gk5885/events{/privacy}","received_events_url":"https://api.github.com/users/gk5885/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T21:54:39Z","updated_at":"2016-02-24T21:54:39Z","body":"Was this on 2.0.2 or at head?  If not head, could you try to reproduce with that?"}}