akka-js / shocon

Simple pure-scala Typesafe HOCON implementation using FastParse
Apache License 2.0
74 stars 21 forks source link

My project does not build SBT settings #46

Closed GioAgu17 closed 6 years ago

GioAgu17 commented 6 years ago

Sorry, I am a first-time developer and I ham having troubles in understanding how to use SHocon. My SBT project cannot properly build the settings that I found in the README. After adding the plugin, I get some compilation error when I add the lines on build.sbt. How is it possible?

GioAgu17 commented 6 years ago

More precisely, when adding to build.sbt the following lines:

val root = project.in(file(".")
.enablePlugins(ShoconPlugin)
.settings(
libraryDependencies += "org.akka-js" %% "shocon" % "0.4.1",
// for Scala.js/Native or cross projects use %%% instead:
// libraryDependencies += "org.akka-js" %%% "shocon" % "0.4.1"

// add dependency on shocon file generation task
// (not required, but otherwise you need to call shoconConcat manually before compilation!)
compile in Compile := (compile in Compile).dependsOn(shoconConcat).value

/* ... */
)

I get error while importing sbt project: [error]: ')' expected but eof found

I am using IntellijIdea with sbt plugin, version 1.1.0

GioAgu17 commented 6 years ago

ok, I added an additional ')' and that fixed the previous problem. Now I am getting the following: error: value enablePlugins is not a member of sbt.File

andreaTP commented 6 years ago

the missing closed parenthesis is in the first line:

val root = project.in(file("."))
andreaTP commented 6 years ago

fixed in master, thanks.