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

Gradle Android module deletes SDKs

$
0
0

I created a Gradle Android Module project recently and discovered that on occasion a java SDK defined under Project Structure -> Platform Settings -> SDKs will get deleted.  This can happen either when switching between the gradle project and a regular java app, or when starting IntelliJ when the gradle project was the most recently used.  Switching between java apps or non-gradle android projects doesn't seem to cause any problems.  I've got multiple java SDKs defined, as well as a couple of Android, Python, and a Ruby SDK.  The only SDK that gets deleted is one of the java ones, and not always the same one.

 

I'm using IntelliJ Ultimate 13.1.2 on a Windows 8.1 box.  In the attached log file, a SDK was deleted at roughly 19:54.

 

Any help would be greatly appreciated.


Cannot 'run all tests...' anymore

$
0
0

Hi,

 

I have been frequently running all the tests in a package/directory by right clicking the directory or module and selecting 'Run all tests'. At some point though this has stopped working - intellij simply reports '0 test class found in package...'.

Its something thats happened to this one project. If I create a new maven module in the same project, I'll have the same problem - but if I create a new project and add a new maven module, it works.

 

If I run 'mvn install' my tests run fine.

 

Anyone have any suggestions how I debug and fix this?

 

Thanks.

.yjp directory - any value at all ?

$
0
0

What is the purpose of the .yjp directory ? It appears to contain Idea logs (IntellijIdea13-nnnn.log) and on my current machine seems to start in September 2013 and so far has over 330Mbyte - not a tremendous amount these days but as I was looking around for disc space to delete it did look like a candidate. On linux it's directly under the user's home/username directory.

 

Is there any value at all in the contents ? I suppose that they may be useful information about a particular session but after the event they seem a complete waste of space. So can you confirm that they can be deleted without any problems ? I would ensure Idea isn't running at the time, of course.

 

graham

v13.1.2 unstable? (lost cursor and then ignore keystrokes)

$
0
0

Hi,

 

Since I updated to IJ 13.1.2 CE (on XUbuntu 13.04), I often experience a lack of responsiveness which eventually (after a few hours) makes the cursor disappear and few keystroke later, the editor ignores all keystrokes. What I do is basic editing and Shift-Ctrl-F9 to compile. If I exit IJ and restart it again, the issue disappears and will come back later.

 

Now go back to 13.1.1 where this issue didn't exist. Sorry for the vague report, if you need anything other info, please show me how to get that info.

 

Thanks

IntelliJ run/debug Config Sort

$
0
0

 

Intellij has a list of run and debug configs. You have to keep them in

order by moving them around one slot at a time with up and down arrow

keys. This is quite tedious. I have found a way to semi-automate the

process.

 

see http://mindprod.com/jgloss/intellij.html#SORTINGCONFIGS

 

 

If I knew a bit more about plug-ins, I could turn this into a one

button sort.

--

Roedy Green Canadian Mind Products http://mindprod.com

Culture is your operating system.

~ Terence McKenna (born: 1946-11-16 died: 2000-04-03 at age: 53)

 

IntelliJ IDEA 13 & Adobe Scout - How to setup

$
0
0

I am trying to enable advanced telemetry in IntelliJ in my AIR projects.

 

I have tried setting the flag -advanced-telemetry=true in compile options and method described in this thread http://devnet.jetbrains.com/thread/440361.

When i run the compiled SWF itself, it will get registered by Adobe Scout, but when i package the app for mobile and run it on the my device, the app will not get registered.

 

Is there something else i could try?

Dependencies for GWT project differ from Eclipse?

$
0
0

When I import a GTW project that's multi module it seems IDEA doesn't get the dependencies the same as Eclipse.

 

Should I expect IDEA to be able to get the dependencies correct?

 

Is there anyway to turn off the creation of Libraries during this process?

'make' is slow when restarting a test

$
0
0

Hi there

 

When I start a unit test and I restart it with Shift+F10 IntelliJ shows a quite long time the message 'make' at the bottom. Since I made no changes I thought it must be incredibly fast.

 

A colleague of mine tested that in eclipse and there the restart of that test starts immediately. I just wonder why this happens? What does IntelliJ more than Eclipse at this point?

 

Thanks in advance for clearifying

Stefan

 

PS: We run IDEA 13.1.2


IntelliJ Not Picking Up System Environment Variable

$
0
0

Hello,

 

I set a system environment variable, I rebooted, I copied and pasted the variable from the IntelliJ editor into cmd and checked the output with "echo %uprr.implementation.environment%". echo returns the correct value ("local" for anyone curious).

 

And yet... for some reason.... IntelliJ is not picking up this variable. The variable is a system variable, not a user (I had to call a special person to log in as an admin and set the variable for me, so I know it's not a user variable).

 

Any ideas are welcome. Here's a screenshot of my Spring file clearly indicating that the variable is unknown.

 

spring-property.PNG

 

Thanks for any and all help.

 

David Zemon

Managing Multiple Screens in JavaFX application

$
0
0

Hi,

I'm a fairly newbie with IntelliJ IDEA (13.1.2 s/JDK 1.7_55), trying to build an Java FX 2.X app with multiple screens.

 

The first screen is ok, and inserts the main and controller and .fxml, then I expect to "new" up the additional screen/component but there aren't any options for it.

 

Anyone point me in the right direction, or do I have to do this via hand ?

 

Thanks,

 

Craig

 

I'm gouging this from Angela's you tube sample, naturally she's using NetBeans:

https://www.youtube.com/watch?v=5GsdaZWDcdY

Breakpoints not working when debugging simple Java EE app on wildfly

$
0
0

Hello, I'm trying out Intellij Idea 13.1.2 and I am unable to debug a simple Java EE 7 application when running in Wildfly.  I have confirmed this applications works on Glassfish 4.0 when using the IDE.

 

Here is the setup I am using:

 

Ubuntu 13.10

Oracle Java 8 SDK

Wildfly 8.1.0 CR1 Standalone profile

Java EE7 war compiled as Java 1.8

 

JAVA_OPTS:  -server -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:43742,suspend=y,server=n

 

 

When I run the application in the debugger, the application starts up but I can't get the breakpoints to be hit.

 

Any thoughts?

 

Thanks in advance.

Change SQL dialect for current file

$
0
0

I'm using MyBatis that uses xml files for sql. These files are widespread throughout the project. Each time I create a new xml file, I have to go through settings, SQL Dialects, navigate to xml file and change the dialect from <Generic> to something else.

 

Is there an easy way, some shortcut, to change the dialect for the entire xml file or the parent directry?

 

Thanks.

Simple JSF Java EE 7 Web app encounters ViewExpiredException while debugging

$
0
0

Environment:

 

Ubuntu 13.10 64 bit

Java 8

IntelliJ IDEA 13.1.2

Java EE 7

Wildfly 8.1 CR1

Google Chrome

 

I've created a simple JSF enabled web app using a Maven Archetype to test some Websocket functionality.  When running the application and selecting a command button that executes ajax, I receive the exception:

 

[31m13:27:08,093 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-3) javax.faces.application.ViewExpiredException: viewId:/index.xhtml - View /index.xhtml could not be restored.

at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:210)

at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121)

at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)

at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)

at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)

at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)

at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)

at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)

at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)

at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

 

 

Deploying the application directly on wildfly does not exhibit the problem. 

 

Is anyone else having this problem?  I would really like to purchase a license for this IDE but right now I can't even debug a test application on it.

 

Thanks in advance.

Wrong IDEA Home Directory

$
0
0

I just installed fresh Windows 8.1 on my new SSD and then I run IDEA and on "Complete Installation" window it creates a ".IntelliJIdea13" folder on drive D, not on C:\Users\%name%, then if I want to build my artifact to "D:\Foo\Bar\artifacts\" it creates full path inside of user folder instead. (C:\Users\%USER%\Foo\Bar\artifacts). It looks like IDEA confuses D and user home directory. In \.idea\artifacts\artifact_jar.xml output-path is $USER_HOME$/foo/bar/ when I choose Drive D, but when I choose other drive for ex. E: it locates to E:\foo\bar

How to execute compass transpiler on project rebuild/make

$
0
0

We have setup the Compass SCSS compiler using a file watcher as normal, but I have noticed that even though our SCSS files get compiled when they are changed, they do not get compiled if I do a "Rebuild" or "Make".

 

So, for example, say I go to the command line and do a mvn clean to wipe out everything, if I then do a "Rebuild Project" in IntelliJ, Compass does not execute -- is there a way to get a particular file watcher to run when you do a Make or Rebuild?

 

Thanks.


Shelve files but keep them checked out?

$
0
0

We're using Perforce as our VCS.  Its Shelve feature has the ability to shelve the files in a changelist but keep them checked out, which is very nice - I can shelve files when I'm about to do a big refactoring, and my workspace stays in the state it was in before I shelved.

 

As far as I can tell, when I shelve using IntelliJ IDEA, the files I shelved are reverted.  So in order to do what I desc ribed above, I have to shelve them, then unshelve them, THEN do my refactoring.  Is there a "shelve without reverting" option I've missed?

Is IDEA-122691 fix present in 13.1.2

Intellij SVN randomly skips committing files

$
0
0

IntelliJ 12 SVN doesn't always commit everything that it needs to. I don't have any faith in the IDEs versioning integrity and so I am forced to use tortoise SVN, but I find this a ridiculous thing for me to have to do given the fact that this is a paid IDE.

 

Even simply running SVN commands from command line gives me a better result than what I experience with IntelliJ.

It acts like it has uploaded a file you've added. Only for you to hop on a plane, get to another site and see that, in-fact, it totally and randomly ignored committing some of your critical source files, creating random sprouts of CNF exceptions all over the place.

 

If this is a user error (whichI don't think it is given the randomness of the issue), then the jetbrains really needs to redesign their svn commit dialog to better highlight files that it is NOT adding to the commit. These files should be VISIBLE by default so I know to click/specify that I want them uploaded.

 

Everything else about the IDE, and especially it's code-completing intelligence, is supreme.

File permissions problems accessing .Idea12 folder on Windows

$
0
0

I have to work in a Virtual Machine provided to me by a client. I have some strange problems with file permissions on the .Idea12 settings folder.

 

Intellij creates files in this folder owned by my user id D607522, but with read/write permissions only for this user. It is then unable to read these files! It seems strange the IntelliJ would be able to create these files, but not be able to read them.

 

I have adminsitrator access on this machine, so I just repermissions everything under .Idea12, so that it can be read/write by any user. However, I constantly have to do this, and often IntelliJ will lock up when some file it wants cannot be accessed.

 

The problem is partly due to a badly confiugured VM (the client VM screw ups have been many), partly due to my ignorance of how file/security permissions work on Windows (I'm a Unix user).

 

Has anybody encountered such a problem before? I'm thinking of trying to move the settings folder location in idea.properties, perhaps putting it somewhere other than under my profile might help...

 

Rupert

minimum version of IntelliJ IDEA that supports Java 8?

$
0
0

Searched but cold not find the answer.

What is the minimum version of IntelliJ IDEA that supports Java 8 - both for developing Java 8 based projects and running IntelliJ itsel?

 

Thanks,

-Neville

Viewing all 5661 articles
Browse latest View live