Questions tagged [scala-ide]

The Scala IDE is the Eclipse plugin for Scala

The Scala IDE is the Eclipse plugin for Scala.

The official homepage is scala-ide.org.

To raise bugs against the Scala IDE, see Assembla bug tracker.

If you wish to contribute to scala-ide, see scala-ide on github.

339 questions
5
votes
1 answer

Eclipse Scala Worksheet error value is not a member of object

I have a simple class calc that squares and cubes the input: object calc2 { def square(nmr: Int) = { calc.square(nmr) } def cube(nmr: Int) = { calc.cube(nmr) } def square(nmr: Double) = { calc.square(nmr) } def…
Pedro Gordo
  • 1,825
  • 3
  • 21
  • 45
5
votes
0 answers

SCALA-IDE: Eclipse highlight matching variables / mark occurrences extremely slow

I just installed the SCALA-IDE plugin and the highlighting in it is excruciatingly slow (circa 1 minute on a 1k-line file) rendering it useless. Meanwhile, the same Eclipse session with the PyDev plugin still works within about a second on very…
TimY
  • 5,256
  • 5
  • 44
  • 57
5
votes
1 answer

Eclipse Scala IDE: can't open hierarchy for standard library classes

I have exactly the same problem as in this question: Eclipse: Using "Open Declaration" ... in a Scala project However, I'm using the latest Scala IDE in version 3.0.2 (I have downloaded the Eclipse bundle from the site), and I would assume such…
siledh
  • 3,268
  • 2
  • 16
  • 29
5
votes
3 answers

toString on a negative number doesn't compile in Scala Worksheet

If I create a Scala Worksheet in Eclipse as follows: object negative { 2.toString //> res0: String = 2 (2).toString //> res1: String = 2 // compile error (-2).toString } the…
DNA
  • 42,007
  • 12
  • 107
  • 146
5
votes
1 answer

ScalaIDE: how do I get tooltips as in Java when hovering over an error?

When ScalaIDE detects an error in the source code, it underlines it the same way the JDT does. However, to view the error message, I have to move the mouse over the red icon that's on the left of the line number. And to choose a quickfix I have to…
Tobias Brandt
  • 3,393
  • 18
  • 28
5
votes
2 answers

Android, scala and eclipse = unstable blend

Recently, I've written some Android app in scala, working with Eclipse. Everything was okay until my program had only several classes / activities. When I added more code, JVM started to crash, eclipse often freezed and adb constantly lost…
Kamil Lelonek
  • 14,592
  • 14
  • 66
  • 90
4
votes
1 answer

Add scala test to scala eclipse project

I started with scala with eclipse and I have problems with adding ScalaTest to my project. I have already downloaded ScalaTest, but what next? I just starting with jvm and feel lost...
Sławosz
  • 11,187
  • 15
  • 73
  • 106
4
votes
2 answers

Enable Task Tags in Scala IDE for Eclipse

Is there a way to enable TODO/FIXME/etc type tasks in the Scala IDE for eclipse? The only TODO's that I see are for .java files.
fbl
  • 2,840
  • 3
  • 33
  • 41
4
votes
1 answer

How to get Scala Compiler Plugin to work in Scala IDE

Note: This is an exact repost of the same question on the Scala-IDE mailing list, where I got zero reply and gave up waiting after 5 days. I'm writing a Scala Compiler Plugin. It's currently called scalawrapper (but I might find a better name…
Sebastien Diot
  • 7,183
  • 6
  • 43
  • 85
4
votes
1 answer

Scala execution times in Eclipse

There's something fishy going on when I run Scala programs from Eclipse. I run an App object and it takes 7.8 s to run (actual execution time timed with System.nanoTime in the object). When I run the same .class file from the command line it takes…
Luigi Plinge
  • 50,650
  • 20
  • 113
  • 180
4
votes
2 answers

How to run an existing Scala project using VS Code and Metals?

I am brand new to Scala and I find that Scala IDE is very slow on my machine for basic things like searching the codebase and editing code. I am used to Visual Studio Code and was very happy to find this metals extension. I was able to "import…
pradhyo
  • 157
  • 1
  • 2
  • 19
4
votes
1 answer

setting correct scala version on scala ide

I'm trying to work on a project on scala IDE but I've having build problems on scala IDE. On sbt the project builds fine. I used the eclipse sbt plugin and imported the project on scala IDE. There were build errors, which makes the ide close to…
user2759511
  • 640
  • 7
  • 16
4
votes
2 answers

How to add Java dependencies to Scala projects's sbt file

I have a spark streaming Scala project which uses Apache NiFi receiver. The projects runs fine under Eclipse/Scala IDE and now I want to package it for deployment now. When I add it as libraryDependencies += "org.apache.nifi" %%…
Igor K.
  • 915
  • 2
  • 12
  • 22
4
votes
1 answer

import scala.io.StdIn

I'm using Eclipse ScalaIDE and for some reason I'm not able to import scala.io.StdIn I'm getting a red squiggly that tells me: object StdIn is not a member of package io And I'm seeing that it's not in that scala.io jar file. The ScalaDoc,…
Richard Walker
  • 187
  • 1
  • 2
  • 11
4
votes
1 answer

Eclipse, Scala & Maven - Class files are not generating

I converted my scala project in eclipse to use Maven (simply by right clicking on project and Configure Maven build), this created pom.xml, added right dependency which pulled up required jars from maven repository but whenever i try to compile I…
GammaVega
  • 779
  • 1
  • 7
  • 23