I am building a small Java code analysis tool and wonder if I could use the amazing IntelliJ compiler to get an AST for Java projects?
IntelliJ has open sourced the community edition some years ago under the Apache 2 license. Can the project also be used as a library in a Java standalone project (instead of a plugin for a full IDE) to analyze Java projects? The Git repository is quite big and I am grateful for any hints or links where to start.
(I have already read about the Eclipse JDT but creating my own Mini-ANTLR-Java-parser was much easier than getting the Eclipse JDT to work for me. But it would be amazing if I could use a more sophisticated, always up-to-date version of a Java AST for my project. So my hopes are in the IntelliJ compiler.)
Related
Being a noob with JavaFX, and having fallen in love with Gluon's 4 Netbeans project templates, I hope to make some minor changes. However, there are no avenues for making slight modifications to the templates.
For example, all 4 of the templates generate a maven pom file with Java version 11 hardcoded. I'd like to change that to 17 as it is tedious to manually change the pom file each time I use one of the plugins.
If the source were available, I could make that change (and others), and re-install locally.
You can the source code for the templates used by the Gluon IDE plugins here:
https://github.com/gluonhq/ide-plugin-templates
And you can find the Gluon IDE plugins source code here:
https://github.com/gluonhq/ide-plugins
Gluon integration with Java IDEs. The repository contains Gluon plugin source for the following IDEs:
Eclipse
IntelliJ IDEA
Apache Netbeans
Related docs: https://docs.gluonhq.com/#_ide_plugins
You can do changes and test locally, of course, but being an open source project, issues and pull requests are welcome.
The same question was asked 3 years ago. However, the answer from that time is no longer valid.
I have the last stable version of Debian and the last version of Eclipse (2020-03) running on it. I have a Java Play 2.8 project which sbt compiles and runs just fine. I am able to edit all source files (.java code and .scala.html templates) in Eclipse. However, template files in the Eclipse editor look like ordinary text opened in Notepad: no syntax highlighting, no syntax checking. Editing cmplicated template files without any help from the IDE is very painful.
In the past I was able to download Scala IDE plugin with Play support from Scala IDE project. However, Scala plugin for Eclipse seems to be gone (it's not being developed any more). My tries to install the last version of the plugin have failed.
What is the right way to edit Play templates in Eclipse right now? I need at least syntax highlighting, syntax checking is not critical.
i use eclipse on Linux mint cinnamon, the same version as yours.
in the eclipse marketplace, i can see a plugin is available which can be used for this purpose,
in eclipse, Help->Eclipse Marketplace and then search for Scala IDE 4.7.x and install it.
hopefully this will work.
I have IntelliJ community 14.14 installed and Scala plugin 1.5.2.
I have created a play project using activator new and I imported it into IntelliJ, but it doesn't recognize the views. I have tried searching all over, but did not find a solution.
When I right click on the project and choose Add Framework Support I don't find Play. I only find Maven, Groovy, Scala
Play framework isn't supported in IntelliJ community edition.You need the ultimate version for that purpose and you can read about it on the editions comparison matrix.
Link to GIT src : https://github.com/chapmanb/bcbio.variation
I would like to use an IDE like eclipse, IntelliJ or Netbeans.
The code uses clojure and java.
the Cursive plugin for IntelliJ is an extremely popular IDE for Clojure. It has most of or all the features you'd expect in a modern IDE (keep in mind that it's relatively new). Emacs with Cider is also very popular and is the defacto standard for clojure development.
The second tool you need to be aware of is Leiningen Which if the universally accepted build and project tool for Clojure. It is used by Cursive and all the other popular tools.
Happy Hacking!
Is anyone having success mixing scala and java files in IntelliJ?
I am getting way too many strange errors...
Here:
https://stackoverflow.com/questions/27516673/cannot-run-file-located-outside-of-main-module-intellij-14-java-scala
And Here:
IntelliJ 14 Java and Scala ClassNotFoundException
Files are mixed in same module.
Many posts online from -2011 are claiming the same sort of strange issues with mixing in the same project. I feel real uneasy approaching scala if this has remained unresolved for years with no real articles explaining why.
I could be wrong, so I am asking the community for their experience.
The answer is yes, I have Apache Spark project (https://github.com/apache/spark) in my IntelliJ.
It uses standard maven directory that has java and scala directories under src/main of module directory.
Yes. I have several projects running in Intellij. Intellij does a good job of supporting mixed Java / Scala projects. I am not sure of any other IDE that better supports this.
If you are using scala IDE for eclipse, i suggest you to try Intellij.
Check the screen shot: