光滑的提升表类型错误

 手机用户2502894791 发布于 2023-02-11 12:57

只是将示例从github示例复制到我的项目中后,我收到以下错误.我能够编译github示例项目.我觉得我一定是搞砸了一些人.我正在使用sbt 0.13

[error] .scala:13: too many arguments for constructor Object: ()Object
[error]   class Suppliers(tag: Tag) extends Table[(Int, String, String, String, String,   String)](tag, "SUPPLIERS") {
[error]                  ^
[error].scala:14: object column does not take type parameters.
[error]     def id = column[Int]("SUP_ID", O.PrimaryKey) // This is the primary key column

我的build.sbt看起来像

import AssemblyKeys._

name:="myproject"

版本:="1.0"

scalaVersion:="2.10.3"

assemblySettings

seq(Revolver.settings:_*)

libraryDependencies <+ =(scalaVersion)("org.scala-lang"%"scala-compiler"%_)

" http://oss.sonatype.org/content/repositories/snapshots/ "中的解析器+ ="Sonatype快照"

解析器+ ="Typesafe Repository"在" http://repo.typesafe.com/typesafe/releases/ "

解析器+ ="Sonatype Releases"在" http://oss.sonatype.org/content/repositories/releases "

解析器+ ="CDH4"在" https://repository.cloudera.com/artifactory/cloudera-repos/ "

解析器+ ="glassfish"在" https://repository.jboss.org/nexus/content/repositories/glassfish "

" http://repo.spray.io "上的解析器+ ="spray repo "

" http://repo.anormcypher.org/ "上的解析器+ ="anormcypher "

libraryDependencies + ="com.typesafe.akka"%%"akka-actor"%"2.2.0"

libraryDependencies + ="com.typesafe.akka"%%"akka-testkit"%"2.2.0"

libraryDependencies + ="com.typesafe.akka"%%"akka-transactor"%"2.2.0"

libraryDependencies + ="io.spray"%"spray-can"%"1.2-RC2"

libraryDependencies + ="io.spray"%"spray-routing"%"1.2-RC2"

libraryDependencies + ="io.spray"%"spray-testkit"%"1.2-RC2"

libraryDependencies + ="io.spray"%%"spray-json"%"1.2.3"

libraryDependencies + ="org.scalatest"%"scalatest_2.10"%"1.9.2"

libraryDependencies + ="org.anormcypher"%%"anormcypher"%"0.4.4"

libraryDependencies + ="com.h2database"%"h2"%"1.3.166"

libraryDependencies + ="com.typesafe.slick"%%"slick"%"2.0.0-M3"

libraryDependencies + ="org.postgresql"%"postgresql"%"9.2-1002-jdbc4"

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有