Intellij IDEA: Import existing Play project - intellij-idea

Just changed my laptop and started install all required software and setup an environment. I've installed Java, Actiator,... Intellij IDEA 14 Community edition (with Scala plugin).
When I import my Play project I don't see any directory in IDEA (app, conf, test...), only roots file.
Does someone know the reason of this?
Thanks

You need to wait until IntelliJ indexes/downloads/etc... everything, it will take a while the first time but after it will appear.
(Happened to me last night).
If when it finish loading it still doesn't appear consider using sbt-idea plugin for sbt.

Related

IntelliJ IDEA Ultimate with Play Framework 2.6.7 Java imports 'symbol not resolved'

Be it an example project, freshly downloaded from Play Framework's website, or my project which is derived from that with a few changes to templates - nothing big - IntelliJ just can't seem to find the appropriate dependencies or sources necessary for Play development.
I've already installed Scala plugin for IntelliJ, which includes support for Play Framework. I'll outline the process that I've followed, after reading multiple articles from Play's documentation as well as questions asked on here though no answer has proven incredibly useful as yet.
Open Project Settings within IntelliJ IDEA Ultimate 2017.2.6
Click Modules > [+] > Import Module
Find build.sbt within project root
Import with default SBT settings:
Download: [checked] Library sources, [checked] SBT source
[unchecked] Use SBT shell for build and import (requires sbt 0.13.5+)
Project JDK: [9.0 (java version 9.0.1)] -- Could this be the problem? (compatibility)
SBT compiles and I get this error, which I somewhat dismissed but reading it now seems to be somewhat telltale but I am unsure of what: https://pastebin.com/tXbHQdek
Running the site works, using sbt run, but when opening .java sources, IntelliJ marks errors upon import play.mvc.* though import views.html.* works fine. Adding framework support for Play 2.x seems to do next to nothing, as no project settings seem to change, and the error is not resolved.
This behavior exists with a clean IntelliJ 2017 Ultimate install (as of today) and an example project from Play Framework with no modifications, so if a solution cannot be found I'll probably consider posting an issue on one or more of their issue trackers.
Any ideas on how to get my Play Framework development environment working?
Thanks :3
This did not originally occur to me but in my search through the Play Framework Google group, I found a suggestion on a somewhat recent post to uninstall Java 9 as Play's dependencies are not yet compatible with it and hence won't resolve.
For anyone who might come across this issue, hopefully this saves you some days headbanging:
Optional - Uninstall JDK and JRE 9
Install JDK 8 (comes with JRE)
From within IntelliJ, File > Project Structure > SDKs > [any Java 9 JDK] > [-]
[+] > `Find your JDK 8 installation folder
32 bit: C:/Program Files (x86)/Java/jdk****/
64 bit: C:/Program Files/Java/jdk****/
Where **** is your Java version, such as 1.8_152, as in jdk1.8_152
Press OK. You'll get a warning that the project SDK is missing or similar, so click the link it provides you to configure that and select your newly configured JDK.
Everything should work from there, just straight away after IntelliJ indexes, which can be tracked in the bottom right corner as with all other operation progress.

IntelliJ clean import Hybris project

I'm trying to (re)import a hybris project in IntelliJ with the hybris integration plugin. But every time when I get to the point to select the modules there are none except the project name itself. If I try to ignore that and just press next than I end up with a project without folder / modules.
That problem came after I imported that project ones and then deleted all files that are pointed to IntelliJ.
Is it possible to clean IntelliJ from a whole project with all dependencies etc. so I can import the project like nothing happend before?
v5.4.2 required other plugins which you probably had disabled. such as spring, ant or git.
The best way to get speedy resolution on the intellij hybris plugin is from their jira support portal. Dont forget to register/login first so that you can get an answer.
https://hybris-integration.atlassian.net
Version 5.4.2 is broken. Downgrading to the older one (5.3.1) worked for me and fixed that "no modules when importing"-problem

Can't find C/C++ IntelliJ IDEA Plugin

I'm trying to add a c/c++ plugin to IntelliJ IDEA, so I went to plugins and searched for it but couldn't find it.
Did they remove it and replace it with their new IDE cLion? Is it no longer supported or what?
Looks like the version of your IntelliJ IDEA is newer than what the C/C++ plugin supports. If you look at the plugin page you can see that builds from 139.1 until 142 are compatible. And if you look here you can see that build 141 is IntelliJ 14.1 and IntelliJ IDEA 15 is numbered 143. So my guess is you are using IntelliJ IDEA 15 or 16 EAP and therefore the plugin is not shown when you search for it.
Simply download the cpp plugin of the old 14 version located here:
https://plugins.jetbrains.com/plugin/1373-c-c-
Then edit the file CppTools/META-INF/plugin.xml and replace the "until-build" value in line 5 to something like until-build="170.0"
And this works perfectly :)
One should really note that the "C/C++" plugin available in the IntelliJ Plugin Repository is actually not developed by Jetbrains, but by a third party called AdvancedTools, and has long not been updated. I'm not sure if that is related to the release of CLion, e.g. IntelliJ bought out the plugin to serve as the foundation of CLion or whatnot.
As listed in the CLion FAQ page, there is currently no official standalone plugin for C/C++ editing available for IntelliJ IDEA. Just as with some other products such as Jetbrains AppCode, Jetbrains are currently keeping CLion as an exclusively paid product, without a free community edition, as indicated in this forum post.
The post also confirmed that a plugin for IntelliJ IDEA might be coming in the future, but is currently (Jan 2018) not a priority for JetBrains.
So yeah for now the only way to get decent C/C++ support within the IntelliJ ecosystem is to use/buy JetBrains CLion.
Download latest version of c/c++ extension from link: https://plugins.jetbrains.com/plugin/1373-c-c-
then open that CppTools.zip inside META-INF folder open file plugin.xml modify line five until-build="" from your own intellij idea build. Go to Help --> About in Your Intellij idea.
plugin.xml file screenshot:
Now Go to File --> Settings --> Plugins --> Install plugins from Disk, browse ypur edited/ modified CppTools.zip.
I faced this problem before and i figure out that the software i install it was old and not update, so try to see the plugin version and see is that plugin version compatible with your intellij-idea, if not check update for the intelli-idea ,the developers fix many problems in every update ,then download it.
you can check compatibility from this page.
Here
Click on Preferences -> Plugins -> Browse Repositories and search for it

go lang plugin for Intellij IDEA 14.0.x

Is it possible to setup go language pluing for Intellij IDEA 14.0.3 version?
I tried to download the binary plugin (jar) from https://plugins.jetbrains.com/plugin/5047?pr=idea but the version 0.9.15.3 listed here is old and does not recognize GOROOT and GOPATH.
I tried to build the latest plugin using sources from https://github.com/go-lang-plugin-org/go-lang-idea-plugin using Intellij but failed to setup the SDK.
Is there a latest binary version of the go lang plugin available?
Update to IDEA 14.1+ or use the IntelliJ Community.
Original answer:
You can use the free version of IntelliJ Community with the latest version of the plugin and everything should work fine. Also, Android Studio for example is compatible with the plugin as well.
Unfortunately the plugin has some internal dependencies which makes it hard to port back and maintain for multiple IDEA versions. Hope this helps
It might be not the exact answer your are looking for but their is a separate IDE for go developer . it has some unique features you must try GOLAND First month is free.
I also faced up this problem couple days ago. You can download nightly version of go plugin from this link.
You must install this plugin via browse your download folder not repository

How to properly import a Play 2+ project in IntelliJ 14+ with all integrated features (run, debug, test)?

I work on a Java based Play! project for severals months now and I'd like to import it completely in IntelliJ, meaning being able to run, compile, test and debug from IntelliJ, without the need to use the command line.
According to this post from Jetbrain, it seems to be possible, if I quote the article it says clearly : "Now you don’t need to switch between IntelliJ IDEA and Play console anymore. Everything is available right from your favorite IDE.", but I can't figure out a way to achieve this for now, even if I follow the tutorial provided by Jetbrains.
Here are the steps I've been throught :
Open my fav IDE IntelliJ ;)
Go to the project list window.
Import project
Import from external model and choose SBT as suggested in Jetbrains tutorial.
option "Use auto import" checked, option "create directories for empty content roots automatically" checked. Project SDK Java 1.7
Global sbt settings : JVM From project JDK.
Finish
By now, if I try to make the project and launch it from IntelliJ, I'll get scala compiling errors related to routes object. Thanks to this post, we can understand that this happens because scala routes are located to specific folders that needs to be included in IntelliJ sources settings for this project. So next step was :
File -> Project Structure -> Modules
Add target/scala-2.10/classes:target/scala-2.10/resources_managed:target/scala-2.10/src_managed as sources folders.
But my problem remains the same, routes object being unrecognized.
Notes : I have no scala facets in my project structure configuration nor can add one.
IntelliJ provides integrated support for the Play Framework for Scala and Java. Support is currently only available in IntelliJ Ultimate Edition (see the Frameworks and Technology section).
Assuming Ultimate Edition, the setup for Play is incredibly easy. Simply create a new project by importing build.sbt, then choose Add Framework Support and choose Play 2.
Once complete, you can start and stop Play using the Play 2 Run/Debug configuration. No command line necessary.
Here is a more in depth look at IntelliJ's Play project configuration.
You could try the command play idea if you are using play or activator idea if you are using activator. That will do the magic.