Code Monkey home page Code Monkey logo

Comments (5)

mbesida avatar mbesida commented on August 14, 2024 1

@DavidGregory084 that work's 👌. Thanks a lot!

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

@mbesida I don't seem to be able to replicate this - see #80. Is it possible that there is something else appending to Test / scalacOptions in your build? What does the output of inspect Test/scalacOptions and inspect tree Test/scalacOptions look like?

from sbt-tpolecat.

mbesida avatar mbesida commented on August 14, 2024

@DavidGregory084 version of plugin 0.2.3

sbt:server> inspect tree Test/scalacOptions
[info] Test / scalacOptions = Task[scala.collection.Seq[java.lang.String]]
[info]   +-Global / autoCompilerPlugins = true
[info]   +-Global / buildDependencies = sbt.internal.BuildDependencies@3c2050c1
[info]   +-Test / configuration = test
[info]   +-Test / earlyOutput = ${BASE}/target/test-early/server-SNAPSHOT.jar
[info]   | +-Test / earlyOutput / artifactPath = target/test-early/server-SNAPSHOT.jar
[info]   | | +-artifact = Artifact(server, jar, jar, None, Vector(), None, Map(), Non..
[info]   | | +-Global / artifactName = sbt.Defaults$$$Lambda$849/1136131052@329ed1f
[info]   | | +-ThisBuild / scalaBinaryVersion = 2.13
[info]   | | +-ThisBuild / scalaVersion = 2.13.8
[info]   | | +-Test / configuration = test
[info]   | | +-crossTarget = target
[info]   | | +-projectID = myproject:SNAPSHOT
[info]   | | 
[info]   | +-ThisBuild / fileConverter = sbt.internal.inc.MappedFileConverter@1d3888b0
[info]   | 
[info]   +-ThisBuild / exportPipelining = false
[info]   +-ThisBuild / fileConverter = sbt.internal.inc.MappedFileConverter@1d3888b0
[info]   +-Global / sbtPlugin = false
[info]   +-ThisBuild / scalaVersion = 2.13.8
[info]   +-Test / scalacOptions / streams = Task[sbt.std.TaskStreams[sbt.internal.uti..
[info]   | +-Global / streamsManager = Task[sbt.std.Streams[sbt.internal.util.Init$Sc..
[info]   | 
[info]   +-Global / semanticdbEnabled = false
[info]   +-Test / semanticdbOptions = List(-Yrangepos, -P:semanticdb:targetroot:/home..
[info]   | +-Test / configuration = test
[info]   | +-ThisBuild / scalaVersion = 2.13.8
[info]   | +-Test / semanticdbTargetRoot = target/test-meta
[info]   |   +-Test / classDirectory = target/test-classes
[info]   |   | +-Test / configuration = test
[info]   |   | +-crossTarget = target
[info]   |   | 
[info]   |   +-Test / configuration = test
[info]   |   +-crossTarget = target
[info]   |   +-Global / semanticdbIncludeInJar = false
[info]   |   
[info]   +-Global / settingsData = Task[sbt.internal.util.Settings[sbt.Scope]]
[info]   +-thisProjectRef = ProjectRef(file:/home/mbesida/myproject/,root)
[info]   +-Test / tpolecatScalacOptions = ListSet(ScalacOption(-encoding utf8), Scala..
[info]   | +-tpolecatCiModeOptions = ListSet(ScalacOption(-encoding utf8), ScalacOpti..
[info]   | +-tpolecatDevModeOptions = ListSet(ScalacOption(-encoding utf8), ScalacOpt..
[info]   | +-Test / tpolecatOptionsMode = DevMode
[info]   | +-tpolecatReleaseModeOptions = ListSet(ScalacOption(-encoding utf8), Scala..
[info]   | 
[info]   +-update = Task[sbt.librarymanagement.UpdateReport]
[info]   
sbt:server> inspect Test/scalacOptions
[info] Task: scala.collection.Seq[java.lang.String]
[info] Description:
[info]  Options for the Scala compiler.
[info] Provided by:
[info]  ProjectRef(uri("file:/home/mbesida/myproject/"), "root") / Test / scalacOptions
[info] Defined at:
[info]  (sbt.Defaults.configTasks) Defaults.scala:966
[info]  (sbt.Defaults.configTasks) Defaults.scala:973
[info]  (sbt.Classpaths.compilerPluginConfig) Defaults.scala:4094
[info]  (io.github.davidgregory084.TpolecatPlugin.projectSettings) TpolecatPlugin.scala:132
[info]  (sbt.plugins.SemanticdbPlugin.configurationSettings) SemanticdbPlugin.scala:71
[info]  (sbt.plugins.SemanticdbPlugin.configurationSettings) SemanticdbPlugin.scala:79
[info] Dependencies (D=derived from):
[info]    Test / semanticdbEnabled
[info]    Test / thisProjectRef
[info]    Test / settingsData
[info]    Test / sbtPlugin
[info]    Test / update
[info]    Test / configuration
[info]    Test / earlyOutput
[info]    Test / fileConverter
[info]  D Test / tpolecatScalacOptions
[info]    Test / scalacOptions / streams
[info]    Test / semanticdbOptions
[info]    Test / exportPipelining
[info]    Test / autoCompilerPlugins
[info]  D Test / scalaVersion
[info]    Test / buildDependencies
[info] Reverse dependencies:
[info]  Test / bspBuildTargetScalacOptionsItem
[info] Delegates:
[info]  Test / scalacOptions
[info]  Runtime / scalacOptions
[info]  Compile / scalacOptions
[info]  scalacOptions
[info]  ThisBuild / Test / scalacOptions
[info]  ThisBuild / Runtime / scalacOptions
[info]  ThisBuild / Compile / scalacOptions
[info]  ThisBuild / scalacOptions
[info]  Zero / Test / scalacOptions
[info]  Zero / Runtime / scalacOptions
[info]  Zero / Compile / scalacOptions
[info]  Global / scalacOptions
[info] Related:
[info]  common / Compile / scalacOptions
[info]  common / Test / doc / scalacOptions
[info]  serverApi / Test / scalacOptions
[info]  Test / doc / scalacOptions
[info]  Compile / scalacOptions
[info]  serverApi / Compile / console / scalacOptions
[info]  tasks / Compile / scalacOptions
[info]  serverApi / Compile / scalacOptions
[info]  Compile / console / scalacOptions
[info]  common / Test / scalacOptions
[info] ...

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

Aha! I think I have replicated this in #81 @mbesida! It seems it was fixed by the same change that fixed #74 so the reason that I could not replicate the issue is that is already resolved on main. I'm going to cut a release so that we can find out whether it resolve the issue for you.

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

@mbesida this should be resolved in 0.3.3, let me know if the issue persists for you and we can reopen.

from sbt-tpolecat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.