can't find method result on TableQuery with slick 3.0.0-RC1

前端 未结 4 2059
眼角桃花
眼角桃花 2021-02-05 02:58

I am trying out Slick 3.0.0-RC1 and I\'m running in to an odd problem.

Such is my code:

import slick.driver.SQLiteDriver.api._
import scala.         


        
相关标签:
4条回答
  • 2021-02-05 03:38

    You may try

    val result = db.withSession(implicit session => issueQuery.list)
    
    0 讨论(0)
  • 2021-02-05 03:39

    If someone is facing a similar issue:

    no result method on TableQuery

    DOUBLE check whether you have import slick.jdbc.PostgresProfile.api._

    0 讨论(0)
  • 2021-02-05 03:45

    I did hit the same problem and here is what I did to get rid of it:

    1. Updated IntelliJ to version 14.1.3
    2. Used Scala Plugin version 1.5

    My scala version is 2.11.6

    I hope this helps somebody who might run into the same problem!

    0 讨论(0)
  • 2021-02-05 03:53

    This is a regular problem I faced quite often with IntelliJ IDEA .

    If using activator, the command - "activator idea" helped me resolve the issue.

    It re-created the .idea and IdeaProject.iml files and then re-loaded the project. I currently use activator-1.3.4

    0 讨论(0)
提交回复
热议问题