Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.
0 votes
2 answers
57 views

sbt plugin resolvers not adding sbtVersion, scalaVersion to artifactory url

In an sbt project, I'm adding some plugins, like addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2") This should resolve to an artifact url similar to this: https://...
javierhe's user avatar
  • 573
1 vote
1 answer
59 views

Referring to non-existent class while compiling to ScalaJS

I'm builing a ScalaJs & Scala3 application, when i run the npm run dev/build command I have the following error, and I'm not figuring out how to fix it: Referring to non-existent class scala....
Ghignatti Nicolò's user avatar
1 vote
1 answer
53 views

Does `sbt compile` install things out of the current project directory?

I am a noob in scala. I installed it using coursier and am using sbt to try and write code in it. Basically, I use the two commands sbt compile and sbt run for my code. Along, with that I was ...
Dhruv's user avatar
  • 521
0 votes
0 answers
32 views

How can I get SBT to render the character `─ ` in the prompt?

I'm trying to configure my SBT prompt to end with the characters └─→ in the terminal. I've overridden the shell prompt with the following code in ~/.sbt/1.0/global.sbt shellPrompt := { state => &...
cheezsteak's user avatar
  • 2,945
0 votes
2 answers
81 views

Spark (on Scala) replace gson version in Runtime

My sbt project has the following dependency configuration: val scyllaConnector = "com.datastax.spark" %% "spark-cassandra-connector" % "3.2.0" val sparkHadoopCloud = &...
Jelly's user avatar
  • 1,394
0 votes
1 answer
76 views

SBT Java The system cannot find the path specified

I am getting the below error, tried various versions of java still I am getting the error $ ./sbt compile java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem....
jacob paul's user avatar
1 vote
1 answer
278 views

Fix missing transnitive dependencies with jlink and scala3 `scala.quoted -> scala `

I'm trying to upgrade a scala library to scala3 and cannot seem to figure out how to get the scala3 language to work with jlink. It says I'm missing transitive dependencies on a jlink build. You can ...
Chris Stewart's user avatar
0 votes
1 answer
64 views

@nowarn is not working in Scala. Intellij Idea

I'm new to Scala and the @nowarn system seems a little bit confusing. I've tryed to remove lint errors on Function1 and Function2 with nowarn, but it didn't work. So, here's this programm: import ...
Nikita Shadkov's user avatar
1 vote
0 answers
63 views

investigating java.lang.OutOfMemoryError: unable to create native thread in an SBT build in Docker

One of our teams using SBT is moving to run their build in a self hosted Github runner, and it's now failing while running the tests with this error : [106.424s][warning][os,thread] Failed to start ...
Vincent F's user avatar
  • 7,473
1 vote
0 answers
72 views

Scala: typesafe config issue

With scala version 2.13.16 and "com.typesafe" "config" version "1.4.3" I'm trying to configure application with following application.conf file: performances = { ...
Jelly's user avatar
  • 1,394
1 vote
0 answers
60 views

Scala sbt operation: Duplicate slf4j error

Project is configured in build.sbt file: ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / scalaVersion := "2.13.16" lazy val root = (project in file(".")) .settings( ...
Jelly's user avatar
  • 1,394
1 vote
0 answers
30 views

Marking direct dependency as runtime and excluding transitive dependencies in test

(avro % Runtime).excludeAll( ExclusionRule(organization = "com.fasterxml.jackson.core"), ExclusionRule(organization = "org.apache.commons"), ExclusionRule(...
Kristopher Kane's user avatar
1 vote
3 answers
89 views

Add sources for unmanaged JARs in SBT

I'm setting up a build.sbt where I need to have a bunch of managed JARs on the classpath. I basically have two large folders containing all of the JARs and then also the source JARs. myManagedRoot |- ...
Alec's user avatar
  • 32.4k
0 votes
0 answers
39 views

Is it possible to define an sbt plugin through an sbt file?

I have a library which has a semi mandatory requirement of changes to the sbt file of any project depending on it. This involves loading and enabling a third party plugin as well as setting some ...
Turin's user avatar
  • 2,292
2 votes
0 answers
67 views

Can I declare a Scala library as 'always shade'?

I have a Scala library, lets call it extensions, with extension methods declared in package extensions. It is evolving relatively quickly; lets say that version 1.1 adds new extension methods to 1.0, ...
Turin's user avatar
  • 2,292

15 30 50 per page
1
2 3 4 5
667