This question already has an answer here:
IntelliJ IDEA plugin development in other JVM languages
(1 answer)
Closed 9 years ago.
Pretty straightforward: I'm allergic to Java but want to write a plugin for IntelliJ. Is this possible?
It wants me to set up a project SDK, but it only allows for Java SDKs, not Scala. Since they both run in JVM, I don't see why using Scala would be a problem.
Scala plugin for IntelliJ IDEA has 85% Scala code, so yes it's possible. You can take a look for our configuration: https://github.com/JetBrains/intellij-scala
Together with setup description you will be able to setup plugin development for your plugin: http://confluence.jetbrains.com/display/SCA/Setting+up+Scala+plugin+project+in+IntelliJ+IDEA
Related
I followed this guide: http://lamplmscore.epfl.ch/mediawiki/index.php/Eclipse_IDE_with_Scala-virtualized
in order to use the virtualized (-Yvirtualize ) plugin inside the eclipse compiler. This works for a nightly build of Scala 2.10 which is old and lacks features like implicit classes. Does anyone know of a way to work with newer versions of Scala with the virtualize plugin AND eclipse?
Sorry to be bringing bad news:
The Eclipse IDE for Scala-virtualized has not been updated in the last 2 years, so it's not expected to be usable (Source: I maintained the EclipseIDE for scala-virtualized) -- I updated the wiki.
Regarding 2.11, please see Alexey's comment (and answer) below.
Scala-virtualized has been updated to 2.11.2 now. You can definitely use it in IDEA, at least (just make sure the Scala-virtualized scala-{library,reflect,compiler}.jar are above the non-virtualized versions in Dependencies tab under Project Settings -> Modules). I don't know if you can use it in Eclipse, but it might be possible using Scala installations support (see under BYOS (Bring Your Own Scala)).
Can someone explain me how to import your idea project for Play2 support on Intellij 12?
I've just bought the upgrade from version 10 to 12. It used to work fine with Intellij 10 (with scala support only). When using play idea and importing the project on Intellij 12 it doesn't seem to work, there is no more highlighting, even in scala files that were actually working with version 10.
It seems I'm not the only one to have troubles with Play2 support in Intellij 12 so if someone can help it would be nice :)
Please check that you have installed Scala and Play 2.0 Support plug-ins from the repository.
Then check that .scala extension is assigned to Scala Files in Settings | File Types.
See also these links:
Getting Started with Play 2.0 in IntelliJ IDEA 12
Play Framework 2.0 Tutorial
Well, importing an existing Play 2 project with IntelliJ is still not very easy, even with the new Play plug-in.
Upvote this issue to get a nice Import utility for your existing Play 2 projects.
http://youtrack.jetbrains.com/issue/SCL-5209
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Testng, Emma, Cobertura, coverage and JDK 7 result in ClassFormatError and VerifyError
I have recently moved JDK6 to JDK7.In my eclipse i have installed emma plugin for code coverage.Its works fine in jdk1.6.Now I have used JDK7.But Its does not works.I have googled and searching some of code coverage tools like,
1.emma
2.Jacoco
3.cobertura
but none of them support JDK1.7.
can anyone tell me which tool support JDK1.7 for both windows and linux platform?
I think compare to other emma is better one.but it doesnot support.
Thanks in advance.
I don't use code coverage. But Google CodePro AnalytiX works with Eclipse and includes code coverage. Apparently based on EMMA, and I do not know if it works with Java 7. But it's worth a try.
According the the paper "EclEmma 2.0", Jacoco (that you looked) is supposed to work with Java 1.7.
(see all Jacoco releases here)
Java Runtime: As JaCoCo requires Java 1.5 the same minimum JRE is required for the Eclipse instance running EclEmma and the application under test.
Note that this does not apply to the Java class files under test: Any class file version ranging from Java 1.0 to 1.7 is possible.
The latest changes history mentions:
Release 0.6.0 (2012/10/06)
New Features
Full support for Java 7 including INVOKEDYNAMIC as JaCoCo is now based on ASM 4.0 (GitHub #5).
(since then, 0.6.1, 2012/12/19 has been released)
Currently I'm using Scala IDE, and the version of Scala it's using for my project is 2.9.2. Preferably I'd like to choose 2.8.1, and am not sure how to select a version of the Scala Library.
Is there any way to change the version?
Thanks!
http://scala-ide.org/docs/user/gettingstarted.html
"The list of URLs of the different update sites are available in the download area. The release ones are in the current section. Scala IDE is linked to specific version of Scala, so you have to decide which one you are going to use:
release-29 provides support for projects using Scala 2.9.x (2.9.0-1 or 2.9.1). This is the current version of Scala. Pick this one if you are unsure.
release-28 provides support for projects using Scala 2.8.x (2.8.1 or 2.8.2)."
So you have to install release-28 Scala IDE to compile your Scala project with version 2.8.1 .
The release site can be found here:
http://scala-ide.org/download/current.html
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Call JUnit from other Eclipse Plugin
In my Eclipse custom plugin, I can do the unit test with junit. I want to show the results on Junit plugin's view. How to call code in Junit plugin in my custom plugin? Thanks.
Either create a TestSuite and fake out the tests to generate your desired output or try to reuse the console part of the junit plugin.
otherwise your only other choice is to patch the junit plugin which is not recommended because you can screw up the plugin and it is difficult to garauntee will run the same on all versions of eclipse.