Skip to main content

All Questions

Tagged with
0 votes
0 answers
38 views

Scala project: sbt compile generates empty fs2-grpcs folder, missing proto-generated classes

I'm working on a Scala project that currently implements a simple REST API. I'm trying to add a new gRPC service to this project. However, I'm encountering an issue during compilation. Issue: When I ...
Ayadi Tahar's user avatar
1 vote
1 answer
39 views

Scala failed to install on Windows 10

I used this site to install Scala on latest version of Windows 10 Pro. The installer started and successfully completed the following steps (shown at the end below). At the end, command window asked: ...
nam's user avatar
  • 23.3k
-1 votes
0 answers
57 views

Scala/SBT/Java - When running app locally with java 21 getting InaccessibleObjectException

Hi all I am using scala version 2.12.18, sbt version 1.9.0 and java jdk 21.0.3. When trying to run my application locally through sbt run -Dconfig.resource=local-qa.conf I am getting this error: [...
M. Barabas's user avatar
2 votes
1 answer
100 views

Test/compile not finding lib/jar with Scala 3 (but 2.13 works)

I'm packaging jars from generated source code with an sbt-plugin and the jars are fine and on the classpath. Now I have two identical minimal projects targeting Scala 2.13 and 3.3. With 2.13 I can run ...
Marc Grue's user avatar
  • 5,357
0 votes
0 answers
37 views

For any given project built using SBT, is there any way, by creating a plugin/other ways, to get and STORE the details of modules and dependencies

I have a sample SBT built JAVA project Apache Pekko v1.0.0 https://github.com/apache/pekko/tree/v1.0.0 I need to setup automation in such a way that I get the name of the modules in this project, or ...
Sri Shylesh's user avatar
0 votes
0 answers
23 views

Continuously compile multiple configurations in sbt

I can execute multiple tasks with IT/compile; Test/compile in sbt shell but how to run it continuously? ~IT/compile; ~Test/compile fails because it starts them separately: Tried to start new watch ...
Marcin Wisnicki's user avatar
1 vote
0 answers
25 views

Exclude by tag annotation not working for scalatestplus TestNGSuite in Java

I am trying to build a SBT project which will encompass both unit and end-to-end tests, and will support tests being written in both Scala (extending standard Scalatest suites, e.g. AnyFlatSpec) and ...
MSmedberg's user avatar
  • 451
0 votes
0 answers
52 views

Scala Native + AKKA HTTP issue

I would like to use Scala Native for my backend server to run some code, which are writen in C. But when I enabled the scala native plugin in the build.sbt, I got errors during nativeLink. my build....
user25511590's user avatar
0 votes
0 answers
57 views

How to set up Scala(Metals) with WSL

I'm trying to use VSCode as an IDE to develop Scala applications in an environment with WSL. I installed Scala(Metals), but it doesn't work and has no VSCode intellisense feature. error details When I ...
yayuyo's user avatar
  • 25
0 votes
1 answer
25 views

How to handle clashing plugins generating code in SBT project?

I am stuck on a problem with my Scala SBT (1.7.2) project. Situation: I already have working configuration to generate code from *.avsc, *.avdl files via "com.julianpeeters" % "sbt-...
mintas123's user avatar
  • 163
1 vote
0 answers
38 views

How to completely ignore test compilation in stage?

I'm running $ sbt 'allImages / Docker / stage' command on following configuration: lazy val allImages = project .in(file("build/all-images")) .aggregate(p1, p2) .settings( ...
TheDIM47's user avatar
1 vote
1 answer
63 views

Try to compile and install rocket-chip generator but scala reports a constant pool index error

Here is the bug report: macros.compile scala.reflect.internal.FatalError: bad constant pool index: 0 at pos: 48461 while compiling: <no file> during phase: globalPhase=<no ...
季子墨's user avatar
0 votes
0 answers
137 views

Value ideaPort not found

Running an SBT shell or any SBT command fails with <set>:1: error: not found: value ideaPort ideaPort in Global := 34497 ^ [error] Type error in expression I'm not sure which actions I did ...
Filip's user avatar
  • 653
0 votes
0 answers
86 views

Sonar scanner plugin for sbt

I am trying to find a Sonar scanner plugin for SBT which will support the newest versions of SonarQube. But all that I have found is outdated and doesn't work with SonarQube 9+: sbt-sonar sonar-scala ...
Vyacheslav Kondratenko's user avatar
1 vote
0 answers
33 views

GitHub token not found when using VS Code / Metals

Background: I am a long time IntelliJ IDEA user. Recently I am a bit disapponted with Scala 3 support in this IDE and I would like to try VS Code + Metals. When I try to open any of my SBT projects in ...
Suma's user avatar
  • 34.1k

15 30 50 per page
1
2 3 4 5
468