Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: value seq is not a member of object slick.dbio.DBIO

I am writing a web application in play framework. I decided to use slick (FRM) to query in my database (postgre). I am new to slick so I started following slick official document for revision 3.0.0 http://slick.typesafe.com/doc/3.0.0/gettingstarted.html

As per the documentation, I added dependencies in my build.sbt file

libraryDependencies ++= Seq(
  "com.typesafe.slick" %% "slick" % "3.0.0",
  "org.slf4j" % "slf4j-nop" % "1.6.4"
)

Everything else is working fine but while writing below line in my Scala IDE. It is showing error that

value seq is not a member of object slick.dbio.DBIO

val setup = DBIO.seq(
// Above line is showing error

(suppliers.schema ++ coffees.schema).create,
.
.
.
)

In fact Scala IDE (same as eclipse IDE) isn't detecting any member of object DBIO though when I browse slick api of same version http://slick.typesafe.com/doc/3.0.0/api/#slick.dbio.DBIO$ for object DBIO I am seeing seq as it's member.

Where am I doing wrong?

like image 418
Vinay Avatar asked May 25 '15 10:05

Vinay


1 Answers

As anticipated by retronym and Chris Scot, this problem was fixed with the release of Slick 3.1

like image 75
Richard Dallaway Avatar answered Nov 16 '22 03:11

Richard Dallaway