Giter Site home page Giter Site logo

Comments (9)

Thangiee avatar Thangiee commented on May 27, 2024 1

Something may not be generated correctly. I am going to look into it.

from freasy-monad.

Thangiee avatar Thangiee commented on May 27, 2024

Hmm, I can't seem to reproduce the error.

Which scala version are you using?

Also what are you using to run the code (intellij or sbt run, etc... )?

from freasy-monad.

kthompson avatar kthompson commented on May 27, 2024

I am running scalaVersion := "2.11.5", I am primarily using intellij but i get the same errors if I run sbt compile

It is a bit strange as it was working and then I changed some things, but now I get the error above.

Here is a minimal example: https://github.com/kthompson/freasy-test

from freasy-monad.

Thangiee avatar Thangiee commented on May 27, 2024

Try adding this to your build.sbt:

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)

from freasy-monad.

kthompson avatar kthompson commented on May 27, 2024

That seems to have helped. Not sure why it didnt work in the plugin.sbt file. Now I am getting some other weird errors:

Error:(27, 20) wrong number of type parameters for method getAll: [F[_], T](implicit I: cats.free.Inject[FilterStore.FilterStoreGrammar,F])cats.free.Free[F,List[T]] get <- getAll[Any] Error:(7, 2) too many arguments for method removeAll: ()(implicit I: cats.free.Inject[FilterStore.FilterStoreGrammar,F])cats.free.Free[F,Unit] @free

from freasy-monad.

kthompson avatar kthompson commented on May 27, 2024

It looks like at least one parameter is required for the abstract methods within the trait?

from freasy-monad.

Thangiee avatar Thangiee commented on May 27, 2024

Could you give v0.4.1 a try?

resolvers += Resolver.jcenterRepo
libraryDependencies ++= Seq(
  "com.thangiee" %% "freasy-monad" % "0.4.1",
  "org.typelevel" %% "cats" % "0.7.2" 
)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)

Please tell me if it works or not, thanks!

from freasy-monad.

kthompson avatar kthompson commented on May 27, 2024

Awesome! Looks like its working. Thanks for the quick responses. 😃

from freasy-monad.

Thangiee avatar Thangiee commented on May 27, 2024

No problem :)

from freasy-monad.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.