Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

can't compile #63

Open
lovelj opened this issue Sep 30, 2019 · 2 comments
Open

can't compile #63

lovelj opened this issue Sep 30, 2019 · 2 comments

Comments

@lovelj
Copy link

lovelj commented Sep 30, 2019

geotrellis-gdal-master\gdal\src\main\scala\geotrellis\gdal\GDAL.scala:106: error: no type parameters for method foldLeftM: (f: (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => G[Option[org.gdal.gdal.Dataset]])(implicit G: cats.Monad[G])G[Option[org.gdal.gdal.Dataset]] exist so that it can be applied to arguments ((Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => Product with Serializable with scala.util.Either[Option[org.gdal.gdal.Dataset],Option[org.gdal.gdal.Dataset]])
@lovelj
Copy link
Author

lovelj commented Sep 30, 2019

Error:(106, 44) no type parameters for method foldLeftM: (f: (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => G[Option[org.gdal.gdal.Dataset]])(implicit G: cats.Monad[G])G[Option[org.gdal.gdal.Dataset]] exist so that it can be applied to arguments ((Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => Product with Serializable with scala.util.Either[Option[org.gdal.gdal.Dataset],Option[org.gdal.gdal.Dataset]])
--- because ---
argument expression's type is not compatible with formal parameter type;
found : (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => Product with Serializable with scala.util.Either[Option[org.gdal.gdal.Dataset],Option[org.gdal.gdal.Dataset]]
required: (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => ?G[Option[org.gdal.gdal.Dataset]]
list.zipWithIndex.reverse.foldLeftM(Option.empty[Dataset]) { case (acc, (_, idx)) =>

@pomadchin
Copy link
Member

Hey @lovelj how do you get this exception? Anyway we have tests launched in CI https://travis-ci.org/geotrellis/geotrellis-gdal/builds so you are welcome to look into the process of how we build it.

P.S. this is an unsupported project and it is not thread safe, please use https://github.com/locationtech/geotrellis/tree/master/gdal/src

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

No branches or pull requests

2 participants