Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not find implicit value for evidence parameter of type caseapp.core.parser.Parser[T] #162

Open
don41382 opened this issue Dec 17, 2019 · 2 comments

Comments

@don41382
Copy link

I can't get the Commands work for the CaseApp.parse[T] method. The compiler can't find the implicit Parser.

What am I missing?

import caseapp._

sealed trait DemoCommand
case class First() extends DemoCommand
case class Second() extends DemoCommand

object MyApp extends App{
  CaseApp.parse[DemoCommand](List())
}

could not find implicit value for evidence parameter of type caseapp.core.parser.Parser[DemoCommand]

@superChing
Copy link

I found that CaseApp.parse expect Parser but CommandParser is not Parser.
If it is then is a bug.

@JonNorman
Copy link

JonNorman commented Jul 26, 2020

@superChing did you find a solution to this issue? I'm hitting the same issue and it seems fairly fundamental. I'm using scala 2.11.

It seems as though the implicit Parser should come from LowPriorityParserImplicits but I don't understand enough of what is going on beneath the hood here to troubleshoot it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants