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

Dynamically Configured Hibernate

$
0
0

I work with an application whose entire Hibernate configuration is dynamically configured, and the beans loaded from Entity-annotated classes. I can't seem to make IntelliJ recognize this, though googling around seems to indicate IntelliJ *does* recognize entity-annotated beans. Every solution, however, seems to require an xml configuration of some sort (persistence.xml, hibernate.cfg.xml, etc) or Spring, none of which is used by us. Just plain JPA-annotated POJOs, dynamically loaded by Hibernate.


Is there support for Android NDK?

$
0
0

Hi

 

I just started on a new project and was looking into the possibility of using Intellij instead of Eclipse. One problem I've run into is the fact that we use the NDK for some hardware specific stuff. I haven't been able to figure out how to make this work with Intellij. Eclipse supports it just fine.

 

Any suggestions?

 

Thanks, Derek

What is correct way to create a new module in gradle project?

$
0
0

I have created a gradle project in "c:\MyProject\", and it becomes a Spring MVC project

 

Now I want to create a Spring Data JPA module in this project to access database ("c:\MyProject\MyData\")

 

In the new module wizard, I should select "Gradle" or select "Spring > Spring Data JPA"?

Frequent "Project Files Changed" message ever since upgrading to 14

$
0
0

Hello,

Ever since I've upgraded to version 14, I get frequent intermittent popup messages that prevent me from using the IDE until I either dismiss the popup or reload my project. This has happened with both python and CFML projects. The message says:

 

"Project Files Changed

 

Project components were changed externally and cannot be reloaded:

 

RunManager

 

Would you like to reload project?"

 

Screenshot is attached.

 

Any info on how this can be remedied would be appreciated

 

thanks,

Tony

Enabling AspectJ post-compilation weave mode

$
0
0

I'm trying to weave an aspect into a dependency of my project, and it looks like post-compilation weaving is the way to achieve that. The "Enable Post-Compilation Weave Mode" checkbox in the AspectJ facet is grayed out however -- it says I need to enable external builds under Settings->Compiler first. However, that setting appears not to exist -- how can I enable post-compilation weaving?

 

(Extra context: The actual problem I'm trying to solve is setting up a profiling system with AspectJ, and having it only enabled in developer builds. Our main way of doing developer builds is having a separate module which includes the product as a dependency and wraps it with some extra stuff, so I'm trying to add an aspect to that module. However, then the aspect only gets weaved into the thin layer of extra code in that module, and not into the product itself.)

Resource file added to Intellij project does not load in produced jar artifact?

$
0
0

I have a project that uses the following code to load a csv file

 

ClassLoader classLoader = getClass().getClassLoader();
final Reader reader = new InputStreamReader(classLoader.getResourceAsStream(file/accounts.csv));

 

 

this code works fine when run from within the Intellij IDE but fails to locate the accounts.csv in the jar file.

 

I unzipped the application.jar and verified the the files/accounts.csv file was included in the jar.  Think this is a class path issue, but can't figure it out.

 

Any help would be appreciated.

Accessing the Ant SecureInputHandler in an Ant Build File

$
0
0

I am using Ant within IntelliJ (Ultimate v14.0.3).  In the final deploy step I need to input a user ID and password to be used to execute the file transfer.  I want to do the password input securely.  The Ant documentation describes the use of input handlers, and in particular, a SecureInputHandler.  This class resides within the ant.jar file bundled with IntelliJ 14.  If I include the Ant task to use the SecureInputHandler, the password dialog is not displayed, and the build hangs at the password input step.  If I leave out the reference to the SecureInputHandler, the build runs fine, but the password is visible as plain text (not asterisks or dot symbols).  Here is a snippet of my build file:

 

<target name="cme.deploy" depends="cme.cleanup" description="securely upload jar file to server">
    <input message="Please enter Atlas username:" addproperty="atlas.username"/>
    <input message="Enter password for Atlas: " addproperty="atlas.password">
        <handler classname="org.apache.tools.ant.input.SecureInputHandler"/>
    </input>

    <echo message="Uploading jar file to server using pscp" />

 

 

Can anyone please provide the proper method for accessing the SecureInputHandler in an Ant build running within IntelliJ?

 

Thanks,

 

Dave

generate constructor not working in 14

$
0
0

Running intellij 14.0.3

 

After upgrading to this version, when i click CMD+N and select generate constructor, i just get an empty constructor, nolonger any option to select which fields i want to include. This worked in 13, i haven't changed anything.

 

Haven't found the place to fix this, if it can be done. Pointers much appreciated.


maven build causes compilation errors in intelik

$
0
0

hi..

 

 

when i try to run a maven "clean install"  build through the ide, one of the modules fails and a lot of "cannot resolve symbols" errors appear on the problems pane .

 

however when i a do  a "make" on that module those problems disspappear only to re-appear on the next clean install .

 

the problems seems to rise from calling a method on a enum which implements an interface, if i define the methods in the enum itself with an empty implementation, and overide each one, everything is sorted.

 

i recall there was mabye a bug in maven build order, i can't remember what it was, i'm using maven 3.0.5.

Tab character as indent

$
0
0

I set preferencies as it shows on the picture but in the code indents are as 4 spaces.

As I can see, my changes for DEFAUL indents doesn't applies to the  different file types.

Is it bug or I always need to set needed preferenceis for all file type and default preferencies dosen't meen anything?

How to share configuration in a team across MANY projects

$
0
0

Hi all,

 

I am wondering if anyone out there is trying to manage Intellij configurations for a team across many projects. There are solutions out there they just don't go the distance.

 

Project Level Sharing

Intellij allows configurations to be stored at the project level which is great in some situations but not if each component in a project has it's own repository. I have more components than developers. So keeping the project level configs in sync is time-consuming and error-prone especially if we want to rely on intellij for inspections, jslint, etc.

 

The other problem with this is that I often find myself with multiple projects which incorporate different sub-set of modules for one project to cover different types of tasks. In my current project I have an 'all', 'framework', 'tooling', and 'support' project which all cover different subets of the project. I do this to help with performance problems but this also helps with task focus. other developers break it down differently.

 

config dir in Source Control

I have tried that before. It usually results in a mess of 3-way merges when IntelliJ makes huge re-writes in some of the config files and multiple users push files back to master after weeks of changes to their config files. It might be possible with a good .gitignore file to get close to sanity but I am still not convinced.

 

Config Server

A long time ago IntelliJ had a free Configuration Server that did the basic job. It doesn't seem to exist anymore. In any case it was good for one developer syncing configs on multiple PCs but I don't remember it doing any really team sharing stuff.

 

Import Export Import

We could use the Import/Export feature and store that on a file-share or maybe in source control. This is probably the simplest solution. But it does require a lot of steps to propagate changes to the team. If source control is not used then there there is a lot of risk that the config gets polluted by whoever does the export. If source control is used then we are back to issues mentioned above with storing config in source control.

 

So What are We to Do?

  • Maybe someone out there can tell me that they have had a better experience with one of the above than me.
  • Maybe there is some other approach, plugin, tool out there that I have not heard of.
  • What does Jetbrains do? They use Intellij to implement all of their stuff. They must have this problem.
  • Should I think of a real solution to this problem. Maybe something that takes the form of a plugin.
A perfect Solution for me would look something like this

- A repo accesible through http that stores versioned config files and config sets. (online source-control, or an artifact repo, or something else)

- A plugin that can pull configurations from one or more repo.

- A way to define config-sets.

- tooling for pushing changes. Not sure about how this should work but it should be harder to push than to pull.

 

What do you think? Am I over thinking this?

 

cheers,

flo.

Subversion Missing and Changes Tool Window Greyed Out

$
0
0

Hi All,

 

I am having some trouble with the subversion aspect of Intellij.

 

All of a sudden all of the subversions integration has vanished.

 

  • I can no longer access the 'Changes' window as the option for it is greyed out
  • It is no longer an option under 'Setting > Version Control'
  • Also its nowhere to be seen under the 'VCS' menu either
Has anyone else experienced this and know how to fix it?
Thank you in advance

Debugger won't connect to Node js session

$
0
0

This was always working fine before and now it has just stopped. When I try to debug any node js apps using the node plugin the console just shows:

 

"C:\Program Files\nodejs\node.exe" --debug-brk=49586 app.js

Debugger listening on port 49586

but then the application never actually continues and runs. It works fine if I just try to run without the debugger. I have tried completely reinstalling intellij and node js with no luck.
I am running Intellij 12.1.7 and have never seen this problem before and I have installed on differant machines.
Please help.

Grails app: loader image is not displayed

$
0
0

Hi Experts,

 

When I run the grails app from intellij , and try to upload photo or video the loader imame is displayed in firefox and chrome browsers but not getting displayed in safari. Am I missing any plugins specific to safari.

 

Please suggest.

Java .bak files in Project view

$
0
0

I have an Android project that contains many .java files.  I noticed that there are also several .bak files that are created and shown in the Project view.  Is there a way to hide these files from view?  Also, is there a way to exclude them from being included when searching for text, etc.

 

I have looked in the forums but I could not find a topic like this so I'm sorry if this has already been asked.

 

Thank you,

 

Steve


Cannot create play 2 project

$
0
0

Hi

 

I just downloaded IntelliJ  14.0.3 build 139.1117 and would like to use Scala related features.  I can create Scala and SBT project without any problem. But when I tried to "Play 2.x" project, ti always pop up "sbt project name must be a valid scala identifier" even if  the project name is perfectly valid. (please see the screenshot)

 

This issue happened on both Mac and Windows platform.  Any suggestions?

 

thanks

 

Frank

How can I use Structural Search to find Actionscript functions with a specifically-named parameter?

$
0
0

Suppose I've got several functions in my Actionscript class, each of which has a parameter named foo somewhere in its parameter list:

 

function func1(foo : String) : void 
function func2(bar : String, foo : String) : void 
function func3(bar : String, fizzbuzz : int, foo : String) : void  

 

Is there a way I can use Structural Search to find all of these?

 

I've tried doing a Structural Search for function $FuncName$($Parameters$) : $ReturnType$ with a constraint on $Parameters$ set to foo or .*listVar.*, but neither worked.  What am I missing?

Intellij does not show warnings

$
0
0

I am using IntelliJ 14.0.3 Community Edition.  What I would  like is for IntelliJ to show me warning in the Messages Windows and/or  the Problems Scope.  Warnings do indeed show up as little yellow lines in the Editor  window and in Analysis; however, this is not very useful if you are  trying to track down warning in other files without first having to opening each  of them.

 

I have looked for some setting or switch within IntelliJ, but I have  not found anything.  It really would be nice that when you  compile/make/build, all warning showed up in Messages Window and/or  Problems Scope just like errors do.

 

One more thing.  Another  person here is using Eclipse (Luna) and can see both  errors and warnings in Eclipse's Problems Window.

 

Any ideas?  Thanks.

Where is JavaFX scene builder in JDK8

$
0
0

Hi,

 

As of JDK 8 JavaFX is included in the SDK. There is no scene builder included.

 

According to oracle it should be available here: http://www.oracle.com/technetwork/java/javafx/downloads/index.html

 

But there  is no download for scene builder. Does anyone know where I can find it or even what the executable is? I have searched the entire JDK and JRE with no luck. IntelliJ obviously needs the executable in order to use it, but it seems like we are stuffed as of JDK 8

 

Thanks for any help you can give.

Porting Java from machine A to machine B disables Run/Debug buttons - why?

$
0
0

 

I have a java project that was developed on machine A, checked in to version control (TFS online), and runs fine on machine A in either BlueJ or IntelliJ Idea 14.0.3.

 

 

When I pull down the source code from version control onto machine B by checking it out, it runs just fine in BlueJ, but IntellIJ disables the Run and Debug options on the toolbar and in the menu.


When I open the Run menu, the first available non-disabled selection is Run…, which, when clicked, does not actually run the program.  It pops open a dialog that when clicked takes me to a tiny pop-up dialog with the word "Run" on a button-wannabee with white text on blue background that says Edit Configurations….  If I click that, it brings me to a bewildering Run/Debug Configurations dialog with a tree structure on the far left that says Defaults and a Run button along the bottom-right.  Thinking I just need to click this "other Run button" to run my program, it instead does nothing.  No message. No error.  Nothing!  It's completely unhelpful.


What does it take to port a Java program, including any configuration information from machine A to machine B without all this hassle?  Why can't I just zip up or check-in/check-out from whatever SCCM I happen to be using to get a Java program from A to B and have all the configuration meta data come with it?


Again, keep in mind, this program runs 100% perfect in BlueJ and in IntelliJ Idea on machine A.


How about starting with some definitive messages that explain what's missing or misconfigured?


Even better, how about a "repair" button to show what's wrong and offer to try to fix the problem?

Viewing all 5661 articles
Browse latest View live


Latest Images

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