Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all 5481 articles
Browse latest View live

Idea 12 - Maven Projects pane is empty

$
0
0

Hi everyone,

I recently installed the new version (Which looks great BTW) but had a weird problem with my Maven projects.

The pane was empty of projects no matter what I did, also the context menu in the Project pane did not include the maven optiosn so I could even re-import.

I'm working on a Windows 7 machine.

Does anyone know how to solve this?

Thanks,

Guy


groovy and intelliJ 12 : why generate stubs?

$
0
0

I have part of a big project with parts that use groovy .... worked perfectly fine under version 11.1

switched to version 12 and then generation of stubs that do not compile afterwards!

what to do to avoid this pesky stub generation that does not work?

well there appears an "exclude from stub generation" form : am I to do that for hundreds of groovy classes?

thanks

Mavenized projects and JUnit tests

$
0
0

Hey all:

 

I am still learning the ins-and-outs of Maven and IntelliJ so forgive me if this is a silly question.

 

 

I have a Maven project where I am running JUnit tests against some webflow xml definitions. Each unit test has a relative path to the XML file, for example to load the manage order flow it is - > src/test/resources/config/spring/webflows/manageordertest-flow.xml.

 

So, int the JUnit there is a class level variable that refers to the path above. When I try to run my JUnit test in IntelliJ 12 I get the following exception.

 

Caused by: java.io.FileNotFoundException: src\test\resources\config\spring\webflows\manageordertest-flow.xml (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:110)
    at org.springframework.webflow.engine.model.builder.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:98)
    at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:113)
    ... 31 more

 

When I run the test at the command line it works fine!  ( mvn test -Dtest=Mytest) No errors and all tests are "green".

 

Also, a fellow developer can run the test in Eclipse using the relative path as mentioned above. For me to run the test in IntelliJ I have to give the full path to the XML file (i.e. C:/xxxx/xxx/xxx/xxx/manageordertest-flow.xml)

I have checked my module settings and the xml file and associated test class file are set up and test sources in the sources pane.

Further, I check the output path and both my compiled classes as well as test classes and test resources are located in the appropriate  webapp/target/classes and webapp/target/test-classes directories.

 

 

What am I missing here? Any suggestions or pointers is greatly appreciated!

 

 

Thanks for your help.

Can't reference R class on Android Maven project

$
0
0
When rebuilding my project IntelliJ IDEA generates the updated R class, although I can't use it. Why?I need to use it to reference one of my activities from R.layout. Can you help me?I'm using IntelliJ IDEA 12.

Hard to start, non intuitive

$
0
0

I try to start in Idea for Android twice. I never worked with Java or Idea befor.

Yestedey I spent couple hours to run first demo on home computer. There was errors, which magickally disappeared on ten or twelve attempt to create a project. I still dont now what help. I have used openjdk-6

 

 

Today I try setup environment on computer at work. I decide to try Oracle JDK 7. And I get error again http://i.imgur.com/ny4Fw.jpg What it means? What it wants from me? I have set up Java http://i.imgur.com/ncycZ.jpg (I can chose Java then try to create project "Java Module")

 

I think for me more easer to start program with Vim, but unfortunately in Vim no GUI Disigner

 

Xubuntu 12.10

 

Offtopic

Where I can report a bug with wysiwyg in Opera?

How to reference sources in a separate IntelliJ project

$
0
0

How should I go about adding a link to the sources for a library if the source is part of another IntelliJ IDEA project? If I create a Path Variable for the library sources, Intellij will automatically update any paths in the project files (.iml files) of the library project to use the new path variable, which is problematic.

 

Some possible solutions which do not appear to be supported:

 

  1. Use an environment variable instead of a path variable. IntelliJ does not support using environment variables in file references (in .iml files or library .xml files).
  2. Limit the scope of a path variable to a single project. Path variables are global to all projects and all instances of IntelliJ. There does not appear to be any sort of per-project path variables.
  3. Force IntelliJ to not substitute a path variable for a given project. IntelliJ will always automatically update the paths in .iml files to use a path variable whenever possible.

 

As an example, I have a repository named /CollaboRhythm with a library /CollaboRhythm/CollaboRhythm.Shared. I also have a fork of the repository at /CollaboRhythm2. I have a plugin project named /DiabetesPlugin which has a dependency on /CollaboRhythm/out/production/CollaboRhythm.Shared/CollaboRhythm_Shared.swc and the sources /CollaboRhythm/CollaboRhythm.Shared/src. If I make a path variable COLLABORHYTHM_HOME for /CollaboRhythm, then /CollaboRhythm/CollaboRhythm.Shared/CollaboRhythm.Shared.iml will be updated to use COLLABORHYTHM_HOME (which is problematic). If I then change COLLABORHYTHM_HOME to point to /CollaboRhythm2, /CollaboRhythm/CollaboRhythm.Shared/CollaboRhythm.Shared.iml will now use /CollaboRhythm2/out/production/CollaboRhythm.Shared/ for the output folder instead of /CollaboRhythm/out/production/CollaboRhythm.Shared/

 

As a workaround I am currently placing my plugin project (DiabetesePlugin) in a subdirectory of CollaboRhythm (/CollaboRhythm/contrib/DiabetesPlugin) and then when I want to use the plugin with a different fork of the CollaboRhythm I have to move the folder (for example, to /CollaboRhythm2/contrib/DiabetesPlugin).

Format a Date with Velocity

$
0
0

  Hi, what would be the correct way to format a date using Velocity in the File Templates? I would like a format similar to Jan 12 2012. I've been trying various Velocity examples without success.  Thanks

How to end a rename refactoring?

$
0
0

I am using IDEA 12

 

I press enter (as I used to, long ago, with prior versions of IDEA) and what now happens is that the refactoring does not complete -- a linebreak is inserted within the new identifier I am choosing.  How could that ever be correct?

 

I have altered some of the keymappings to make IDEA more Mac-like (I did not find the Mac-like template provided very well done -- e.g., cmd+G and shift+cmd+G have to be "find next" and "find previous" or my ears emit steam), but the modality of the thing I am doing and the total restriction against having whitespace within an identifier should never permit this to be broken, as I'd deem it now.

 

Is there a way I can export my Mac-like keymap for you to see?  is there a way to diff two keymaps to see what might be off?

 

tone


Debugging Play2 Scala based tests in IntelliJ

$
0
0

Greetings all,

 

I am a newbie to Scala and am trying to debug some controller tests using IntelliJ12 Ultimate.

 

I can get the tests to run fine but can't seem to get the debugger to his a breakpoint that I have set in the controller.

 

Can anyone help out?

 

Thanks,

Mike

External tool process does not terminate?

$
0
0

Hello, I'm running an external tool (a CoffeeScript Cake file) and am having a problem in IDEA. I have this set up as a batch file, and if I run the batch file directly, it works fine, and when I end it (Control-C), the spawned Node processes terminate correctly. However, if I set this batch file up as an External Tool, when I end it (press the Stop button), the console says "Process finished with exit code 1", and the spawned Node processes do not terminate.

 

I've tried a number of things to get the processes to terminate (including listening for events as described at http://youtrack.jetbrains.com/issue/WEB-1913), but nothing seems to work. Is there some way to properly terminate the spawned processes? Or is this some limitation of the Java Runtime?

 

Thanks,

 

Brian

Surround code with custom code

$
0
0

What's the best way to srround some highlighted code with some new code?

 

Eg, I know I can select some code and "surround with if/else, while, or just a block" but what if I want to select a variable name and surround it with a call to a function (with the selected part as the param to the function?

Groovy @SuppressWarnings("unused") goes unused

$
0
0

I keep trying to put @SuppressWarnings("unused") on a few class variables in my Groovy class that are unused. But it doesn't remove the warning from IntelliJ. Not sure if I have a typo or something wrong on my end.

 

Some short examples where it doesn't work

 

@SuppressWarnings("unused")
def createPot ={ handDocument -> 

 

 

@SuppressWarnings("unused")publicinterface MongoDBRepository {   @SuppressWarnings("unused"publicstaticfinal String JOURNAL_SAFE = "JOURNAL_SAFE"  publicstaticfinal String SAFE = "SAFE"  publicstaticfinal String MAJORITY = "MAJORITY"  publicstaticfinal String NORMAL = "NORMAL" }

 

 

Thanks

 

Mark

how to determine changes between plugin versions?

$
0
0

Hi Folks. I see that I am using version 2.9.2 of the python plugin http://plugins.intellij.net/plugin/?id=631 , but the newest version is 2.10.0. How do I find the release notes detailing what changed between them? I'm using IntelliJ 11.1.4 on Mac OS X 10.7.5. Thanks! -- matt

Diff/Merge Window - Changing color of links to copy / delete changes

$
0
0

Inside IntelliJ IDEA's diff / merge window, >>, << and X links are available to copy / delete changes between the files being compared.  Inside my color scheme, these characters are very hard to see.  Refer to the attached screen shot to see what I mean.  Which color item inside preferences do I change to change the color of these links?

Resource Bundle editor issues.

$
0
0

Good morning,

 

I have two issues (well, one issue and one feature request actually) regarding the resource bundle/property editor. I just wanted to make sure that I don't miss anything nor that there are already a bug/feature request filed.

 

1. So the bug:

 

When I edit my resource bundles in IDEA I can switch between the property editor (where I can edit a single file) and the resource bundle editor. Now, each time I switch from the property editor to the resource bundle view the panel on the left side (where all your resource keys are listed) will be re-layouted to it minimum horizontal size. That is really annoying. I added a screenshot where you can see how it looks.

 

I'm using Ubuntu 12.04, JDK 1.7u10 and Idea IU 12.0. But i had the same behavior under previous versions of IDEA as well. So it is clearly not a regression bug.

 

2. About the feature request:

 

It would be really great if there would be a way to link the property editor with the resource bundle editor. So if I edit the line with key "a.b.c" in the property editor that key would also be selected in the resource bundle editor as well so I can see immediately all the other values for that key.

 

So my question is: is this already possible in IDEA?

 

Regards,

Stefan


chinese character error when using Darcula look and feel

$
0
0

I set IDEA theme to Darcula look and feel. When some class build failed, error informations in Messages[Alt+0] window will display error if informaion contains chinese charactor.

 

But After changing theme to Alloy.IDEA Theme,  IDEA can display chinese character correct in Messages[Alt+0] window.

IJ does not recognize Grails (only when starting as root)

$
0
0

He, IntelliJ 12 does not recognize Grails (1.3.7) in any way when I start this thing as my user.

When starting IJ 12 as root, everything works fine (okay, THIS works fine, a lot of other things are now messed up).

 

The $GRAILS_HOME variable is empty by the way.

 

Any suggestions ?

Merciii

Error: Grails SDK is not configured

$
0
0

Hallo Community!

 


We have been testing IntelliJ IDEA for a week.

We importet a Grails project from CVS reprository. The import process went fine however if we try to run the application we always get the error "Grails SDK is not configured".

Grails and Groovy are installed properly and both are working. The Paths GROOVY_HOME and GRAILS_HOME are set too.

When i do right click on the tree views and -> module settings -> libraries: it shows me the grails libraries( however GRAILS_HOME/diest/* are shown red).

 

We are running IntelliJ on SLES 10 64Bit

I am looking forward for an answere.

 

Umit

IntelliJ 9 and Grails 1.2

$
0
0

Using IntelliJ 9 with Grails 1.2 seems like a step back to me. Why is it now nigh impossible to switch between Grails SDKs??

Support for Testacular

$
0
0

Currently IntelliJ (and WebStorm) only supports the quite old and buggy js-test-driver.

 

While testing of Javascript becomes more and more important, IntelliJ offer much more.

 

I suggest to support testacular.

 

Why? It was developed by the guys behind AngularJS, has support for Jasmine & Mocha tests, runs in all major browsers (as well as the headless browser phantomJS).

Viewing all 5481 articles
Browse latest View live