Comments (4)
"When I do "last test:compile", I get no output. Am I doing something wrong or is that also a bug? If so, I can file a separate one."
I filed issue #29 for this. It's because the task with the error is "update" which was invoked by "test:compile".
from sbt.
I could not work out what was causing this, so after changing the sbt code to include information about the module, it turns out that it was my root project. It seems like scala-library 2.8.1 was added to it by default. This seems like a recent change and an unexpected one since my root project is meant to be simply a container to the various subprojects.
from sbt.
The fix prints the actual Scala artifact causing the problem. Normally this would happen when the user explicitly declares a dependency on an org.scala-lang artifact with a different version number than scalaVersion.
Here, the version number being checked against was pulled from too high of a scope (global instead of project), so it was checking against the wrong version number. That is now fixed also.
It was indeed a recent change that scala-library was added as a dependency automatically. This was not the problem directly, but it exposed the above issue.
from sbt.
Thanks, I have verified that your fix solves the issue.
from sbt.
Related Issues (20)
- Sbt doesn't propagate `SBT_OPTS` to the generated bsp config HOT 3
- NullPointerException when start sbt-launch.jar sbt 1.9.8 HOT 5
- sbt does not use credentials but then does HOT 2
- `scalaHome` support is bitrotted, requires workaround to use with Scala 2.13 HOT 1
- Mention `val autoImport` inside `AutoPlugin` in the docs HOT 4
- sbt -bsp will exit silently if autoStartServer := false is set HOT 1
- Ignore missing / broken link warning does not seem to work in newer sbt versions HOT 1
- A question about the “sbt stage” command HOT 2
- Remove repo.scala-sbt.org and repo.typesafe.com from boot resolver HOT 4
- Add documentation for sbt dependencyTree plugin HOT 3
- scaladoc warning: Flag -project set repeatedly HOT 3
- inputFileChanges cannot be scoped to a task scoped to another task HOT 1
- sbt evicted should account for maven dependency version ranges HOT 3
- SBT native `new` command crashes with any template HOT 1
- JLine version (3.19.0) is outdated HOT 5
- `console` does not work with Scala 2.13.13, sbt 1.9.8 HOT 12
- `illegal reflective access operation` using sbt 1.9.9 with Java 11 (but not 8 or 17 or 21) HOT 2
- When there is a corrupted jar in Maven's local repo, it will fail HOT 2
- `sbt new` fails to parse arguments correctly on Windows HOT 3
- sbt throws a `StackOverflowError` when reporting a self-referencing exception. HOT 2
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.