debugging - How to debug a Scala SBT project in IntelliJ 13? -
I never tried to use any type of debugger with Scala and never tried to do some debugging in Intel IZ (as long as I'm using Idea.) To write Scala code now , As I have tried to use this feature to import the SBT project (instead of the old SBT-idea SBT plug-in) and it starts working but I do not know Person running the program in this case and how to debug. Of course, I can use the traditional SBT command line to build and run, but does Idea do not have the basic idea for it now? When I click on run-debug or run-run, I think the first window to be illustrated under the pop-up shows this, as well as the second (project structure window) that is called.
(Note that run Button is disabled (grade) and never goes anywhere capable of doing it)
Why does it complain about the SBT :: Scala-compiler-bundle: 2.11.0 The way the library is not used? What do I have to do to use it? Do not need this compiler / SBT / IDE?
In addition, when I click on Build - the project creates an unusual build process termination exception (java.lang.reflect.InvocationTargetException):
Error: abnormal Construction Process End: Exception in "main" java.lang.reflect.InvocationTargetException in thread. Sun.reflect.NativeMethodAccessorImpl.invoke0 (original method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. Java: 62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke On (method.java:483) org.jetbrains.jps.cmdline.Launcher.main (Launcher) .java: 54) By: java.lang.IllegalStateException: io.netty.util.concurrent.MultithreadEventExecutorGroup is a child Failed to create event loop At Io.netty.channel.MultithreadEventLoopGroup (MultithreadEventExecutorGroup.java:73). (MultithreadEventLoopGroup .java: 51) op on io.netty.channel.nio.NioEventLoopGr (NioEventLoopGroup.java:72) at io.netty.channel.nio.NioEventLoopGroup. (NioEventLoopGroup.java:58) org.jetbrains.jps.cmdline.BuildMain.main (BuildMain.java:77) ... 5 more reasons: io.netty.channel.ChannelException: io.netty.channel.nio.NioEventLoop Failed to open a new selector at .openSelector (NioEventLoop.java:128)
What is I doing wrong?
PS: I am using the latest stable Java, Scala, SBT, and Idea release on this date. In "project structure" it complains about "scala-compiler", such as "
Remove one of the three modules IntelliJ configured on Project Import, it configures a "root" module that contains all the dependencies, a "Root-Build" module and a module on the name of your project Are included. Its solution is to remove the module on the name of your project and add "Scala-compiler-bundle" to your root module. After that my project works perfectly well inside Intelel.
I hope this will help anyone in the future.