intellij-idea

Error running rake task from IDE

I am having a problem running the 'test' Rake task from IntelliJ Idea in Ruby On Rails application: *Error running test: File 'test/unit/autorunner.rb' wasnt found in $LOAD_PATH of Ruby SDK with interpreter: '{1}'* But the file is located at %RUBY_HOME%/lib/ruby/1.8/test/unit and I have no problems when running other rake tasks. Plea...

show all warnings in IntelliJ

Hi, In my IntelliJ project, warnings/errors in the currently open file are shown with yellow/red markings in the ruler on the right-hand side of the editor. Is there anywhere I can easily see all errors warnings in the current project? The project is a Grails project, in case that makes any difference. Thanks, Don ...

Merges on IntelliJ IDEA .IPR and .IWS files

We keep our IntelliJ .IPR and .IWS files in our source control, but they keep getting modified by IntelliJ just by opening them, even without any work being done on the project. What are we doing wrong? ...

Is it possible to specify which network interface for a JVM ( or IDE ) to use

The situation goes like this, I have two network interfaces in my macbook pro. One is a statically defined Ethernet interface and the other one is a DHCP configured wireless interface. I am trying to figure out how to configure a specific java project to use my statically wired interface only and not simply pick the first one in the lis...

Why can't I drag execution point in IntelliJ (I can in Visual Studio)

In Visual Studio, when debugging, one can drag the execution point (current instruction pointer, yellow dot) to another place in the current method. This is impossible in IntelliJ, and some have stated it's generally impossible in Java. Why? ...

Keyboard shortcut for 'refactor' for IntelliJ IDEA

In Visual Studio (using IDEA key mapping), CTRL-SHIFT-R brings up the Refactor menu. How do I do the same in IntelliJ ? ...

Correct way to add lib/*.jar to an IntelliJ IDEA project?

When creating a new Java project in IntelliJ IDEA, the following directories and files are created: ./projectname.iml ./projectname.ipr ./projectname.iws ./src/ I want to configure IntellJ to include my dependency JARs in ./lib/*.jar to the project. What is the correct way to achieve this in IntelliJ IDEA? Yes - I'm an IntelliJ IDEA ...

Running Ant script in IntelliJ results in script opening in editor...

I've got a custom ant script for building and other fun stuff. IntelliJ has very nice integration for handling Ant tasks. However, every time I run a task IntelliJ opens the script in my editor panel. It moves to the line of the task I'm running and then I close it; actually I now have it in its own panel, minimized to the max. Is t...

CSS Files Don't Refresh with Wicket (Launched in Intellij via Start.java)

I have create a skeleton Wicket project using mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc4 -DgroupId=com.mycompany -DartifactId=myproject All the configuration/importing new project with Maven/Intellij worked fine. I proceeded to add a basic CSS ...

Using a 'lib' directory with intellj IDEA (v6)

I've got an Ant task (using the maven task) set up to automatically download all my Java apps dependencies and consolidate them into a lib directory, but I cant see a way to tell IntelliJ to basically treat everything in that dir as an external lib - I have to manually add them all to my project. This rather defeats the object of automa...

Using Eclipse for Intellij Idea projects

I like Eclipse and I want to use it, the problem is that I can't figure out a simple and fast way to configure projects once checked out from svn. All projects I work with have several modules and are configured with a top folder which contains four folders: the build output, libs, main and profiles. In detail: libs contains comp...

Problem outputting unicode in Java

I'm trying to write unicode characters (♠) using System.out, and a question mark gets printed instead. I'm using IntelliJ on Windows, and trying to print within the IDE. ...

How to build jars from IntelliJ properly?

I have a project that contains a single module, and some dependencies. I'd like to create a jar, in a separate directory, that contains the compiled module. In addition, I'd like to have the dependencies present beside my module. No matter how I twist IntelliJ's "build jar" process, the output of my module appears empty (besides a META-...

Locate current file in IntelliJ

How do I locate the current file in the project structure? (Similar to Visual Studio's Ctrl-Alt-L). What is the name of the operation (so I can define it in the keymap) ...

Upgrading IntelliJ from Grails 1.1 to Grails 1.1.1.

I've recently upgraded from Grails 1.1 to Grails 1.1.1. I've updated my projects accordingly using "grails upgrade". However, IntelliJ does not seem to have picked up the upgrade so when opening my Grails project I get the following dialog: Application has Grails version 1.1.1, but current Grails version is 1.1. Upgrade application?...

Breaking on your own exceptions in IntelliJ

See this question on how to break on any exceptions. I'm getting a million exceptions on startup. I've tried ignoring ClassNotFoundException, but it's no good, the IDE still seems to break on these (and other) exceptions. So .. what's a decent configuration for this to catch only real exceptions caught from user code? (Ignore also any ...

How to improve Intellij 8?

Is there a way to improve the intellisense of intellij? I love how visual Studio intellisense works by making suggestions as you type. ...

Intellij Idea "Move refactoring" with Junit tests

Seems when I make "move" refactoring all my junit tests lays on its old place. Often I tests "package" visible classes, so they becomes invisible, if SUT moves to another package. Do you move tests by hand? ...

How much can IntelliJ's CSS on-the-fly validation do?

I've been looking into IntelliJ's advanced features, specifically its on-the-fly CSS validation (their site says that it can find "Unused CSS class definitions") to help us clean up our massive CSS files in our hundreds of JSP pages. IntelliJ has so many features and seems to be pushing the envelope in many ways but how much can IntelliJ...

Navigate to Next Error (in project) and Realtime Error Count in Intellij IDEA

Hey guys, Using Resharper in Visual Studio, I have a visual display of the current amount of errors in my project in the bottom right corner (when real time code analysis is turned on). I can cycle through these errors using Alt-f12. I've starting using Intellij recently, and although most of the hotkeys are the same. I can't seem to ...