When I open up IDEA and "Create New Project", I select Android Application Module, then specify the location of the Android SDK, but then it gives me an error saying that I have not defined a Java SDK. I have Java installed, so I'm not quite sure what to do. Any assistance would be great. Here are some screens. Windows 8, if that makes any difference.
http://i.imgur.com/6ywMn.png
n00b trying to set up IDEA 12 for Android development, but I'm running into issues. Help?
Dracula is awesome.
That is all. Thank you jetbrains.
IDEA 12 / JBoss AS 7 - JSPs not being reloaded after changes?
I am debugging an exploded war application with debug settings:
On 'Update' action: Update classes and resources
On frame deactivation: Update classes and resources
In my JBoss standalone.xml file I have:
<subsystem xmlns="urn:jboss:domain:web:1.1" ......>
......
<configuration>
<jsp-configuration development="true"/>
</configuration>
....
</subsystem>
When I make a change to a JSP the JSP is not being reloaded in either scenario. The popup balloon says 'Loaded classes are up to date. Nothing to reload.'
Is this feature broken? Is there some other setting I must change to make this work?
IDEA 12.0 Build #IU-123,72
JBoss 7.1.1.Final
Display SVN revisions from a reintegrated branch
Is there any way in IDEA 12 to display the revisions that were included when a branch is reintegrated? Something similar to "svn log -g" command line or the "Include merged revisions" option in TortoiseSVN. For example, let's say I create a branch (my_branch) from the trunk at revision 100. I perform two commits to my_branch at revisions 103 and 108. Then, I reintegrate my_branch into the trunk at revision 110.
An 'svn log -g' on the trunk would show me something similar to:
------------------------------------------------------------------------
r110| foo@bar | 2012-12-05 18:45:19 -0600 (Wed, 05 Dec 2012) | 1 line
Merge all from my_branch at 109 (reintegration)
------------------------------------------------------------------------
r108| foo@bar | 2012-12-05 18:41:01 -0600 (Wed, 05 Dec 2012) | 1 line
Merged via: r110
My change #2.
------------------------------------------------------------------------
r103| foo@bar | 2012-12-05 18:41:01 -0600 (Wed, 05 Dec 2012) | 1 line
Merged via: r110
My change #1.
TortoiseSVN with the "Include merged revisions" option selected shows something like:
110 foo@bar Wednesday December 5, 2012 6:45:19 PM Merge all from my_branch at 109 (reintegration)
108 foo@bar Wednesday December 5, 2012 6:45:19 PM My change #2.
103 foo@bar Wednesday December 5, 2012 6:45:19 PM My change #1.
Thanks in advance for any info.
Label decoration ala eclipse in Project Window
anyone know if its possible to get the subversion label decoration like they have in eclispe? The one that shows SVN specific information on resources in projects under SVN control. Information includes the revision number, branch or version name, etc. the one right next to the file. it usually shows rev, time of last checkin and who checked it in. i find this useful and havent been able to find the same functionality in intellij.
Memory usage analyze
Has the Idea 12.0 any tools for analyze memory usage of android apps, for example in debug mode?
IntelliJ 12 complains "cannot resolve symbol" with Groovy Markup Builder
In my project I'm using groovy markup builder to create html content. for exampe
builder.table {
tr {
td("Data1")
td("Data2")
}
}
IntelliJ inspector now complains that he cannot resolve the symbols table, tr and td. This wasn't a big issue until using the new
darcula theme. Now all those unresolved symbols are marked red in the text and even worse they clutters the problems bar at
the right side of the editor window.
Does anyone know how to tell the inspector to ignore that unroesolved symbols?
Thanks a lot
Holger
idea 12 parse some chinese character error
hi,all:
Today, I download idea 12,then I install and run it. When i run junit test on my existent project, i got below error:
Caused by: org.dom4j.DocumentException: Invalid byte 1 of 1-byte UTF-8 sequence. Nested exception: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at com.taobao.ad.enginenotify.NotifyFacadeImpl.loadNotifyConfig(NotifyFacadeImpl.java:101)
at com.taobao.ad.enginenotify.NotifyFacadeImpl.afterPropertiesSet(NotifyFacadeImpl.java:37)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 95 more
Code completion strange behaviour
Now that I am running the awesome IDEA 12, I run into a weird issue with code completion. Here's a screenshot of what I mean:
I would expect the getText() method to be selected, but instead it chooses the camelhump candidates first. How do I disable this behaviour? Switching between "Sort lookup items lexicographically" does not change that.
Cheers!
PS: Thanks for a great product!
Hibernate console failing with error
I have a spring + hibernate application. When trying to use the hibernate console, I keep getting the following error
hql> from Person
java.lang.RuntimeException: org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]
at org.hibernate.cache.impl.NoCachingRegionFactory.buildEntityRegion(NoCachingRegionFactory.java:70)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:280)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
at com.intellij.hibernate.console3.remote.HibernateFacadeImpl$1.buildSessionFactory(HibernateFacadeImpl.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
at $Proxy196.buildSessionFactory(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.java:99)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:160)
at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.java:96)
at $Proxy196.buildSessionFactory(Unknown Source)
at com.intellij.hibernate.engine.HibernateEngine.ensureInitialized(HibernateEngine.java:117)
at com.intellij.hibernate.engine.HibernateEngine.createQuery(HibernateEngine.java:141)
at com.intellij.jpa.engine.JpaEngineBase.executeQueryInner(JpaEngineBase.java:166)
at com.intellij.jpa.engine.JpaEngineBase.access$000(JpaEngineBase.java:44)
at com.intellij.jpa.engine.JpaEngineBase$2.run(JpaEngineBase.java:128)
at com.intellij.jpa.engine.JpaEngineBase$1.run(JpaEngineBase.java:95)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
In my spring context file where hibernate is configured, I have second level cache turned on already. I also have a region factory class set.
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.cache.region.factory_class">net.sf.ehcache.hibernate.EhCacheRegionFactory</prop>
Why does the hibernate console still fail with the above error?
Pls advice.
I am running current v12 (release version, build 123.72)
Thanks
Diff/Merge Window - Changing color of links to copy / delete changes
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?
JUnit with Android
Hello,
When ever I want to create a test for an activity, I press Control-Shift-T but the Test class gets created in the same location as my source code for development. I want the Test code to be located in a src directory of a different Module called Testing. How do I get Intellij to create the test class in a different module?
idea 12: new Android project, existing sources?
what am I missing about Idea 12 to create a new project over existing Android sources? This used to be supported, parsing the Manifest to get the package name, etc. Is this hidden somewhere in the gui now?
thanks,
Larry
Cannot use Launchbar clipboard cache with Intellij
I use Launchbar to cache clipboard items. The thing is that I can use the clipboard cache in any other application besides Intellij. I have to first past and then copy that text in another application (usually terminal) before I can paste it into Intellij.
Bug?
Packaging IntelliJ IDEA CE into a VM
As a contributor to the Apache Software Foundation's Karaf project, I've set up a virtual appliance for folks who want to do OSGi development. The feedback I'm getting from the community indicates a strong preference for IntelliJ over Eclipse, which is currently installed in the vapp.
Does the IntelliJ IDEA Community Edition's license allow for it to be packaged into a virtual machine? The VM will be very visibly branded as containing the IntelliJ IDEA with links allowing interested developers easy access to upgrading it to the paid version. Because this VM will be the first OSGi development VM available on the VMWare Marketplace, it will provide IntelliJ access to developers who work inside of cloud environments.
Tomcat/AppServers stdout/stderr console ?
Hello I am a new IntelliJ 12 (on Windows7 Java7 Tomcat7.0.33) user and try to compare it against other IDE with some existing projects.
However while I can get my Tomcat web-app to start and run I can not find any stdout/stderr information.
I would have expected the terminal console to be shown in the "Debug" view when the app server is launched.
There is a "Tomcat.log" which I believe is the catalina.log or other such file and only contains tomcat related events. This is not the place I read by debug output from usual in other IDEs.
Please advise what matter I am overlooking.
How to make IDEA refactor a MyClass.staticMethod to import static line?
Hi there,
Would anyone knows what's the equavalent of Eclipse's "Ctrl+Shift+M" in IntelliJ IDEA?
Basically in Eclipse, I can press "Ctrl+Shift+M" on a line like "MyClass.staticMethod" after highlighting "staticMethod", and it will auto insert the "import static MyClass.assertThat" to the top of the source, and then remove the "MyClass." prefix from the line.
Thanks,
Zemian
Intellij 12 not stopping at a breakpoint
Hi,
I just upgraded to Intellij 12 and I am investigating the jasypt (Java Simplified Encryption) library, http://www.jasypt.org/,
Cant deploy artifact in Tomcat 7
Hello.
I'm using IDEA 12 and I'm working on the most basic project setup possible. I'm having 2 classes in my project and a simple artifact setup (exploded web app) which seems to work when I copy it to the webapps directory in the Tomcat installation.
The problem is that when I try to deploy the same artifact through a run configuration in IDEA, it doesnt work. The log console states that the deployment was succesfull but the artifact never moves to the tomcat directory.
Also, the connection to Tomcat seems to be working as expected.
Any ideas on what I'm doing wrong?