Comments (5)
@DavidGregory084 that work's 👌. Thanks a lot!
from sbt-tpolecat.
@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.
@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.
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.
@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)
- Scala.js options overwritten on Scala 3 HOT 8
- Extract settings DSL into a library HOT 1
- Error when enabling scalafix in multi project build on versions > 0.3.1 HOT 4
- Is it possible to disable the unused warnings for generated src code in `target/src_manged`? HOT 7
- warnUnused is reporting on Assertions HOT 17
- Warn unused is reporting on XML literals HOT 3
- Set every tpolecatOptionsMode with tpolecatDevMode
- `-source` choices passed to scalac 3.* via space instead of colon and gets ignored. HOT 1
- New linting options for 3.3.0 HOT 1
- Change modes in intellij HOT 2
- Support `safe-init` in Scala 3
- warnNonUnitStatement has no effect in Scala 3.3.x HOT 1
- Scala 3's -Yexplicit-nulls HOT 5
- Consider verbose warnings
- `-Wnonunit-statement` seems not to work for scala-3 (3.3.3) HOT 3
- @nowarn annotations behavior change between 0.5.0 and 0.5.1 HOT 3
- Options for implicit conversions
- Add `-language:noAutoTupling` in Scala 3
- Write a Scalafix migration to migrate usages of the old package name
- Add this project to Typelevel Steward's repo list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-tpolecat.