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
1
vote
1 answer

Gatling Required ChainBuilder Found B When ExitOnBlockOrFail. Method Exec Not Recognised

I am wondering why this code shows an error saying that it expects a ChainBuilder but found B, and what B actually is. I'm a few months now wondering about this issue since my code still compiles with it but I would love to remove this error if…
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81
1
vote
2 answers

Cannot run scala in IntelliJ

I'm struggling with running Scala Hello World project using IntelliJ IDEA Scala plugin. The project is created without any problems but when I create function which should be run, the run button doesn't appear. I've got no idea why it doesn't…
Sienki
  • 81
  • 1
  • 5
1
vote
2 answers

Intellij Worksheet Scala Version

I have an sbt project with Scala 2.12.12. Working with the worksheet (REPL), i decided to check the Scala version, and typed the following: util.Properties.versionString To my surprise i got res7: String = version 2.12.7 Any idea how is that…
MaatDeamon
  • 9,532
  • 9
  • 60
  • 127
1
vote
2 answers

IntelliJ suddenly stops highlighting errors in Scala/Dotty project

TLDR; IntelliJ isn't highlighting any errors (syntax/type mismatch) in my Scala project. I've tried type-aware highlighting, setting highlighting level to "Inspections", and enabling "Experimental Features" according to StackOverflow answers, and…
user
  • 7,435
  • 3
  • 14
  • 44
1
vote
0 answers

scala autocomplete intellij

I have a strange behavior from intellij and scala. When I try to use auto completion it kind of only works for the suggestions not methods related. Once I type the first names method names it works as shown in the second picture. Any ideas how to…
Jorge Machado
  • 752
  • 1
  • 8
  • 28
1
vote
1 answer

IntelliJ plugins vs SDKs

I've been using IntelliJ IDEA Community 2018.1 for a few months now, strictly with Java and Groovy projects. I just went to import my first (ever) Scala/Gradle project, and when it loaded, I noticed that the IDE wasn't really "loading" the Scala…
1
vote
1 answer

Not able to view Dotty option while creating scala project in Intellij IDEA

I have Intellij IDEA. Below are the details about it. IntelliJ IDEA 2017.2.5 Build #IU-172.4343.14, built on September 26, 2017 Licensed to Rajkumar Natrajan JRE: 1.8.0_152-release-915-b12 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains…
user51
  • 8,843
  • 21
  • 79
  • 158
1
vote
2 answers

Intellij doesn't work well with multi module maven scala project

I have a project with standard multi project maven with mixed scala / java modules. When I open this project on IntelliJ it fails to recognise scala folders as sources / test-sources root folders. . |-- pom.xml `-- src |-- it | |--…
orshachar
  • 4,837
  • 14
  • 45
  • 68
1
vote
1 answer

Cartesian product |@| not working in IntelliJ

This compiles just fine with sbt: val a: ValidatedNel[String, Int] = 10.valid a |@| a But in IntelliJ, it shows up as an error: This makes functional error handling with Cats very inconvenient. All my "IDE-compile-time" typesafety is gone;…
kornfridge
  • 5,102
  • 6
  • 28
  • 40
1
vote
2 answers

Why can't i see scala worksheet option in intellij?

I have installed Scala in intellij and have created a project. But i cannot see scala worksheet option ? Steps: under scala project-->src-->main-->scala right click on scala-->New -->I excect to see scala worksheet option Thanks!! Thanks!!
Fakeer
  • 165
  • 1
  • 5
  • 17
1
vote
1 answer

Intellij Scala - how to use or import source code directory as a framework?

As I've downloaded a preview distribution of Apache Spark 2.0, I would like to use it within Intellij within a project of mine. However, the project is not a standard Maven distribution or similar, but rather purely source code scattered through…
dsafa
  • 783
  • 2
  • 8
  • 29
1
vote
2 answers

How to import scala class into IntelliJ IDEA

I know this might not sound intelligent, but I am new to this and I really want to figure it out. I have been coding in JAVA recently and on the other hand have some function implemented within scala. I came across this article: Interop Between Java…
ahajib
  • 12,838
  • 29
  • 79
  • 120
0
votes
0 answers

formatting `fewerBraces` does not always compile

Since Scala 3.3 fewerBraces is a standard feature. However, when IDEA 2023.2 (Community Edition) with Scala Plugin 2023.2.19 formats the following code, the result does not compile. class Foo(i: Int)(s: String) val fooList: List[Foo] = Foo(42): …
Marcus
  • 1,857
  • 4
  • 22
  • 44
0
votes
0 answers

Why difference when importing csv with spark

I have this csv file, payments.csv, for some particular rows the timestamp is changing by itself. the first 3 lines are the screenshots for easier understanding. import spark.implicits._ import…
0
votes
1 answer

Spring boot with scala in maven intelliji not auto compiling

I have spring boot project with scala inside ( I use java+scala mixed ). Some screens from intellij: Some interesting parts in pom.xml 3.1.1 org.scala-lang
FrancMo
  • 2,459
  • 2
  • 19
  • 39