How I can run several SBT consoles in Intellij IDEA 12? I need it because I want to run 3 project modules, but when I run first it blocks SBT console until I kill process. I can achieve same result using 3 command line windows (cmd) but I want to run all from IDE.
P.S. I have installed sbt plugin.
You could open multiple terminal windows in the IDE and use SBT (see highlighted area):
Related
I am using Scala version 2.10 and SBT version 0.13.8. To build a project I am currently executing the sbt commands through the Intellij terminal but I would like to know the use of SBT Tasks window on the right hand side of intellij idea window. Kindly have a look at the screenshot uploaded
How can I run SBT tasks (compile, run, package) in Intellij from SBT Tasks? Is my intellij configuration correct?
It looks like you're using an older version of IntelliJ IDEA. That the window displays "tasks" is probably a bug, because running tasks from this window is currently not supported by the Scala Plugin. I still recommend upgrading IDEA to version 2016.3, which also supports a newer version of the plugin.
Instead, you can run them from the terminal as you do now, or create a run configuration clicking on Run -> Edit Configurations. Then click the + button to add a new configuration and choose SBT Task from the list, and entering the tasks you would like to run.
Side note: When using sbt for your projects, the Scala version installed on the system doesn't matter. In fact, it doesn't even need to be installed.
I have recently switched computers and am trying to get ScalaTest to run in my ScalaIDE again.
When I right click on the file in the project explorer, or when I right click on the code in the editor, I can see the "Run As" option in the drop down menu, but the only option available is "Run Configurations."
I can create my own run configuration manually, and run the test just fine, and then have a run configuration that I can run from the Run icon in the toolbar, but I don't what to have to create one of these for each tests.
Here is what I have so far, and would be grateful if anybody could provide any additional ideas:
Verified that ScalaTest library is being added to the project via SBT.
Verified that the Plugin is indeed installed (and re-installed multiple times)
Verified that I can run the tests from command line, in addition to my manually configuration in Eclipse.
Ran eclipse with -clean command
Tried running eclipse as root, and re-installing plugin while running as root.
Tried giving all access to all directories in Eclipse.app directory
Compared my setup to a co-worker who also recently set up his computer with the same image, and should have very similar versions of Scala, ScalaIDE, and ScalaTest plugin.
Created a new workspace and reimported my projects into that workspace.
cleared ivy cache and rebuild eclipse project.
My system:
OSX: Yosemite 10.10.5
Scala: 2.11.6
JRE: 1.8.0
ScalaIDE: 4.1.1-vfinal-20150727-1320-Typesafe
ScalaTest Plugin: 2.9.3.v-4-2_11-201509031342-a29ebef
This morning there was an updated ScalaTest Plugin:
2.9.3.v-4-2_11-201509221346-a29ebef
After updating, everything works fine!
I'll leave this here, as I'm thinking that the steps I took in my question seem to encompass most of the recommended steps that I have seen from various other StackOverflow errors.
I've installed Scala IDE for Eclipse using the update mechanism, and then I found that there's no command line tools included there. So is it correct that I should download another copy of Scala package for the command line support and maintain both separately?
Or is there an integrated way to get it work in both environments? I just want to write and debug code in Eclipse and occasionally run it on the command line.
First, you can open a Scala command-line within Eclipse. Just go to Window -> Show View -> Scala Interpreter, and it will open an interpreter window that has your project loaded into the classpath.
Second, there's nothing wrong with having a separate Scala installation for command-line use. I do this. It's often convenient to have a few terminal windows where you can run stuff or quickly test bits of code.
You need to install the scala compiler first. Otherwise you can not use the eclipse plugin. If you have installed the scala compiler, you just need to add it to your classpath. Now you can type scala into any terminal you are using and the REPL starts.
I want to send my project I made in eclipse to others, so I tried running the project in my workspace. But I don't have a software to run it.(besides eclipse) What software should I use?
I don't have a software to run it.(besides eclipse) What software should I use?
You should use Java. Eclipse is just an IDE, so it doesn't run your Java programs. Java does. Export your program as a JAR, and if you have Java installed, you can run the JAR by double-clicking on it, or by running it from the command line:
java -jar file.jar
First Step
Second Step
Third step
voilĂ !
I work on web applications with eclipse which means each time I modify server side code I have to run maven clean install then start my server again. I have run configurations for these both steps in eclipse but need to wait for the first one to finish before starting the second one.
I have also other cases when I need to run maven clean install on 5 or 6 projects in a given order after having updated all of them.
So my question is: does anybody know how to define sequels of runs and run them in the right order on one click in Eclipse (i'm using Indigo). I didn't found any plugin nor help on my favorite search engine.
You can write an Ant-script which wraps the Maven commands (with using Maven Ant Tasks) in the correct order. Then you can create a launch configuration for that Ant script in Eclipse.
Or just write a shell script and create an launch configuration for that in Eclipse.