Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know this isn't exactly what you're looking for, but putting it here as a work-around for working with SBT in eclipse for whoever is interested.</p> <p>SBT generates eclipse config files, but after you import it, it works fine from within eclipse. You just need to set up the project for the first time outside of Eclipse, run SBT to resolve dependencies, generate eclipse structure using the eclipse sbt plugin and import into Eclipse. After that, you can run the code directly from Eclipse and it works fine.</p> <p>Here're the steps in detail:</p> <ol> <li><p>Create the folder structure as follows: <img src="https://i.stack.imgur.com/cTJLa.jpg" alt="ScalaSBTProject"></p></li> <li><p>Create a file called <code>plugins.sbt</code> in the <code>project</code> folder and add the following line to it:</p> <pre><code>addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0") </code></pre></li> <li><p>Create <code>build.sbt</code> in the root directory i.e. <code>ScalaSBTProject</code> with content similar to the following. I'm using akka here, but add and remove libraries as you require:</p> <pre><code>name := "ScalaSBTProject" version := "1.0" scalaVersion := "2.10.0-RC2" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesafe.akka" % "akka-cluster-experimental_2.10.0-RC2" % "2.1.0-RC2" </code></pre></li> <li><p>Open command prompt and run <code>sbt</code> in the directory <code>ScalaSBTProject</code>. SBT will download and resolve whatever dependencies are required</p></li> <li><p>Run the command <code>eclipse</code> at the SBT command line. This will generate all the eclipse related project files</p></li> <li><p>Import <code>ScalaSBTProject</code> into Eclipse using <code>File-&gt;Import-&gt;Existing Project</code> to workspace, and make sure you check <code>Import into workspace</code></p></li> </ol> <p>EDIT: Just as a Post-Script, you can quite easily create a batch file to take the name of the project and generate the eclipse compatible project, just a way to speed up the process.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload