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

How do I use IntelliJ with Subversion, Git and "git-svn".

$
0
0

How do I use IntelliJ with Subversion, Git and "git-svn".

 

My firm is using subversion for the main repository but I like to use git so I use the command line and issue the following commands

 

git-svn clone -s http://example.com/my_subversion_repo local_dir

 

but at the end I have to issue a git-svn dcommit can this be done from within IntelliJ

 

  1. git-svn dcommit

Remote path mapping for Python debugging in IntelliJ

$
0
0

How do I configure IntelliJ to use a remote path mapping when debugging Python?

 

It appears as though in PyCharm in the Run/Debug configuration window there is an option to specify Path Mappings, see http://architects.dzone.com/articles/python-pycharm-%E2%80%93-configuring

 

However, this option isn't present in the same place in IntelliJ. How do I go about configuring this?

 

At the moment I have debugging working but whenever a file is debugged the IDE opens up the external library stubs in new tabs when stopping at breakpoints etc rather than opening up the local project file.

New Project 'remember this' checkbox is not working

$
0
0

I am running the latest version of IntelliJ Idea Ultimate 12 on a mac machine.

Every time I need to create a new project, I am getting the 'New Project in New Window or This Window' again and again, althought I tick the Remember checkbox.

Any ideas?

Run Tool, End-of-file indicator?

$
0
0

I'm using Windows. When running a java class file from cmd in windows, pressing ctrl+z enters the symbols ^z, and it's seen as what I think is called an 'End-of-file indicator'. It's useful for a situation like this:

 

while ( input.hasNext() )
        {
            a = input.nextInt();
           
        }

 

When this generic while-loop is running, you can obviously enter whatever integer and it gets stored in the varaible 'a', and to exit the loop when running the application in cmd, you do what I said above: ctrl+z, press enter, and it exits the while loop. On mac and linux it would be ctrl+d.

 

But the same is not true in IntelliJ's run tool (I think that's what it's called). Pressing ctrl+z does nothing, and manually inputting "^z" just creates an error (not an integer obviously).

So, does it have a different end-of-file indicator? How would one exit this while loop from the run tool?

Wrap chained method class with this qualifier

$
0
0

When setting as "wrap always" for chained method calls, anything with a this qualifier is, in my opinion, incorrectly wrapped before the first method call.

 

i.e.:

this.myVar

        .myMethod()

       .mySecondMethod();

instead of:

this.myVar.myMethod()

               .mySecondMethod();

 

If "align when multiline" is also on for chained method calls, it also doesn't seem to align to any period or variable name or keyword in particular, as shown above (in my case that's 2 tabs worth).

Hibernate Console

$
0
0

Hi,

I'm using IntelliJ IDEA 12 with Spring 3.2.0 and Hibernate 4.1.9 and JDK 7.0 with Jersey for a Rest project.

Everything is working fine, the thing is, I cannot use hibernate console from Intellij.

I'm not using hibernate.cfg.xml, spring is managing everything, I've added Hibernate Support and IntelliJ detected my SessionFactory and my Entity classes but I cannot use the hql editor.

This is really important to me because I'm trying to change to Intellij.

Some times it gives-me:

 

java.lang.ClassNotFoundException: org.apache.log4j.Level

at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)

at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)

at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)

at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:33)

at org.jboss.logging.LoggerProviders.find(LoggerProviders.java:37)

at org.jboss.logging.LoggerProviders.<clinit>(LoggerProviders.java:32)

at org.jboss.logging.Logger.getLogger(Logger.java:2163)

at org.jboss.logging.Logger.getMessageLogger(Logger.java:2259)

at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)

at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:176)

at com.intellij.hibernate.console4.remote.HibernateFacadeImpl.createConfiguration(HibernateFacadeImpl.java:20)

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)

 

When I try again it gives me this:

 

 

java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.AnnotationConfiguration

at com.intellij.hibernate.console4.remote.HibernateFacadeImpl.createConfiguration(HibernateFacadeImpl.java:20)

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)

 

Thanks.

Intellij make build maven resources filtering

$
0
0

I've been trying to use IntelliJ IDEA CE 11.1 (#IC-177.177) to do resources filtering for my Android project.

 

If I compile the android app using maven directly "mvn clean package", resource filtering is applied successfully to my final apk.

If I build the android app using the Intellij make process, the resources that gets packaged in the apk don't get filtered.

 

For example if I had a app.properties file under "src/main/resources" with this content, it doesn't get replaced by intellij build process but

works perfectly with maven.

 

app_version ${version}

 

 

I know the build process for IntelliJ is a bit different than maven but I'm not entirely sure where it differs.

Am I doing something wrong here or is this an issue?

 

Maven pom used:

 

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.lixar.filtering</groupId>

    <artifactId>filtering-app</artifactId>

    <version>1.0-SNAPSHOT</version>

    <packaging>apk</packaging>

    <name>filtering-app</name>

 

    <properties>

        <platform.version>2.3.3</platform.version>

    <app.name>filtering-app</app.name>

    </properties>

 

    <dependencies>

        <dependency>

            <groupId>com.google.android</groupId>

            <artifactId>android</artifactId>

            <version>${platform.version}</version>

            <scope>provided</scope>

        </dependency>

    </dependencies>

 

    <build>

          <sourceDirectory>src/main/java</sourceDirectory>

          <resources>

               <resource>

                    <directory>src/main/resources</directory>

                    <filtering>true</filtering>

                    <includes>

                         <include>*.properties</include>

                    </includes>

               </resource>

          </resources>

        <plugins>

            <plugin>

                <groupId>com.jayway.maven.plugins.android.generation2</groupId>

                <artifactId>android-maven-plugin</artifactId>

                <version>3.1.1</version>

                <configuration>

                    <androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>

                    <assetsDirectory>${project.basedir}/assets</assetsDirectory>

                    <resourceDirectory>${project.basedir}/res</resourceDirectory>

                    <nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>

                    <sdk>

                        <platform>10</platform>

                    </sdk>

                    <undeployBeforeDeploy>true</undeployBeforeDeploy>

                </configuration>

                <extensions>true</extensions>

            </plugin>

 

            <plugin>

                <artifactId>maven-compiler-plugin</artifactId>

                <version>2.3.2</version>

                <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                </configuration>

            </plugin>

        </plugins>

    </build>

</project>

Incorrect path being shown after importing a module... is this the expected behaviour?

$
0
0

See the attachment, look next to the google-play-services_lib module in the project tab: C:\d\android\tests\gmapv2_and_async_tasks but  it isn't the path for the module but for the project. Is this the expected behaviour when importing a module from existing source? That the path for the project is displayed next to the imported module?


Modular AIR app packaging issue

$
0
0

I'm developing an application in AIR that uses modules.  The application runs fine during development but the modules do not seem to be making it into the build when I create the installer.

 

I'm sure I have this miscofigured somehow but I'm at a loss to figure out the issue.  I have the modules configured properly in the project structure, I believe.

 

Any advice appreciated!

 

JB

File merged color on Darcula is hard to see!

$
0
0

Hi,

 

I find the default color scheme for Darcula used during file merged is a neon purple foreground color on dark bg extremely difficult to read, to a point it hurst my eye. I had to manually changed it to something different. Has anyone else experience this or just me? Should IntelliJ change this particular default color to more readable one?

 

Thanks,

Zemian

in IntelliJ IDEA with jUnit Text. Can I see how much of the project was covered in test

$
0
0

in IntelliJ IDEA with jUnit Text.  Can I see how much of the project was covered in test cases

AspectJ IntelliJ - No matching factory method found: factory method 'aspectOf()'

$
0
0

So I have a spring / maven project which i've recently moved over from eclipse to intellij. Mainly this was due to Juno giving me performance grief. Anyway when I make in intellij It seems that the aspects aren't weaved, I can't work out why though. It works perfectly from command line so I suspect its something to do with my setup in intellij.

 

I've exhaustively tried various combinations of the aspectJ weaver plugin and the Ajc with no success.

 

I would like to know exactly how to set it up correctly?

 

Cheers

Mike.

Intellij IDEA, Local History report and labels.

$
0
0

I am looking at Intellij IDEA, Local History report and labels and it looks like it makes a label everytime my code passes and failed a junit test.  it that true?

Anyway to Make IntelliJ IDEA run command line commands

$
0
0

Anyway to Make IntelliJ IDEA run command line commands.

 

I am working with git and subversion some sometimes I need to run "gut svn dcommit".  I know the current version of IntelliJ does not support it but can I somehow make a button on the screen to run the command

GRAILS: buildconfig.groovy and buildconfig.java

$
0
0

GRAILS plugin

 

I used to have app/conf/buildconfig.groovy, but instead, all of sudden, I have buildconfig.java file in its place.

 

What happened?

 

-Jay


Fsnotifier on mac?

$
0
0

IntelliJ has an application to notify it, when files on the disk have changed.
I downloaded the latest version for mac, from:
https://github.com/JetBrains/MPS/blob/master/bin/mac/fsnotifier
I have mac os 10.7.4 (tried also on 10.7.5)

 

Now when I try to add some directory to be watchable:
ROOTS
/Users/andres.luuk
#
I get:
UNWATCHABLE


Is this the same as in Windows, that the application watches the entire disc and always says UNWATCHABLE?

 

Additional problem I got was that it reports only DIRTY events. Is this normal that I don't get an other kind of events?

 

./fsnotifier --selftest seems also not to work for me, is this command missing from mac version or with a different name?

IDEA 12 CE, Android & OS X

$
0
0

Hi,

 

I use IntelliJ professionally and wanted to have a go at some Android development in my spare time. I've run into some problems though and I'm at a loss.

 

I've installed the Oracle 1.7 (u13) JDK and IntelliJ 12 CE and used the Android SDK Manager to download all the Android 4.2 stuff. I've even worked around the problem with having to set up a Java project to get IntelliJ to pick up the JDK.

 

The problem I'm having is that if I create a new "Android Module" project and point it at the Android 4.2 SDK in concert with the Java 1.7 SDK, I can't make the project:

 

 

java: Errors occurred while compiling module 'Torch'
Compilation completed with 7 errors and 7 warnings in 2 sec
7 errors
7 warnings
java: warning: java/lang/annotation/Target.class(java/lang/annotation:Target.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
java: warning: java/lang/annotation/ElementType.class(java/lang/annotation:ElementType.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
java: warning: java/lang/annotation/Retention.class(java/lang/annotation:Retention.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
java: warning: java/lang/annotation/RetentionPolicy.class(java/lang/annotation:RetentionPolicy.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
/Users/simon/IdeaProjects/Torch/src/uk/co/realityswitch/torch/Torch/MyActivity.java
java: /Users/simon/IdeaProjects/Torch/src/uk/co/realityswitch/torch/Torch/MyActivity.java:3: package android.app does not exist
java: /Users/simon/IdeaProjects/Torch/src/uk/co/realityswitch/torch/Torch/MyActivity.java:4: package android.os does not exist
java: /Users/simon/IdeaProjects/Torch/src/uk/co/realityswitch/torch/Torch/MyActivity.java:6: cannot find symbol
symbol: class Activity
java: /Users/simon/IdeaProjects/Torch/src/uk/co/realityswitch/torch/Torch/MyActivity.java:11: cannot find symbol
symbol  : class Bundle
location: class uk.co.realityswitch.torch.Torch.MyActivity
java: warning: java/lang/Override.class(java/lang:Override.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
java: warning: java/lang/annotation/Annotation.class(java/lang/annotation:Annotation.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.

 

 

The IDE itself doesn't seem able to resolve classes from the Android SDK (see attachment).

 

Additionally, Although IntelliJ created the project and there's an ant build.xml, it doesn't process it into the "Ant Build" panel. If I manually add the this file to the Ant Build panel, I can use the targets in there to build the project successfully.

 

Incidentally, I can build the project without having to edit anything using ant on the command line.

 

I know and like the IntelliJ IDE and would prefer to use it over the Eclipse bundled with the Android SDK.

no squiggle on module in project tree

$
0
0

I have a multi-module project.  When a compile error occurs I see squiggles in the source tree up to the module level, but not at the module level.  To get an overview of my project errors I have to collapse all project modules, then open each module to see if I have errors.  This is, to say the least, awkward.  Is there some setting that enables this feature?

 

Also, there does not appear to be a "problem view" listing all the errors/warnings in the project (as in eclipse).  Is there such a feature?  Where?

 

I am using idea 12 ultra.

Code completion changes in IDEA 11 -> 12. Should I submit a bug?

$
0
0

Hi guys,

 

Since I updated to version 12 (I have 12.0.3 now however it changed in the major release) code completion seems to have gotten much worse. The main point where I notice it is when I go to declare something final.

 

E.g. 11.1.5

 

idea-11-completion.png

Whereas in 12.0.3

 

idea-12-completion.png

The code completeion settings are exactly the same in both versions. I quickly checked through the IDEA youtrack but couldn't really find anything related. I am planning to submit a bug for the however I have noticed some projects prefer discussion in the forums before hand to avoid filling their issue tracker with junk. So, should I submit a bug? It has been driving me crazy as I have picked up a habit of declaring everything that can be final as final.

 

Thanks.

 

Brent

Annoying messages auto-show

$
0
0

I enabled a setting that attempts to build when changes are made.  However, this seems to cause some rather annoying behaviors that I just can't figure out how to correct.  If I start typing something (but don't complete the line) and pause for a second, it will start a build and automatically show the messages window with errors.

 

How can I disable the auto-showing of the message window after a build?  This is very annoying as it steals focus and cannot be easily closed without using the mouse to minimize it again and also causes my windows to constantly resize when it pops up.

 

On further checking, this appears to have happened as a side-effect of the eclipse mode plugin.  Disabling that plugin stops the messages window from showing up.

Viewing all 5481 articles
Browse latest View live