Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all 5661 articles
Browse latest View live

Issues with Play Framework in IntelliJ

$
0
0

I am using the latest version of the EAP for IntelliJ and I am also a licensee for the Ultimate edition. I am running into some frustrating problems when using it with Play Framework.

 

Although the project will import from SBT and auto update dependencies when SBT changes, when I try to do a make on the project it runs forever. I end up killing the make after 10 or 15 minutes. When I run the app in a console it takes only a 15 seconds or so to build. Furthermore, it seems that it keeps rebuildign the code even if I had just recompiled it in the console, like intellij is using a different directory and not recognizing that the files are already built. However the biggest problem is that I cant run any unit tests inside the IDE. When I try to run the tests it tries to do a build and since the build never finishes it cant run the test.

 

The play application is a pretty standard Ebeans - Play - MySQL - Angular application so there is nothing special in the build.

 

So here are the questions.

1) How can I get my tests to run in the IDE?

2) Why wont the build finish or recognize its already built? Is there a workaround?

3) Can I get intellij to do "make" with SBT  and the scala Daemon compiler and NOT with its internal compilers?

 

Thanks in advance.


Unable to use Groovy 2.4.3

$
0
0

Is there a maximum Groovy version that you can use in plugin development?

 

When including Groovy 2.4.3 in my build.gradle, Intellij gives me this error:

 

"groovy-all is loaded in version 2.4.3 and you are trying to load version 2.3.9"

 

I'm using Intellij 14.

How do you change the set of file types listed for new scratch files?

$
0
0

I work in ColdFusion a lot, and neither CFC nor CFM file types are available. There are also some types I might remove if I could, because I'm unlikely to use them.

 

Is this something we can control?

 

Thanks.

JUnit default heap size overridden?

$
0
0

Hi,

 

I am trying to set the default max heap size for my JUnit tests by setting it in the 'defaults' section in the Run/Debug configurations.  I have set -Xmx2048m in 'VM options', and do indeed see that this argument is passed to the command line.  However, it seems to be overridden by something else and set back to 1024.  You can see this when monitoring the process in VisualVM and looking at the JVM arguments tab:

 

My configuration settings:

 

-ea  -Xmx2048m -XX:PermSize=256M -XX:MaxPermSize=384M -XX:-UseSplitVerifier -javaagent:"C:\Users\twebster\.ivy2\cache\org.springframework\spring-instrument\jars\spring-instrument-4.1.2.RELEASE.jar"

 

VisualVM JVM arguments:

 

-ea (mine)

-Xmx2048m (mine)

-XX:PermSize=256M (mine)

-XX:MaxPermSize=384M (mine)

-XX:-UseSplitVerifier (mine)

-javaagent:C:\Users\twebster\.ivy2\cache\org.springframework\spring-instrument\jars\spring-instrument-4.1.2.RELEASE.jar (mine)

-XX:-UseSplitVerifier (WHERE DID THIS COME FROM?)

-Xmx1024m (WHERE DID THIS COME FROM?)

-XX:MaxPermSize=256m (WHERE DID THIS COME FROM?)

-Didea.launcher.port=7537

-Didea.launcher.bin.path=D:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.1\bin

-Dfile.encoding=windows-1252

As you can see there are some other arguments that somehow got tacked on, and I have no idea where they came from.  Whatever the answer, it has the effect of overriding my values and I end up with a heap size of 1024m.
Anyone have any ideas?  I'm using Community Edition 14.1.3 build #IC-141.1010

list of java properties

$
0
0

Hi

 

when we work with intellij-idea how we can get the list of all java properties used(system and project specific)

 

i remember that was a plugin in netbeans that do the job.

Spring boot app debug static file reload

$
0
0

Hi, I'm using IntelliJ with a simple spring boot app (no web facet), and it seems that when I run with intellij, the static files do not reload unless I do a "rebuild project". If I just use maven on the command line with "mvn spring-boot:run", then the static files reload fine whenever they are edited. How can I make intellij reload the static files automatically?

When viewing the diff of my branch vs another, how would I easily import files that my branch is missing?

$
0
0

Imagine you're using the git plugin in intellij Ultimate. Is there a way to import a file that the other branch has but you don't, that is even more conveinient that using the console command:

git checkout origin/some_branch src/com/company/package/MissingFile.java ? What if there are 50 new files that you need from the other branch? Then that command becomes tedious.. I feel like there should be a button for this. I don't want to do a merge. I just want the files from another branch that I don't have. Is there a better way?

Is there a way to automatically detect junit/spring4 errors?

$
0
0

I have intellij IDEA Ultimate edition and I believe, any plugins related to junit and Sping installed. My build is done outside of intellij and all of the juint tests are run during the build process. Often it takes about 5 minutes to complete only to tell me there is some error that inevitably is related to junit testing configuration. Usually some bean is missing or missing a property, or some annotation is missing in some class somewhere.. It wastes a lot of time. Is there a plugin or setting that will allow intellij to detect junit/Spring configuration errors BEFORE I start the build process just like it does for almost any other type of error? Why does it feel like automatic junit/Spring issue detection is a black hole while much more advanced things, like the issues FindBugs detects, are easily reported before a build?


How to find all toString call with automatic/boxed version on some Class

$
0
0

How can I find all toString call on some Class, including automcatic toString call on object in string concatenation or logger parameter pass.

If I use "Find Usages" mechanism it only find direct toString call.

Maven dependency

$
0
0

Hi

I read many threads about maven and IntelliJ but I cannot find solution for my problem. I have a maven project and I see that needed library was downloaded:

Selection_011.png

library - Maven:org.apache.httpcomponents - httpcore

In this library is package org.apache.http but the editor does not see it.

 

I can run "clean package" and package is created without any problems.

Project was imported from Eclipse.

 

Could someone help me?

Splitting lines with String Literals

$
0
0

Hello -

 

I have a question please...  One of the key features I use is https://www.jetbrains.com/idea/help/splitting-lines-with-string-literals.html - as you can see in the link example, the end result of pressing the "Enter" key is breaking the string literal into two lines.

 

My question:  is there a way to make the "+" (plus sign) appear at the start of the second line rather than at the end of the first?  Is this something that can be configured?

 

Thanks!

Jose

war file created as -plain-output

Почему я не могу сделать структуру проекта в виде дерева?

$
0
0

День добрый, собственно вопрос в теме. Папки в виде "дерева" нужны!

Вот мое меню: Безымянный.jpgСтруктура в виде строки, что не всегда удобно! Как сделать "дерево"?

Горячие клавиши

$
0
0

День добрый, подскажите есть ли настройки по умолчаню горячих клавиш? Так как Ctrl+С+V не работают! Приходится использовать Ctrl,Shift+Insert. Так же я не могу выделить строки как обычно(Shift+стрелки), использую выделение мышью, ужасно не удобно!

What of $HOME/.IntelliJIdea14 is worth backing up?

$
0
0

As a habit, I backup many configuration files in $HOME.  $HOME/.IntelliJIdea14 boasts hundreds of megabytes.  I wonder if it's a good idea to back up the entire $HOME/.IntelliJIdea14 or could it be better to only back up parts of it.  The main use for this is that if I need to reconsutrct an identical installation, backup of configuration files in $HOME/ sometimes make it easier.


AspectJ within Android Studio

$
0
0

Hello to everyone!

 

I'm experimenting with AspectJ plugin for Android development under Gradle build system. Well, I've sucessfully developed and deployed (but not yet published somewhere) gradle compile plugin for Android Studio to build aspects suppling modern popular plugins, such as Android Annotations, Dagger, Retrolambda, etc. At this point I've decided to integrate language highlighting and code assistment into the Studio.

And I found that Ultimate edition supports AspectJ by default, but not community edition (which Android Studio is based on). I've tried to port this plugin under the Studio.

Some success I've got. But not everything works well.

In details:

+ Studio launches and works stable

+ projects properly builds and launches

+ aspects correctly compiles and injects into classes dex

- File roots navBar doesn't work

- Run / Debug / Attach Debugger menu options doesn't work

 

Well, this negatives doesn't brake my work and I can even write aspectJ/Java code as usually, but it looks ugly and makes me feel sad.

Is there any chance or opportunity to make this plugin work for Android Studio? Or maybe some way to buy or obtain it?

 

P.S. My gradle plugin: https://github.com/Archinamon/GradleAspectJ-Android
In attachments is how it looks now in editor with modified AspectJ Support plugin from IntelliJ Ultimate edition.

I can't launch AVD emulator for some reason please help

$
0
0

Hello everyone

 

I'm new here but it doesn't matter if I'm new or not I really need help over here with this:

 

http://i.imgur.com/JHTktSd.png

 

As you can see, I can't run this beast.

 

I downloaded the Intel HAXM thing but I can't install it because I use an AMD processor, and it seems I must have a Intel processor for this to work.

 

But... c'mon, there must be a way for me to emulate this thing with my AMD processor! You guys know more than me so please, just let me fix this issue and get this over with.

I get an error when I try to reload list of plugins from repo

$
0
0

I get the following error whenever I try to get a list of available plugins from the jetbrains repo:

 

Screen Shot 2015-06-22 at 20.46.19.png

 

This is the configuration of my installation:

 

Screen Shot 2015-06-22 at 20.49.17.png

IntelliJ feature? Automatically generate fx:id fields in controller class

$
0
0

I have my FXML with some nodes that have their fx:id's.

Is there any way in IntelliJ to create all the fields (linked to these fx:id's) in the controller class of my fxml-file?

Live template to display currentPackage

$
0
0

I want to create live template tiwtch will return the file package inside grails view file (gsp)

At fist I wanted to use build in currentPackage() variable for live templates but this vasiable seems not to be aviabalbe for grails views.

 

So next lead was to use

groovyScript("groovy code")

and run custom script, but I am not sure how this shoulb be implemented.
1. First of all I wonder what would be the proper path to the script in the grails project (can the path be relative to the project or must it be full path to the file?)
2. Secould I am not sure ho to access _editor variable reffered in the grail docs inside the description of groovyScript (https://www.jetbrains.com/idea/help/edit-template-variables-dialog.html)
I would be very gratefull if some one could write me a script wich will access _editor variable and return the package (or even just file location becouse gsp files technicly do not have packages, but there is folder structure witch as always may be converted to package and I will do rest on my own)
Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>