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

n00b trying to set up IDEA 12 for Android development, but I'm running into issues. Help?


Dracula is awesome.

$
0
0

That is all.  Thank you jetbrains.

IDEA 12 / JBoss AS 7 - JSPs not being reloaded after changes?

$
0
0

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

$
0
0

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

$
0
0

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

$
0
0

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

$
0
0

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

$
0
0

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

Some exception stack infomation is ignored. These exceptions make me puzzled, because I don't change any code,and that code run correctly before. So I run idea 11, and run the same test case, it pass.....
  After some time debug, I find  the chinese charactor "牌"--- utf-8 code is "E7 89 8C" make this exception.
Can somebody fix it? Thank you, forgive my poor english.:)

Code completion strange behaviour

$
0
0

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:

 

codecompletion1.png

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

$
0
0

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

$
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?

JUnit with Android

$
0
0

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?

$
0
0

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

$
0
0

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

$
0
0

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 ?

$
0
0

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?

$
0
0

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

$
0
0

Hi,

 

I just upgraded to Intellij 12 and I am investigating the jasypt (Java Simplified Encryption) library, http://www.jasypt.org/,

 

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
      <!--<optional>true</optional>-->
    </dependency>
   
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk16</artifactId>
      <version>1.40</version>
      <scope>test</scope>
    </dependency>

  • and ran the unit test BouncyCastleByProviderStringEncryptorTest in the IDE debugger.
What I found is that when I set a break point in the bouncycastle library constructor class JCEBlockCipher.java or other classes where it should stop at a breakpoint.
The IDE does not stop at the breakpoint inside bouncycastle library.
Please let me know what I am doing wrong...
Thanx in advance
- Young
I believe this worked in Intellij IDE 11

Cant deploy artifact in Tomcat 7

$
0
0

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?

intellij 12 chinese character display is incorrect when my Comment contain chinese character

$
0
0
hi: I download intellij ultimate 12 ,but t find some problem in it .first ,when i comment like this /** */ ,in this comment ,if it contain chinese character ,it will change the line of underline like is : if it not contain any chinses character ,it will normal like /** * User: wangchen.gpx * Date: 12-12-10 * Time: 下午9:01 */if i add some chinese character in it , it will auto-change like this/** * User: wangchen.gpx * Date: 12-12-10 * Time: 下午9:01 *    说的是/it auto delete the character after it ,also it make the underline up .
Viewing all 5481 articles
Browse latest View live