sbt / sbt-eclipse

Plugin for sbt to create Eclipse project definitions
Apache License 2.0
717 stars 167 forks source link

sbteclipse doesn't support scala compiler version setting #287

Open elyast opened 9 years ago

elyast commented 9 years ago

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
benmccann commented 8 years ago

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

unxia commented 7 years ago

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.

javabrett commented 6 years ago

/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 .

oharboe commented 6 years ago

Any news on this one? I hit it too.