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

changing the execution path of a maven module

$
0
0

I have a maven project with several modules in nested directories.

I need to be able to run a main method or a test case in a maven module such as its execution path is the root where the module is located, not the one of the root maven project, as it seems to be by default.

 

For example, if I implement the class below, belonging to one of the modules, and execute its main method I currently see in the console the absolute path of the parent project, not the one of the module, as I expected:

 

 

public class X {

    public static void main(String[] args) {
        System.out.println(new File(".").getAbsolutePath()
        );
    }

}

 

 

 

What is the easiest way to change this in IntelliJ? I already took a look to the module properties but I cannot see something related to what I need.

Ideally, I am looking for a single place setting, instead of going module by module changing each execution settings.

 

Thanks in advance!


Putting conditional breakpoints in lambda expressions in IntelliJ

$
0
0

Hello,

    How can I put a conditional breakpoint in a lambda expression in IntelliJ. For eg. I have a statement stream().map(s -> s * 2).forEach(...). I want to put a conditional breakpoint s == 5 on this statement. IntelliJ doesn't recognize s as valid?

How can I create a build system for Graphviz / dot graphics?

$
0
0

Is there a plugin available to do this, or is there a way to create a custom build system to compile graphviz documents?

 

Thanks!

[SOLVED] Intellij python plugin difference pycharm

$
0
0

Hi,

 

I did small test python program.

 

I used IntelliJ IDEA (build #IU-141.1532.4, 18 Jun 2015 00:00) + Python plugin ver:4.5 141.1624 and

PyCharm Community Edition (build #PC-141.1899, 06 Jul 2015 00:00)

 

Test program

import time
import numpy as np


start = time.time()
print("hello")
time.sleep(0.3)

zeros = np.zeros((1, 10), np.float64)
print(zeros)

end = time.time()
print(end - start)

 

After I run program I got

/usr/bin/python3 /IdeaProjects/test/test.py
hello
[[ 0.  0.  0.  0.  0.  0.  0.  0.  0.  0.]]
0.30121850967407227

Process finished with exit code 0

/usr/bin/python3 /PycharmProjects/test/test.py
hello
[[ 0.  0.  0.  0.  0.  0.  0.  0.  0.  0.]]
0.301145076751709

Process finished with exit code 0

 

Issue: IntelliJ gave me feedback "No module named numpy" and no auto completion functionality

At PyCharm I set everything the same but it doesn't return any error, auto completion worked and output is basically the same.

 


Ales

most. annoying. bug . ever (well for me)

$
0
0

for the couple of versions, i've been expiriencing something very annoying .

 

i'm usng a DeathAdder left handed mouse, with a scroll wheel in the middle, so maybe that's an issue, but many times, if i place a console window next to the code window, while debugging, scrolling down the the console somtimes causes the CODE window the scroll down, and it's just doesn't stop, the only way is to close that code window and re-open it.

Creating class implementing interface in one single step

$
0
0

Is it possible to somehow select an interface and instruct IntelliJ to create a new class that extends it?

Websphere remote debugging and SOAP connection

$
0
0

Hello,

 

I'm new to Websphere remote debugging. In IDEA 14 I created a run/debug configuration. On Tab Startup/Connection at Debug I know how to set the Debug port and where I have to set the same port in Websphere.

However when I start I get a SOAP error.

On Tab Server there is the "Server Connection" area where a SOAP port of 8880 is set as the default value. This port is also configured in my Websphere server. However, if I click on "Test connection" I get a "Cannot connect" error message. I tried a lot filling the other input fields with actual values for Cell, Node, Server. All with no success. I have no idea at all about what to input into the User/Password field.

 

Can you help?

 

BTW, I can set up remote debugging using the generic "JSR45 Compatible Server" plugin. Here you just configure the correct debugging port as described above and it works.

So what is the extra value of the Websphere plugin anyway? I assume IDEA can do some remote administration through SOAP. What what for?

 

 

Best regards

 

Michael

question about font.

$
0
0

I'm new in Intellij, can someone please tell me what kind of font is in the picture.(he's using windows) thanks.


Can not deploy to JBoss 7: Artifact XXX:war exploded: Server is not connected. Deploy is not available.

$
0
0

Hi,

While evaluating IDEA 12.1 I encountered this error: Artifact XXX:war exploded: Server is not connected. Deploy is not available.

I created simple JSF application, created new local jboss configuration, added deployment (exploded war) and started debugging.

 

Also, I can not stop the server from the IDE, just pressing "Strop" button do not work, pressing "kill" button helps.

 

In IntelliJ IDEA Logs I see the following exception:

2013-04-20 14:15:53,267 [2049589]  DEBUG - erver.JavaeeServerInstanceImpl - 

java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out

at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:139)

at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:81)

at com.intellij.javaee.oss.jboss.agent.JBoss7Agent$Operation.executeOrFail(JBoss7Agent.java:146)

at com.intellij.javaee.oss.jboss.agent.JBoss7Agent$Operation.execute(JBoss7Agent.java:135)

at com.intellij.javaee.oss.jboss.agent.JBoss71Agent$1.validate(JBoss71Agent.java:25)

at com.intellij.javaee.oss.jboss.agent.JBoss7Agent.doConnect(JBoss7Agent.java:30)

at com.intellij.javaee.oss.agent.SimpleAgentBase$1.doJob(SimpleAgentBase.java:21)

at com.intellij.javaee.oss.agent.SimpleAgentBase$1.doJob(SimpleAgentBase.java:17)

at com.intellij.javaee.oss.agent.SimpleAgentJob.perform(SimpleAgentJob.java:16)

at com.intellij.javaee.oss.agent.SimpleAgentBase.connect(SimpleAgentBase.java:17)

but running
lsof -Pni | grep 9999
gives output:
idea       813 dima  279u  IPv4 0xf4fdc73d66362561      0t0  TCP 127.0.0.1:51459->127.0.0.1:9999 (ESTABLISHED)
idea       813 dima  280u  IPv4 0xf4fdc73d64bef7e9      0t0  TCP 127.0.0.1:51462->127.0.0.1:9999 (ESTABLISHED)
idea       813 dima  282u  IPv4 0xf4fdc73d6873c561      0t0  TCP 127.0.0.1:51465->127.0.0.1:9999 (ESTABLISHED)
idea       813 dima  283u  IPv4 0xf4fdc73d69f007e9      0t0  TCP 127.0.0.1:51467->127.0.0.1:9999 (ESTABLISHED)
java      1008 dima  284u  IPv6 0xf4fdc73d64bea399      0t0  TCP 127.0.0.1:9999 (LISTEN)
and amount of lines like "idea       813 dima  279u  IPv4 0xf4fdc73d66362561      0t0  TCP 127.0.0.1:51459->127.0.0.1:9999 (ESTABLISHED)"
increasing with the time
I use Mac OS 10.8.3
Also, I attach idea.log
Thanks.

Error during class instrumentation: com.sun.beans.finder.ClassFinder: java.lang.NullPointerException

$
0
0

I get this error when I run unit tests with coverage.

 

I'm using IntelliJ 14.1.4 with Java SDK 7_79.

 

Any ideas?

LeanFT IntelliJ support

$
0
0

Currently LeanFT will plug into Eclipse & VS. Is there a plan to allow a plugin to IntelliJ?

Ant 'presetdef' breaks validation?

$
0
0

I have an Ant buildscript that makes use of the PreSetDef Task. IntelliJ (14.1.4) appears to be struggling with it.

 

In the screenshot below, you can see that the IDE does regonize the pre-set: it's name "my.javac" is colored blue. However, any overrides are not recognized at all (colored red). The tooltip reads: "Element src is not allowed here"

Screenshot from 2015-07-30 14:49:57.png

This happens for pretty much all child elements of the preset. When I use auto-complete, only three child element suggetions pop up:

  • ant-project
  • context-ant-project
  • declaring-element

Only these two attributes appear to be valid

  • id
  • refid

I would expect that all child elements and attributes that are valid on the 'original' javac task are valid. What am I missing here?

reverse engineering plugin for spring application

$
0
0

hi,

 

Is there some kind of a plugin that I can use which outputs a UML diagram to show how things are wired together?

 

I just got this system, documentation is minimal and I have to learn how things are wired together and it's a bit hard doing this just by reading the code.

 

I hope there's some tool that I can use.

 

thanks,

 

simon

Best way to add dependency to external maven module

$
0
0

Context:

I have a maven module that for some practical reasons I need to execute it having in the classpath an external maven module, from another project, without having to include this dependency explicitly in the POM, but just by means of the IntelliJ configuration.

 

What I have tried:

In my first attempt I tried building first, with maven, the project I depend from. Then I just added the generated jars as libraries in the project where I need them.

This partially worked, I could see the classes from the projects I depended from but I could not see in the classpath the dependencies of those classes in the jars.

Then I tried with recreating the definition of the library, this time not using the jars of the external module, but attempted to generate a Maven dependency on such a module.

The problem with this approach is that when I configure the library as created "From Maven", IntelliJ cannot find which library I am talking about when I type its name in the text box, although such a library is installed in the Maven local repository, since I previously did a maven install in the external project.

 

Question:

What is the best (easiest) way to add a dependency to an external module (i.e., in a different project) so all the classes, resources, AND the dependencies of this module, will be in the classpath? I seem to recall than in Eclipse it is possible to indicate that a project depends on another project and automatically all the needed dependencies are automatically configured. How can I do something equivalent in IntelliJ?

 

Thanks.

Doing automatic installation of plugin

$
0
0

I am developing a custom plugin and I want to be added to intellij automatically or by default, so that someone does not need it to install manually. Is there any way to do this?


JRuby/sinatra app using debug works, run does not

$
0
0

Hi,

 

I have a simple JRuby/Sinatra App as an example of an issue I am running into. When I execute the app using debug with no breakpoints it works. When I execute it using run, sinatra is not invoked and I get the following

 

Process finished with exit code 0

 

I am running Intellij IDEA 14.

 

Is there anyone in the community currently using JRuby/sinatra and IDEA 14 and seeing this problem or knows a workaround?

 

Here's the example app:

 

require 'rubygems'
require 'bundler/setup'

require 'sinatra'

get '/' do
  "Hello JRuby World"
end


Thanks,

brian

"Autoscroll from source" not working in the Project window when looking for a class (ctrl N)

$
0
0

Not sure if this is a bug or I am missing something, but I have configured the Project window as "Autoscroll to/from source". However, when I look for a class (ctrl N) and a class is selected and opened in the editor, the Project window is not updated. I need to select any other class in the editor and select  the first one again in order to have it located in my project. Is this a bug?

 

Thanks

Error with ANE - Adobe Air

$
0
0

I have an Adobe Air app that uses 3 ANEs (Adobe Air Native Extensions) and 2 of them work perfectly.

 

But one of them gives me an error when compiling for iOS device:

"Error: libDialog.a are required to have universal iOS libraries. Please contact the ANE developer(s) to get the same."

 

this usually indicates that the Native Extension was not compiled for 64bits on ios.
But I know that this ANE supports 64 bits for iOS.

And more, it compiles and works fine on Flash Builder 4.6.

 

I've tried so many things with no success.

Any thoughts?

Terminal is blank after Windows 10 Upgrade

$
0
0

Prior to upgrading my computer to Windows 10, I never had a problem with the Terminal inside of IDEA 14+ working as expected no matter which type of terminal I was running inside of it (cmd.exe, powershell.exe, cygwin bash).  Now after upgrading, no matter what my terminal is always blank except for the blinking caret.  This is for IDEA 14+ as well as for IDEA 15 EAP.  See attached screenshot.

Intellij 14.1 forgets which files have been modified on git project

$
0
0

Hi,

 

I'm using Intellij IDEA 14.1.4 on OpenSUSE 13.1 linux.  I recently changed from working on a svn-based project to a git hosted project.  I know virtually nothing about git command line and just use intellij's built in git tools.

 

The problem is the project frequently forgets which project files have been modified.  The files will become listed as black in the file tree, and do not appear when I go to VCS -> Show Changes View.  If I edit the file and modify a single character, then all the modifications to that file suddenly appear, it turns blue in the file tree and shows up in the Show Changes View.  I will go on to make other changes in other files, and at some point the same file will turn back to black in the tree and not show in the show changes view.

 

I've deleted/recreated my project and deleted the projected folder and re-checked out the files from git.  Rebuilding indexes has no effect.  Sometimes restarting will cause files to suddenly appear in the change list.  It happens on a minute by minute basis.  To the best of my knowledge no other program/process is touching my project files, and it doesn't happen to an svn based project I have on the same file system.  I've tried removing the git package from my linux system and that made no difference.

 

Any guesses as to what is going on?

Viewing all 5661 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>