sbt-eclipse icon indicating copy to clipboard operation
sbt-eclipse copied to clipboard

sbteclipse doesn't support scala compiler version setting

Open elyast opened this issue 9 years ago • 4 comments

Based on scala version sbteclipse should append following properties into

e.g. for scala version 2.10 projects

.settings/org.scala-ide.sdt.core.prefs

scala.compiler.additionalParams=...-Xsource\:2.10
scala.compiler.installation=2.10

elyast avatar Jun 10 '15 18:06 elyast

Here's the same bug for gradle: https://discuss.gradle.org/t/eclipse-plugin-does-not-set-scala-version/17852

benmccann avatar May 31 '16 21:05 benmccann

I develop scala with maven in eclipse. Eclipse's setting scala compiler version(also used in build path) should be the same with scala-library version, or cause "Error: Could not find or load main class", I always change build path by hand to match scala-library version, it's fussy. sbteclipse supports compiler version setting will be better.

unxia avatar Oct 12 '16 02:10 unxia

/cc #239 which seems to contain a partial fix for this, but will only work for exact version 2.10, which is unfortunate. Ref commit 1bbf64c0cf8a9942afb56bcd228179d1019f0b9e .

javabrett avatar Oct 12 '17 05:10 javabrett

Any news on this one? I hit it too.

oharboe avatar Feb 22 '18 10:02 oharboe