Questions tagged [intellij-scala]

Questions related to the Scala plugin in IntelliJ IDEA.

The IntelliJ Scala plugin offers Scala editing support in the IntelliJ IDEA IDE.

44 questions
0
votes
1 answer

Failing to create a SBT project in Intellij

I tried to convert a Scala project (without SBT) to an SBT project and I am struggling to run it in IntelliJ. I have Scala 2.11 and Java 8 installed correctly but still no luck. I think there is a configuration with IntelliJ which I am not doing…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
0
votes
1 answer

libraryDependencies Spark in build.sbt error (IntelliJ)

I am trying to learning Scala with Spark. I am following a tutorial but I am having an error, when I try to import the library dependencies of Spark: libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3" I am getting the following…
0
votes
0 answers

IntelliJ Scala Project Issue from version control

I have imported Scala project from the Version control (Git). In the build.sbt not recognizing name, version control etc. In the assembly.sbt below line is not recognizing. addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6") I tried couple of…
0
votes
0 answers

How to change C:\Users\Username32\.sbt\1.0\plugins location for Scala plugin in Windows for Intellij Idea

I'd like to have dependencies, loaded by .sbt to be stored at some other locations. How can I change the local repository location (C:\Users\Username32\.sbt) for .sbt? I can't figure out this in Intellij idea settings.
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

If I have Scala plugin installed in intellij, can i acces it globally?

I'm just getting started with scala, and im using intellij. I have just installed the plugin with the tool in intellij, and this now works. But i would like to also maybe run Scala from cmd. Is it necessary for me to download Scala via the browser…
s3j80
  • 143
  • 1
  • 1
  • 9
0
votes
0 answers

Why do I have to add jars to class path to run the jar file when I already have the dependency added in my project?

I am working on a Scala project on IntelliJ with SBT as my build tool. I started working sbt build recently. This is my project structure: This is my build.sbt file: name := "AnalyzeTables" version := "0.1" scalaVersion := "2.11.8" //…
Metadata
  • 2,127
  • 9
  • 56
  • 127
0
votes
0 answers

ScalaTestWithActorTestKit not found

Added following in sbt: "com.typesafe.akka" %% "akka-actor-testkit-typed" % "2.6.3" % Test Still ScalaTestWithActorTestKit is not detected? Edit: It seems its more of intellij issue.
Mandroid
  • 6,200
  • 12
  • 64
  • 134
0
votes
2 answers

How do I change the way an inspection works in IntelliJ IDEA?(Scala plugin)

Picture says it all: I want the squiggle to be under Int, rather than having it under an unintended type (Unit in the example) How do I achieve this behavior?
nz_21
  • 6,140
  • 7
  • 34
  • 80
0
votes
2 answers

Intellij: Debugging does not work with Play Framework

I have problems for some time with debugging in Intellij (Ultimate 2019.2). If I set Breakpoints and restart Intellij, or it reloads after a code change, all the Breakpoints work as expected: But if I set the Breakpoints when the Play server is…
pme
  • 14,156
  • 3
  • 52
  • 95
0
votes
1 answer

IntelliJ unable to resolve certain types, ex: EnumValue on a Mongo record - Scala

For Example: object CampaignTypes extends Enumeration { type CampaignType = Value val ABC,DEF = Value } object campaignTypeId extends EnumNameField(this, CampaignTypes) { override val defaultValue = CampaignTypes.ABC } IntelliJ…
user5039511
0
votes
0 answers

Intellij-scala-plugin 2017.3.11.1 highlight error at editor but it compiles

I came across a weird issue with Intellij-scala-plugin 2017.3.11.1 for IntelliJ CE 2017.3 The following code compiles in sbt, but inside Intellij Scala Editor, there is an error highlighted as the attached picture. trait Schema[+T, K, G] { def…
0
votes
1 answer

Trying to integrate mongoDB and spark, keep having errors related to "could not find or load class"

So I've been trying to integrate mongoDB and Spark, after handling reading about all the dependencies, I'm running: Jdk 1.8 scala-sdk-2.11-7 Spark version 2.0.2 This is how my build.sbt file looks: scalaVersion := "2.11.7" libraryDependencies ++=…
0
votes
1 answer

PlayFramework 2.5.3 project creation error in Intellij IDEA 15

I have configured Scala 2.11.7 version in the IntelliJ Idea settings. I have created a new play framework project in IntelliJ Idea 15. Once the project is created successfully, I have opened the controller file "Application.scala" and found…
user51
  • 8,843
  • 21
  • 79
  • 158
-4
votes
1 answer

What is IntelliJ doing in the background?

Recently IntelliJ has gotten very laggy, long pauses, etc. On my Mac, when I run Activity Monitor, I can see IntelliJ chewing up CPU for some reasons that are not clear. A lot of CPU. In IntelliJ, I am just trying to edit my code, but it becomes…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
1 2
3