When I run engine.scala nothing happens - eclipse

I'm using gatling and scala ans eclipse as an editor, when I click on Engine.scala to run it nothing happen, I dont know why ?

ScalaIDE (the Eclipse plugin for Scala) seems to be dead. You should either run from the command line with maven (mvn gatling:test) or switch to IntelliJ (that has great built-in support for Scala).

Related

Show build output when running a Java project in NetBeans

I created a small Java project in NetBeans. When I run it, there appears no compiler log.
I'd like to see the compiler output even when I decide to run the project. How can I enable it?
In NetBeans Menu/Window/Output

Should I install Scala separately for command line and Eclipse IDE?

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.

Access the Eclipse Scala compiler from the terminal

I'm just starting out with Scala (trying to setup Eclipse, Lift and SBT on Mac Lion) and I'm not sure if I need the scala compiler through homebrew or can I just use the built in Eclipse Scala compiler through Eclipse and (if I also need to) through the Terminal.
If that's a good idea, how do I run it through the terminal ?
You won't be able to access the Eclipse-IDE scala compiler through terminal, so if you want terminal access, you should install a standalone scala interpreter separately.
While you don't technically need terminal access since Eclipse will compile everything for you and you can run the interpreter through Eclipse (Window -> Show View -> Scala Interpreter), I like to have the option, so I always have a separate installation of the same version of the compiler that Eclipse uses.
Instead if installing scala, I normally have a blank sbt project, and start the scala REPL by doing
sbt console
This allows me to easily change scala versions and if I add dependencies to the project, they will be added to the console classpath.

How to run scala BDD tests in Eclipse IDE

I'm trying to run this sample BDD test examples in my Eclipse IDE, but seems that in Run Configurations there are not suitable propositions for that? Also I couldn't find any suitable perspective for that.
What I'm supposed to do to run that test in my Eclipse IDE?
I'm aware that I can run a test (or set of tests) with the command line, but is there some integrated solutions in the Eclipse IDE?
This article explains how to run scalatest tests in eclipse.

Groovy + Eclipse

I have a simple question regarding groovy with eclipse. I downloaded the plugin as mentioned and i didnt have problems with installations but i have compiler errors in hello p. the problem in my opinion that eclipse isnot using the groovy compiler. but i have no idea what to do
Is the filename extension .groovy?
Are you sure the project has the Groovy nature? (right-click on the project, and ensure Remove Groovy Nature appears. If Add Groovy nature appears, then the project doesn't have a groovy nature, and therefore the groovy compiler won't work).
Could you also post the file that isn't compiling. There might be something wrong with what you typed.
Make sure you are opening the file in a Groovy editor.
Look for any exceptions in your error log.
Also, just in case, you can try uninstalling and reinstalling the plugin. I'd recommend using the latest milestone version as that one is about to be promoted to 2.1.2 final.
http://dist.springsource.org/milestone/GRECLIPSE/e3.6/
I confirmed that Groovy plugin isnot workingn on mac. I tried it on 2 machines and they are giving the same error. Groovy plugin is working on windows without problems :)
NetBeans is a better option for Groovy+Java development. You can mix Java and Groovy files in a Java project in NetBeans. It also creates a distributable jar for your project. No classpath and jar issues with NetBeans created MET-INF file.