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

Scala Eclipse IDE - strange behavior

I am giving a try to Scala Eclipse IDE after a very long time. I installed Eclipse and the said Scala plugin only a while ago, but I am unable to get stuff working. In all of the Scala files, I get the errors like following (See the tooltip): This…
missingfaktor
  • 90,905
  • 62
  • 285
  • 365
1
vote
2 answers

Access the Eclipse Scala compiler from the terminal

I'm just starting out with Scala (trying to setup Eclipse, Lift and SBT on Mac Lion) and I'm not sure if I need the scala compiler through homebrew or can I just use the built in Eclipse Scala compiler through Eclipse and (if I also need to) through…
polyglot
  • 293
  • 2
  • 6
1
vote
2 answers

Scala-IDE or Scala strange import behavior

I am working on a small Scala project. I have the following issue with 'import': If, at the top of one of my files, I import two thing with these commands: import main.Main._ import main.game.Game ^^^^ it gives me the following error message…
noncom
  • 4,962
  • 3
  • 42
  • 70
1
vote
3 answers

What is the purpose of @Test annotation applied to a class in Scala?

I have a project in Java with JUnit tests in Scala. Each test class is annotated with @Test: import org.junit.Test @Test class SomeTest { ... } JUnit API says that @Test is a method annotation. However, when I delete the @Test annotations from…
vitaut
  • 49,672
  • 25
  • 199
  • 336
1
vote
2 answers

Eclipse saying Java classes cannot resolve imported scala types

I previously setup a Scala Nature project by doing right click project->configuration->add Scala nature and perhaps some other steps I do not recall. A second project that I added Scala nature to, is giving an Eclipse error saying, that the…
MetaChrome
  • 3,210
  • 6
  • 31
  • 48
1
vote
1 answer

MWE2 Workflow component with Scala language

I'm trying to write a MWE2 workflow component using scala language. Below is the scala code: package com.ford.modelling.workflow import org.eclipse.emf.mwe2.runtime.workflow.{IWorkflowComponent, IWorkflowContext} class SayHello extends…
Aykut Kllic
  • 898
  • 9
  • 14
1
vote
3 answers

scala code completion in eclipse

[EDIT]: I am an idiot. I was using 'Eclipse IDE for Java Developers' and should have been using 'Eclipse Classic'. The Scala plugin works much better under Classic. *[EDIT]: 11/1/2011 - the Beta 12 release that came out on 10/31 seems to be…
fbl
  • 2,840
  • 3
  • 33
  • 41
1
vote
1 answer

How do I have integrated support for Scala inside newer versions of Eclipse (2023-06)?

I have a large java project with a bit of scala in it and it builds sucessfully with gradle on command line. Inside the IDE, it builds sucessfully thanks to an old plugin named Scala-IDE which is not maintained anymore and binds me to an older…
Sybuser
  • 735
  • 10
  • 27
1
vote
2 answers

Scala REPL in Eclipse does not see my own classes

I created a Java / Maven project in Eclipse, and added the Scala nature. Eclipse can compile my Scala classes (when they are correct), but if I create a Scala interpreter in the project, I cannot import my classes in it. It says my root package does…
Sebastien Diot
  • 7,183
  • 6
  • 43
  • 85
1
vote
0 answers

testng plugin installed on scalaIDE(eclipse) goes away after the system restarts

I have scalaIDE installed on my macOS. Also I have installed TestNG plugin using market place. When I shutdown my system and restart next day, I don't see TestNG features and I have to re-intsall again. What might be the cause and how can I fix it…
user51
  • 8,843
  • 21
  • 79
  • 158
1
vote
3 answers

eclipse does not treat a scalatest flatspec as junit test

here is my test case , while i right click the file eclipse doest not show any run as junit test option. I try to manual create run configuration but does not take any sense. scala version:2.8.1 scalatest:1.3 eclipse:3.6.2 package…
jilen
  • 5,633
  • 3
  • 35
  • 84
1
vote
1 answer

Scala IDE: object scalatest is not a member of package org

I'm trying to use Scala IDE. I'm totally new to Scala. HelloSpec.scala: import org.scalatest._ class HelloSpec extends FlatSpec with Matchers { "The Hello object" should "say hello" in { Hello.greeting shouldEqual "hello" } } import…
Alon
  • 10,381
  • 23
  • 88
  • 152
1
vote
2 answers

Test runs on command line, fails in Scala-IDE

When right-click running a test class, Eclipse failed with Caused by: java.lang.NoClassDefFoundError: scala/Product$class at org.scalatest.time.Days$.(Units.scala:291) at org.scalatest.time.Days$.(Units.scala) at…
serv-inc
  • 35,772
  • 9
  • 166
  • 188
1
vote
1 answer

Autocompletion in "Scala IDE(4.7-x) with Eclipse 2018-12 (4.10.0)" does NOT work

I have installed plugin Scala IDE 4.7.x in my Eclipse Version 4.10.0 (2018-12). When I try to auto-complete Scala Code(using CTRL+SPACE), it gives me the following the error message. I tried disabling Java related proposals from content assist…
krishna
  • 123
  • 1
  • 1
  • 12
1
vote
1 answer

Error: Could not find or load main class com.sundogsoftware.spark.RatingsCounte

I dont know what is wrong here. When I run I keep getting "Error: Could not find or load main class com.sundogsoftware.spark.RatingsCounter" in my scala IDE. this is my scala code package com.sundogsoftware.spark import org.apache.spark._ import…
whippits
  • 251
  • 2
  • 13