intellij-idea

IntelliJ IDEA Grails Not Seeing Jar

Hello, I'm trying to reference a class within IntelliJ IDEA 9.0.2 in a Grails project on a Linux system. I added the dependency to BuildConfig.groovy dependencies { // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. runtime 'mysql:mysql-connector-java:5.1.5' compile 'org...

IntelliJ bad plugin how to start

Hi I have just started using IntelliJ again and have version 9. I just installed the Mecurial plugin and now the ide won't start anymore. Has an error of Fatal error initializing class com.intellij.openapi.actionSystem.ActionManager: java.lang.VerifyError: class com.dcx.hg.MercurialVcs overrides final method getName.()Ljava/lang/String...

Should I upgrade to Intellij Ultimate Edition?

I am working in java and primarily Scala. I'm using the community edition of Intellij. I'm curious if its worth it to upgrade to the Ultimate Edition? I've been back and forth with Intellij and Eclipse... and for Scala dev I like Intellij a little bit better (for now). Thanks in advance... ...

IntelliJ 9 and Android - Filtering LogCat

Hello, Having got fed up with Eclipse I switched my IDE over to IntelliJ and so far have not looked back (Granted only been using it for a day or so). I never used ADT drag and drop layout editing either preferring to code my XML layouts by hand or in DroidDraw, so this was never a problem. However, one thing I do miss is the ability t...

FlexUnit4 in IntelliJ

When I try to run test with FlexUnit4 and IntelliJ, I get this error: SecurityError: Error #2148: SWF file file:///C|/Users/LIC/Projects/ProgramJef/out/production/Flex%2DClient%2DTests/%5Fflexunit.swf cannot access local resource file:///C|/Users/LIC/Projects/ProgramJef/out/production/Flex%2DClient%2DTests/textLayout_1.1.0.604.swf. Only...

How to configure IntelliJ for running test with JUnit 4?

Should be simple but I couldn't figure it out. When running my unit test inside IntelliJ, I could not find a way to tell IntelliJ-9.0 that it should use JUnit4 instead of JUnit3. When a test fails, IntelliJ console displays: MyTests.testConstraints(MyTests.groovy:20) at ... com.intellij.junit3.JUnit3IdeaTestRunner.doRun(...

Module dependencies in IntelliJ while importing an Eclipse-project

I'm working in a project where the main IDE is Eclipse. The Eclipse workspace is made up of several projects that depend on each other in a chain like so: lib-project with all external dep endencies jar-files and stuff ProjectA depends on lib-project ProjectB depends on project A ProjectC depends on project B etc I think (someone cor...

Add a new file in Intellij doesn't add to subversion

I'm not sure what I did to cause this, but adding a new file or package in IntelliJ now doesn't add them to subversion, and I have to add them manually via right-click -> subverion -> add. Is there a setting that controls this behaviour? ...

Simple way to reorder methods of a Java class in IntelliJ?

Is there a simpler way of reordering methods within a class source file in IntelliJ than cutting and pasting the code manually? Nowadays I often need this while refactoring legacy code, e.g. to move related methods close to each other in the source code. In Eclipse AFAIK there is a view similar to the Structure view of IntelliJ, where I...

IDEA modular problem (jsp)

I have project in with 2 separate modules(frontend and backend, first depends on second). When I'm trying to access backend code from frontend code, things going fine. Things turn for the worse when I do the same from jsp. This is stacktrase for simple accessign a bean: <jsp:useBean id="mybean" class="backend.main.MyBean" scope="requ...

IntelliJ inspection -- non-thrown exception

This is a follow-up question to 1832203. I'm making it a new question as well, because it seems that posting an answer to a question doesn't change its position on the java page and so I'm worried that it won't get seen. Apologies if I've just stepped on some etiquette toes. I'm an IntelliJ newbie -- started using it two days ago and ...

IntelliJ and internationalisation: accented characters

I have a java application which has a GUI in both English and French, using the standard Java internationalisation services. I wrote it in JBuilder 2005 on an old machine, and recently upgraded, which has meant changing IDEs. I have finally settled on IntelliJ, which I adore. However, it doesn't seem able to handle the accented charac...

Intellij IDEA: VCS markers on files

Is there a setting or a plugin to display VCS markers on files in the project view ? Here is what i'm talking about (Subversive/Subclipse on Eclipse): (I am mainly asking for Subversion). ...

Why is ContextConfiguration location different in idea and eclipse

Hello experts. In my team we work both in Eclipse and Idea. That works pretty good, except for one minor issue that I can't figure out how to solve. When setting the ContextConfiguration location in our tests and running them inside Eclipse everything works like a charm: @Test(groups = { "database" }) @ContextConfiguration(locations ...

IntelliJ: Including jars in a jar artifact

Developing on the Mac with IntelliJ 9.0.2 Community Edition. I have a program which depends on two library jars. I have figured out how to get IntelliJ to make me a jar of my source (with the Artifact tab), and even to include the two jars in it. However, if I get a listing of the jar file it produces, it looks like this: com/acme...

IntelliJ IDEA 9 for BlackBerry Programming

I'm never done any mobile development before, but I'm interested in trying my hand at developing some simple applications for BlackBerry's. I would like to use IntelliJ IDEA to develop the applications. I've tried Googling for a way to set this up, but all I can come up with is people saying that they have to use RIM's JDE for compiling...

What is the best way to test using grails using IDEA?

I am seriously having a very non-pleasant time testing using Grails. I will describe my experience, and I'd like to know if there's a better way. The first problem I have with testing is that Grails doesn't give immediate feedback to the developer when .save() fails inside of an integration test. So let's say you have a domain class wi...

Flex 4 IntelliJ IDEA wrapper html crashes browser

I'm building an Flex 4 application using IntelliJ IDEA 9.0.2 generated sample Flex application. I replace the generated mxml with the following code from the book Hello Flex 4. It simply crashes the browser when I run it. It says "Waiting for fpdownload.adobe.com..." and then crashes! I tried it on both FF 3.5.9 and Chrome 4. Any clues?...

Experiences wanted: producing a jar artifact in IntelliJ

Developing with IntelliJ 9.0.2 Community Edition, on the Mac. This is a follow-up to this post about including jar files in an artifact, which has not received any replies. I'm hoping that the reason is that somehow, in creating my artifact (or setting my project settings), I unwittingly did something which people don't tend to do, and...

How does Eclipse/IDEA/etc. debugger obtain the information about local variable values and watch expression values?

I always thought that varibales are mapped to stack locations once your Java source is compiled; additionally, they may include the info about the variable names and their scope in classfiles, but that's optional AFAIK. The question is - how do my Eclipse/IDEA IDEs allow me to set a watch expression containing the local variable name? T...