philcali / sbt-lwjgl-plugin

An sbt / lwjgl plugin
MIT License
44 stars 12 forks source link

error: not found: value slickSettings #41

Open SrTobi opened 8 years ago

SrTobi commented 8 years ago

Hi,

I want to use Slick2D with sbt 0.13.8. I followed the readme as well as the wiki. But I always get the following error:

Error while importing SBT project:
[info] Loading project definition from C:\Users\---\slick2d-test\project\project
[info] Loading project definition from C:\Users\---\slick2d-test\project
C:\Users\---\slick2d-test\build.sbt:8: error: not found: value slickSettings
seq(slickSettings: _*)
    ^
[error] Type error in expression
Invalid response.

I thought the problem would be the version of sbt (0.13.8). So I tried the solution from #37. But that doesn't change anything.

build.sbt:

name := "slick2d-test"

version := "1.0"

scalaVersion := "2.11.8"

seq(lwjglSettings: _*)
seq(slickSettings: _*)

project/plugins.sbt:

logLevel := Level.Warn

project/build.properties:

sbt.version = 0.13.8

project/project/Plugin.scala

import sbt._

object Plugins extends Build {
  lazy val root = project.in(file(".")).dependsOn(lwjglPlugin)
  lazy val lwjglPlugin = uri("git://github.com/philcali/sbt-lwjgl-plugin.git")
}
gaborigloi commented 8 years ago

Hi, I had a similar problem, and I managed to make it work with sbt 0.13.11. I defined the plugin repository slightly differently, as described in the sbt documentation. Also, it seems that slickSettings is inside the Slick2D object. So sbt loaded the project without errors with this configuration:

project/plugins.sbt

lazy val root = (project in file(".")).dependsOn(lwjglPlugin)
lazy val lwjglPlugin = uri("git://github.com/philcali/sbt-lwjgl-plugin")

build.sbt

seq(Slick2D.slickSettings: _*)

But I still got an error "Host slick.cokeandcode.com not found" when it tried to compile it.