Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "build manager" for scala in the scala ide extensions for Eclipse?

In Eclipse in Preferences -> Scala -> Compiler -> Build manager, I can select a "buildmanager." What is the difference between "refined" and "sbt"?

Also, is this some method to integrate an sbt build file into the Eclipse IDE?

like image 811
Wren T. Avatar asked Aug 27 '12 21:08

Wren T.


People also ask

How to add scala nature in Eclipse?

Right click on the project in the Package Explorer and then select Configure => Add Scala Nature. This will update the . classpath and . project files correctly, and will add scala.

Does scala work on Eclipse?

Scala IDE. The Scala IDE for Eclipse is centered around seamless integration with the Eclipse Java tools, providing many of the features Eclipse users have come to expect including, Support for mixed ...

How do I run scala IDE?

To launch scalac from Eclipse you need to create a Run Configuration, from Run → Run Configurations. Choose Scala Application and set the main class to scala. tools.


1 Answers

ScalaIDE has two build managers, basically they are interfaces between the eclipse model and the scala compiler, they have to do things like work out which resources need re-compiling and how that affects dependent code. Refined is a refined version of the original interface and sbt is, well, sbt.

SBT is the default now, and I expect refined will go away at some point.

Unfortunately the build manager is very much under the hood. There is no real eclipse project->sbt integration yet. There is an eclipse plugin for sbt which allows you to generate eclipse project files but no tight integration from an eclipse project to sbt akin to IvyDE or m2e.

You can use sbt deliver-local to create an ivy file of dependencies, and use IvyDE to keep your classpath containers up to date - that's about as good as it gets at the moment.

I wouldn't be surprised to see this situation improve though - check out the roadmap.

like image 134
Brian Smith Avatar answered Sep 30 '22 11:09

Brian Smith