Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Behavior change post 0.5.0 #193

Closed
kailuowang opened this issue Sep 19, 2017 · 2 comments
Closed

Behavior change post 0.5.0 #193

kailuowang opened this issue Sep 19, 2017 · 2 comments

Comments

@kailuowang
Copy link
Contributor

for some reason tut post 0.5.0 is taking scalacOptions in Compile, console
I suspect that this causes it to compile scala code differently, because scalameta no longer works in tut post 0.5.0 (with the exact same CLI run parameters though)

In the following build.sbt, with tut 0.5.0 plugin, the kind project plugin no longer appears in the tut CLI run command args. Removing the line scalacOptions in (Compile, console) := Seq() will add it back, but this line doesn't have that effect on tut 0.4.x

lazy val root = (project in file("."))
 .enablePlugins(TutPlugin)
  .settings(
    inThisBuild(List(
      scalaVersion := "2.12.3"
    )),
    name := "Hello",
    addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.4"),
  //tutSettings,
  scalacOptions in (Compile, console) := Seq() // this line disables KP or any other compiler plugin in tut 0.5.0+
 )
~       
@suhasgaddam
Copy link

I also stumbled on this while trying to figure out why macros weren't being expanded in my documentation.

For the sbt 1.0 plugin: https://github.com/tpolecat/tut/blob/master/plugin/src/main/scala/tut/TutPlugin.scala#L44

git blame first occurrence

@kailuowang
Copy link
Contributor Author

Ah, thank you @suhasgaddam, that explains, it used to inherit scalacOption from test, now it's from console. Scalameta doesn't work in console, can we change it back?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants