libGDX + IntelliJ = :(

Sooo I’ve recently switched from Eclipse to IntelliJ IDEA because (I feel) IntelliJ is much better. :smiley: But one thing might make me move back to Eclipse: it’s freakin’ hard to make a libGDX project in IntelliJ.

I followed the instructions to make a libGDX project in IntelliJ and it worked. But to do that for every libGDX project takes waaaay too much time. I tried to use the one libGDX project as a base and import that project as a new project but it didn’t copy over any of the modules (Android, Desktop, and Main). Also, it’s not written how to make the iOS module.

For anyone who uses IntelliJ and libGDX: Please help. :frowning: This IDE works wonders better than Eclipse and looks nicer too (Darcula theme FTW ;D) and I’d hate to have to switch back to Eclipse because of this. Thanks in advance!

Does this not work?

http://www.jetbrains.com/idea/webhelp/importing-eclipse-projects-into-intellij-idea.html

Kind of - but not really. The assets folder isn’t linked and I can’t import the HTML and iOS modules (the HTML problems are probably because I didn’t setup any of the GWT stuff :P). But if I can get the assets folder working, that’s a muuuuch faster way to get everything setup; despite not having iOS.

Seriously, get Eclipse :slight_smile:

Not everyone loves eclipse though… I personally hate the themes on eclipse, they never just look right, but I love eclipse in general. I’ve heard a lot of fanfare surrounding IDEA though, so I might check it out.

I don’t know how to link assets to a project in IDEA, but I imagine Google knows.

What about following along in
https://code.google.com/p/libgdx/wiki/IntelliJIDEALibgdx

It mentions in #12
Link the assets between Android module and Main module:
Make a run configuration for the DesktopStarter and set the Working directory to be the Android/assets directory.
OR
Create a directory named data in the main module, and make a sym-link from the assets directory in the Android module.

They both work fine. Also if you scroll down, it can show you how to make a sym-link at http://matsemann.com/host/libgdx/symlink.png

Also look into “Artifacts” with IntelliJ

I tried IDEA a couple days ago. It’s disorienting coming from Eclipse, but in less than 10 minutes I had libgdx running (by importing Eclipse projects and then fixing up a few issues). I like the idea of having more and fancier completions and other smarts, I just can’t get over how ugly the Swing stuff is. Also the IDE is a bit slow. Some stuff I do is annoying in IDEA or even impossible, such as run configuration specific classpaths.

Yeah exactly. Performance and Themes were my interest too. I heard stuff about better completion and stuff, but haven’t seen it so far.

Did the same but gave up within those 10 minutes of meddling with the imports/assets/project settings. i mean I dont really NEED another IDE so that little annoyance was enough :smiley:

Well those things are pretty much killing my enthusiasm, especially considering I wanted IDEA to be FASTER, not slower.

Also I like to raise the question: Isn’t the eclipse compiler “better” than the stock jdk javac ?


So, uh, eclipse compiler lets you run a program with code that isn’t properly compiled as long as you don’t touch that piece of code.

@namrog
Thanks! I used the working directory method that last night and it worked wonderfully.

I love Eclipse. I’ve used it for over two years now. But there were too many minor issues that piled up and made me want to switch. I’m still not 100% certain I want to stick with IntelliJ, though, since Eclipse has more support.

Ah yes right.
Debug hot swapping - its very useful, changing code on the fly, especially positioning stuff

Hot swapping is possibly one of those things that would prevent me from switching IDEs. Such a useful feature. Plus, I just started learning all the keyboard shortcuts and I dont want to learn new ones!

Come in right time. Now go give Mario big hug and French kiss.

Yet again ReBirth, you just gave me another what the hell moment! :slight_smile:

@opiop65
Whoa hey, hot-swapping is a JVM feature, not Eclipse feature. IntelliJ IDEA supports hot-swapping.
IntelliJ IDEA also has support for Eclipse’s compiler.
Lastly, to hammer another nail in Eclipse’s coffin for you, you can set IntelliJ IDEA’s keymap to Eclipse’s (which is what I’ve done).

:slight_smile:

It is isnt it? I kept thinking that the JVM supported it while I was writing that post, but I didnt bother looking it up!! Now I look stupid oops :slight_smile:
And yeah I can remap the keys but then I don’t have a good reason to stay with eclipse so I’ll just pretend you didn’t just tell me that :wink:

I would have switched to IDEA if it’s not sooo darm slow.

I’m not going to voice an opinion about what IDE is better (because I find getting emotionally attached to a piece of software quite useless), but it is worth to investigate the features of the JVMs debugger. I even set it up to be able to debug a Maven build, and to hook into the debugging environment of not my own IDE but that of a coworker. In stead of having to walk over to his computer, I can just make the IDE connect a debugging session to his environment and he can trigger the breakpoints to show me in my own IDE what is happening :slight_smile: Mighty useful stuff. Imagine having a web environment running somewhere and the production server is causing problems you are not getting in development; you can hook up a debugger to the production machine and see what is going on. God I love Java.

For me:


LibGdx + NetBeans = null
LibGdx + IntelliJ = null
LibGdx + Eclipse  = null

LWJGL + NetBeans = null
LWJGL + IntelliJ = null
LWJGL + Eclipse  = NaN

cause I’ve never tried LibGdx. I didn’t like NetBeans. I can’t buy IntelliJ. I can happily use Eclipse, yay!

IntelliJ IDEA community edition is free! The paid version shouldn’t have anything you need :slight_smile: