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

Automatic task creation on each Mercurial commit

$
0
0

I am using Mercurial integration. For each commit made, IDEA creates a task that is displayed in toolbar task combo under 'Closed Tasks'.

 

Is this intentional behaviour? I find it useless and counterintuitive, since I usually already have a task that I am working on, make commits as I progress and don't need extra tasks created. These only clutter the task list.

 

Is it possible to avoid automatic creation of tasks?


Run HelloWorld class shows "Exception in thread "main" java.lang.ClassNotFoundException" IDEA 14

$
0
0

It's odd situation. But no luck in investigation here for me.

Simple class in file  HelloWorld.java:

 

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

 

Could be run for cmd like:

 

C:\Users\MUIRDOK\IdeaProjects\TestSky\src>javac HelloWorld.java

C:\Users\MUIRDOK\IdeaProjects\TestSky\src>java -cp . HelloWorld

Hello World!

 

But when I run it from ide I got:

 

"C:\Program Files\Java\jdk1.8.0_25\bin\java" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_25\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\zipfs.jar;C:\sik\sikuli-java.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain HelloWorld

Exception in thread "main" java.lang.ClassNotFoundException: HelloWorld

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

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

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

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

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

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

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

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:260)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)

 

Run configuration in attachment. For IDEA 13 it works fine. On other machine same. But in this case it's unworkable for IDEA 14. Thank you.

Java script resolution of function calls

$
0
0

Hello,

 

For example, consider the code below:

function hello1() {    console.log("hello1");}
var lib2 = function(context) {    context.hello2 = function() {        console.log("hello2");    };};
var lib3 = function(context) {    context.hello3 = function() {        console.log("hello3");    };}; 
function main() {    var importedLib = {};    lib2(importedLib);    lib3(this);     hello1();             // resolved    importedLib.hello2(); // resolved    hello3();             // not resolved}     

 

For "hello1()" and "hello2()" IntelliJ will find their usages. However, calling "hello3()" without specifying "this" or some other object is not resolved.

 

Is there a way to fix this?

 

 

Thank you,

Dmitry

CPP support

$
0
0

Will there be support for CPP? Maybe something like Clion plugin ? I know there is a C/Cpp plugin by advtools but it doesn't support this version (14.0.2).

Google App Engine facet uses absolute paths

$
0
0

Hello,

We are building a Google App Engine application in Python, so we added the GAE facet. The configuration of the facet requires the SDK directory. This directory is stored as an absolute path in the .iml file.

<component name="FacetManager">
  <facet type="google-appengine-python" name="Google App Engine (Python)">
    <configuration>
      <option name="rootFolder" value="ABSOLUTE_PATH" />
      <option name="sdkFolder" value="ABSOLUTE_PATH" />
      <option name="templatesFolder" value="" />
      <option name="oauth2" value="true" />
    </configuration>
  </facet>
</component>

 

Not all people on the team don't install at the same place and we have folks on Windows, Mac and Linux. We have tried to create Path Variables in IntelliJ without success. This is almost as showstopper as it makes it very hard to put the .iml in source-control. We are using IntelliJ Ultimate 14.

 

Is there any known workaround?

Thanks,

 

gabriel

how to delete theme?

shortcut for error info

How to enable message about exit code?

$
0
0
IntelliJ IDEA (Cassiopeia) IU-139.872.1
Build #IU-139.872, built on December 24, 2014
JRE: 1.8.0_25-b17 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation

 

Why Idea doesn't show message after process was finished? E.g. Process finished with exit code 1

I also tried without System.exit


Run tool window docked at the bottom not stretched to full window length

$
0
0
Hello,

I'm running IntelliJ Idea 14.2. I've switched from Eclipse. How can I make Run tool window docked at the bottom not to be stretched to full window length so tool windows docked on the left (e.g. Packages, Structure) could make use of full window height like Eclipse Console panel vs Outline panel on the screenshot below.

eclipse-lower_panel.png

ver 14. diff shelfed changes display wrong file

$
0
0

hi,

I am working with newest 14th edition and when I shelf changes I cannot display diff for chosen file. editor chooses random file from shelfed, change-set no matter which file I click. usually it shows last file in set.

this behavior is not connected with file type (pom, java, etc).

 

I am using 14.0.2 built 139.659 on windows 7 running 1.8 jre

 

any ideas?

Is there a way to search for text in all files with streaming results that have context? (like eclipse ctrl+shift+L)

$
0
0

Is there a way to search for text in all files with streaming results that have context? (like eclipse ctrl+shift+L)

 

I find that feature to be very helpful in eclipse. I can search for text anywhere and it lists results as it finds them. As I use the arrow keys to scroll over them, it shows me as many lines of surrounding code as there is room in the expandable window. I never have to use a mouse.

 

I've seen ctrl+shift+R, but that seems clunkier. Theres multiple settings and the results are in a different window. the results are displayed in a hierarchy that makes finding what i'm looking for more difficult. Going through the results is difficult without using the mouse.

 

Is there a better equivalent to eclipse's quick text search?

indent - Code Style -> Javascript -> Tabs and Indents

$
0
0

I am using WebStorm 9 on Ubuntu 14.04 . I have the Code Style -> Javascript -> Tabs and Indents set to the following:

 

Tab size: 4

Indent: 4

Continuation indent: 4

 

Despite that with Javascript files the tabs are still coming out as 2 spaces. I cannot make sense of this. What is going on? Does anyone know how to fix this simple thing?

 

P.S. I have the same problem with html files.

Run HelloWorld class shows "Exception in thread "main" java.lang.ClassNotFoundException" IDEA 14

$
0
0

It's odd situation. But no luck in investigation here for me.

Simple class in file  HelloWorld.java:

 

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

 

Could be run for cmd like:

 

C:\Users\MUIRDOK\IdeaProjects\TestSky\src>javac HelloWorld.java

C:\Users\MUIRDOK\IdeaProjects\TestSky\src>java -cp . HelloWorld

Hello World!

 

But when I run it from ide I got:

 

"C:\Program Files\Java\jdk1.8.0_25\bin\java" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_25\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\zipfs.jar;C:\sik\sikuli-java.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain HelloWorld

Exception in thread "main" java.lang.ClassNotFoundException: HelloWorld

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

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

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

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

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

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

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

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:260)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)

 

Run configuration in attachment. For IDEA 13 it works fine. On other machine same. But in this case it's unworkable for IDEA 14. Thank you.

How do I make the number pad arrow keys work correctly

$
0
0

When I use the arrow keys on the number pad (NumLock off) the keys don't move the cursor.  Instead they move the whole text window.  The PgUp, PgDn, Home, and End keys work properly by moving the cursor, but not the arrow keys.

 

How do I make the number pad arrow keys work properly (just like the other arrow keys) when NumLock is off?

 

I'm using Android Studio on Ubuntu 14.04.

How to execute an external tool and insert output to current file?

$
0
0

Currently, when you execute an external tool, the output is put in console.

Can I somehow put the output to current file, instead of console?

just like how this command works in vim:

:read !pwd

Thank you!

Leo Jay


IDEA 14.0.2 hangs?

$
0
0

Anyone else having this problem?  Since I upgraded to 14.0.2 Ultimate, it randomly hangs and becomes completely unresponsive.   Usually it's after I click the Windows "X" to close the app or after I attempt to switch projects.   Running in Windows 7 64 bit.  

 

I'm running on Java 7.0:

 

java version "1.7.0_55"

Java(TM) SE Runtime Environment (build 1.7.0_55-b13)

Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

 

And I'm attaching a thread dump.  

Every time I debug Javascript, Intellij opens a new Debug session...

$
0
0

Hello,

I am debugging Javascript with Chrome and everytime I run debug, it starts a new tab in Chrome and a whole new debug session which makes me lose my current debug layout in the UI.

Is this a bug?

Is there a way to make Intellij use the same debug session, just to auto terminate the one currently open? so it uses the same open tab in Chrome?

It's odd, becuase sometimes it will do it... but most of the time it wont... sounds like a bug..

 

 

regards,

 

Sean.

intellij has a bug with running two tomcat instances concurrently

$
0
0

I have two tomcat instances installed (different port: 8181 & 8282). If running a single tomcat instance, there is no problem but with two, one always crashed the other. Although i had these two tomcat in different directories and also added these two tomcat servers in intellij, after i run $ ps -ef | grep catalina, i realized that intellij use the same catalina.base for all tomcat instances. And i think that is the cause of the problem, see below:

  501 22155 18214   0   0:02.68 ??         0:45.83 /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -Djava.util.logging.config.file=/Users/x/Library/Caches/IntelliJIdea10/tomcat/Unnamed_tp69894d17/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/x/Software/tomcat-8181/endorsed -classpath /Users/x/Software/tomcat-8181/bin/bootstrap.jar -Dcatalina.base=/Users/x/Library/Caches/IntelliJIdea10/tomcat/Unnamed_tp69894d17 -Dcatalina.home=/Users/x/Software/tomcat-8181 -Djava.io.tmpdir=/Users/x/Software/tomcat-8181/temp org.apache.catalina.startup.Bootstrap start

  501 22235 18214   0   0:01.20 ??         0:19.83 /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -Djava.util.logging.config.file=/Users/x/Library/Caches/IntelliJIdea10/tomcat/Unnamed_tp69894d17/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/x/Software/tomcat-8282/endorsed -classpath /Users/x/Software/tomcat-8282/bin/bootstrap.jar -Dcatalina.base=/Users/x/Library/Caches/IntelliJIdea10/tomcat/Unnamed_tp69894d17 -Dcatalina.home=/Users/x/Software/tomcat-8282 -Djava.io.tmpdir=/Users/x/Software/tomcat-8282/temp org.apache.catalina.startup.Bootstrap start

Clean the cache but the problem still the same.

env: mac snow leopard, jdk 6, tomcat 6.0.32, intellij idea 10.0.2

IntelliJ IDEA 14.0 "performance experience" on MacBook Air?

$
0
0

Hello,

I'm thinking about buying a MacBook Air to be mobile. I'm mainly working on web development, needing to run a local PHP & Python webserver, mySQL and maybe MongoDB.

Has anyone experience about the performance of IntelliJ IDEA 14 on a MacBook Air in such a constellation

- 13"

- i5 1.4GHz

- 4GB

- 128SSD

I think that the main show stopper would be 13" and 128SSD?

Thanks for sharing your experiences.

yours

Michael

WYSIWYG Javadoc viewer/editor?

$
0
0

When editing javadocs in IntelliJ, you normally just see the raw html in your source file.

 

I would love have an option to right click on some javadoc block in my source file, and in the context popup menu, select an option to see how the html actually renders.  Ideally the html would be rendered in place, but even if was just displayed in a popup window (e.g. because that is simpler to implement), that would be an improvement.

 

This is especially useful for really complex javadocs (e.g. for a class), where you have more complicated html structure that can easily be mistyped.

 

It looks like other people have been calling for this for years as well.

 

I think that this functionality is completely absent from the base IntelliJ install.

 

Does it exist in some plugin that I have overlooked?

 

Should I put in a request to the IntelliJ developers?

Viewing all 5481 articles
Browse latest View live