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

Intellij IDEA project not recognized, created in 14.0.3, fails to open in 13.1.5

$
0
0

I have a project with several intellij projects all in one mercurial repository - the sum makes an application.

 

I upgraded to version 14 but my partner did not.  He is using version 13.

 

When he pulls the projects from the repository and tries to open this intellij project, it has an intellij icon on the project folder.

 

When the IDE is open, only files at the root of the project are listed and a folder for external Libraries, no folders such as src.

 

We have done a file comparison of all the files on his and my computer and they all agree.

 

Really at a lose here and can only wonder if their is some incompatibility and the IDEA 13 is not capable of indicating an error ????

 

Does anyone have an idea of what to try ?  Do I need to revert or have two copies of the IDEA if my partner in this project can't afford to upgrade ?

 

I am really thinking its another issue and someone can help based on the above description.

 

THANKS

Jim


OS environment variables not loaded for "external tool"

$
0
0

I'm sure this has been asked, there's a lot of noise on similar topics when I search.

I'm trying to run some node commands (in my immediate case "phonegap serve") and WebStorm is balking on the command.

 

     Cannot run program "phonegap" (in directory "C:\......"): CreateProcess error=2, The system cannot find the file specified

 

The "phonegap" command is included in my environment variables' PATH along with other tools. I don't want to just use the absolute path to "phonegap.exe" because everything else it depends on such as cordova.exe et al needs to be in the path as well. And before we get into phonegap support etc, this is a broader issue that I've had to deal with for other non-nodeJS tools as well.

 

How do I include the OS environment variables in the "External tools" feature?

 

Using Windows 7 x64 and WebStorm 9.0.3 which is based on IntelliJ IDEA.

Questions about the "Changed Files" tool window

$
0
0

I recently upgraded to IntelliJ IDEA 14 (from 13.1), and I don't like the UI redesign of the "Changed Files" tool window. Is there a way to revert this back to the way it looked in v13?

 

Specifically, what I don't like is:

 

  1. Since the tool window is now combined with the "Project" tool window, I can't have both open at the same time, and switching between them is more of a hassle because now it takes 2-3 clicks: clicking to show the tool window, then clicking the dropdown arrow, then clicking on the other type (i.e. Changed Files or Project).
  2. The tool window's mini-toolbar has disappeared, so there is no longer an "Expand all" option. This button was really handy to see a quick list of all the files I've changed locally.
Please help me find a way to revert this tool window back to how it worked in IDEA 13, or show me what I'm missing with the above 2 concerns. Thanks in advance!

CTRL Click in webapp JS not working

$
0
0

All,
  I can't ctrl click method/variables in my JS files for a webapp project. My co-worker and I upgraded to intellj 14 and we both check out the same project from SVN. The co-worker gets highlighting and is able to control click. I do the same thing and none of the JS is highlighted correctly and I can't ctrl-click. Any thoughts/pointers are much appreciated.

 

sg

Idea 14 cannot resolve taglib with uri http://www.springframework.org/tags

$
0
0

I'm having a strange issue with taglibs in a JSP.  I have a page that includes several taglibs, but I'm getting errors on almost every one.  The http://www.springframework.org/tags taglib is in the spring-webmvc jar, which is a dependency of the project with a compile scope.  The jar file does contain the spring.tld file, and the URI in my JSP matches the one in the tld file.

 

What makes this really weird is that the http://www.springframework.org/tags/form taglib, which is in the same jar file, has no issues.

 

The application deploys and runs fine, it just shows errors when editing JSP pages.

 

Any ideas as to what might be happening?

 

I'm running Idea 14.0.3 on Windows, and the IntelliJ project was created by opening the Gradle build file.

 

Thanks,

 

Steve

TestNG config generates java.net.SocketException: Software caused connection abort: socket write error

$
0
0

I use Intellij IDEA Ultimate 10.5.

My develeopment testng version is 6.8.17.

mvn clean test runs fine from command line, but I get following exception when running a TestNG config within IDE, I can still debug the Java code no problems, but would like it a lot if the below error went away.

The plugin in plugins/testng/lib/ is whatever TestNG-J Available Plugin allowed naturally download and install thru the IDE. I am attaching those 2 jars with this mail.

 

java.net.SocketException: Software caused connection abort: socket write error

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)

at java.net.SocketOutputStream.write(SocketOutputStream.java:159)

at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1876)

at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1785)

at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1285)

at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1230)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1426)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)

at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)

at org.testng.remote.strprotocol.SerializedMessageSender.sendMessage(SerializedMessageSender.java:25)

at org.testng.remote.strprotocol.MessageHub.sendMessage(MessageHub.java:44)

at org.testng.remote.strprotocol.RemoteTestListener.onTestStart(RemoteTestListener.java:49)

at org.testng.internal.Invoker.runTestListeners(Invoker.java:1842)

at org.testng.internal.Invoker.runTestListeners(Invoker.java:1817)

at org.testng.internal.Invoker.invokeMethod(Invoker.java:668)

at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882)

at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189)

at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)

at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)

at org.testng.TestRunner.privateRun(TestRunner.java:767)

at org.testng.TestRunner.run(TestRunner.java:617)

at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)

at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)

at org.testng.SuiteRunner.run(SuiteRunner.java:254)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)

at org.testng.TestNG.run(TestNG.java:1057)

at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:106)

Debugger won't connect to Node js session

$
0
0

This was always working fine before and now it has just stopped. When I try to debug any node js apps using the node plugin the console just shows:

 

"C:\Program Files\nodejs\node.exe" --debug-brk=49586 app.js

Debugger listening on port 49586

but then the application never actually continues and runs. It works fine if I just try to run without the debugger. I have tried completely reinstalling intellij and node js with no luck.
I am running Intellij 12.1.7 and have never seen this problem before and I have installed on differant machines.
Please help.

Analyze unchecked exceptions

$
0
0

Hi,

 

Is there a way in Intellij Idea to show which unchecked exceptions "could" be thrown in the control flow path?

 

Cheers


Changes to external Java library not picked up by compiler?

$
0
0

I'm having an odd issue in IDEA 14, and I hope it's just something I'm not understanding. I've got a Java project with external libraries (which are actually Maven dependencies). Now in some cases, if I update a dependency, I may get a compiler error in a file. For example, it may say that I'm trying to pass type X to a method expecting type Y. Further, assume the method is on a class that's contained in the Maven dependency.

 

This is where it gets weird. If I click on the method and jump to the source (which is in the external JAR), the type for the method argument is correct. But for some reason, my source file still has an error flag saying the type is wrong. I've tried doing a Synchronize on the file, the module, and even on the external JAR in the library section of the project tree. I also tried using the Maven panel to compile, do a clean/install, reimport the module, and even reimport all modules. The only thing that seems to occasionally work is shutting down IDEA completely and then restarting it. At that point, it does something (a re-index?) which finally gets rid of the error.

 

Is this normal? Is there some trick here to get IDEA to really pick up a change in an external library? The only things I've haven't tried yet are Make Module and Rebuild Project, which I'll try the next time this happens. However, that seems kind of extreme for something that sounds like it should "just work". I feel like I'm missing something here. Any help appreciated.

 

Thanks,

 

Brian

Maven dependencies in workspace - but still download sources needed

$
0
0

Hi,

 

I have project with multiple modules, basically two types

  • A - applications, dynamic-snapshots
  • B - libraries/interfaces, dynamic-snapshot, without sources in maven repo
  • applications depend on libraries -> but on versioned ones

 

Whenever I need to go to libraries code while looking at libraries Intellij is showing decompiled code with option to "Download sources", "Choose sources"

If version of library changes (and it changes on daily basis) I need to choose sources once again.

 

Is there any possibility to configure this permanently? That some artifact form my workspace is source code for some maven library?

 

BR,

Lukasz

Java 8 Lambdas in Structural Search

$
0
0

I am having some issues using Structural Search in IntelliJ 13.1.  I am attempting to refactor some code which makes use of lambdas but I can't seem to get the pattern to recognize the lambda unless I treat it as a single opaque argument.  However, I need to refactor both the method called which accepts the lambda as well as the body of the lambda itself.

 

Here is an example of the code I am trying to refactor:

 

getAuthenticatedContext(response)    .then(context -> {        // could be any number of statements here        service.doSomething(context, arg1, arg2, ...)            .then(response::resume)            .fail(response::resume);    })    .fail(response::resume);

 

I am trying to refactor it to the following:

 

withAuthenticatedContext(response, context -> {    // could be any number of statements here    return service.doSomething(context, arg1, arg2, ...);});

 

The pattern that I have tried so far is as follows:

 

getAuthenticatedContext($response$)        .then($context$ -> {            $Statements$;            $service$.$method$($args$)                    .then($response$::resume)                    .fail($response$::resume);        })        .fail($response$::resume);

 

Where $Statements$ and $args$ are both set to 0...unlimited instances.

 

I've tried simplified patterns as well just to try to match on the lambda in any form but the only variation that seems to find anything is as follows:

 

getAuthenticatedContext($response$)        .then($Lambda$)        .fail($response$::resume);

 

I assume that I'm formatting the lambda capture incorrectly and that the syntax must be more explicit than Java 8 permits?  I know that this tripped me up with the diamond operator.  Even at it's most explicit I can't manage a match:

 

getAuthenticatedContext($response$)        .then(($CallbackType$<$Type$>) ($Type $context$) -> {            $Statements$;        })

 

Does anyone know what syntax IntelliJ expects for structural search/replace with lambdas?

 

Thanks

Sequence diagram support for IntelliJ 13

$
0
0

Hi everyone
First post from a new IntelliJ user.  I have tried a couple of the UML tools from the plugin repository (Modeling and CASE Tools) but they either don't work with my version of IntelliJ or I am not using them correctly.  Is it possible to generate sequece diagrams with IntelliJ 13?

 

Thanks in advance.

EAP fail

$
0
0

The current line of 14.1 EAPs have a serious bug in the Jetty support

which is a complete and total fail for me.

 

Any chance of getting this fixed?

 

Thanks,

 

Donald

 

Yet Another 14.1 EAP (IU-140.2683.2) Fail

$
0
0

you seemed to have released a new EAP without a corresponding working Scala plugin?  i think Scala is too major at this point for you to continue doing this.  you need to make sure the Scala plugin is released and available at the *same* time.  Also, finding out if there is even an available Scala plugin from either the Idea plugin configuration screens or your web site is a nightmare.  there is a lot of useless info about ancient versions of both Idea and the plugin that are displayed and confusing.  There is even advice about how to configure a 14.1 EAP Scala plugin repo that seems to be incorrect (nothing is displayed after configuring).  i love Idea and i love its Scala support but your web site and release strategies drive me NUTS.

Does anyone know how to enable TypeScript development for node apps?

$
0
0

No matter what I do, I cannot make TypeScript to resolve node's built-in methods. Can anyone help me, thanks?


Maven archetype repository

$
0
0

When you create a new Maven project it will show a list of archetypes.

Is there a way to configure the repository where this list is retrieved from?

I want to set the archetype catalog.

Actionscript profiler is broken.

$
0
0

Hi, I'm using for the first time the profiler, and it seems to be broken.

 

The "live instances" are not really live, they seem to be lifetime instances, they just accumulate, never get GC. And the GC button doesn't do anything.

 

I'm using the profiler that you install from the repository, not sure if there is another profiler.

 

I remember using the Flash Builder profiler with success to detect memory leaks and objects that were left behind not GC, but now it makes the task impossible.

running as root removes all settings and licenses

$
0
0

Hello,

 

We have an application that needs to bind to a port on OSX that requires root priveleges so I have been running /Applications/IntelliJ IDEA 14.app/Contents/MacOS/idea as root using sudo.

 

When I run it as root using sudo, it asks me for my license and acts as if it is a fresh install with no settings.

 

When I run idea normally it recognises my license and configuration settings.

 

Is there any way to run idea as root and recognise all my licenses and settings from my non-root user?

 

Thanks,

John

IntelliJ Android course / training in The Netherlands

$
0
0

Hi,

 

I'm looking for an IntelliJ Android course / training in The Netherlands.

Maybe also for several people at the same time.

 

Are there companies or people in The Netherlands who are teaching this?

 

Thanks and best regards,

Egbert

Migrating an Eclipse AspectJ project

$
0
0

Hi *,

 

at my company, we are currently working with Eclipse for our Java projects.

As me and some other coworkers would rather use IntelliJ, we took a crack at migrating our projects and failed at getting AspectJ to work.

 

Here are the steps we took:

 

  1. import the project and dependencies into IntelliJ
  2. download and install AspectJ
  3. Under Settings -> Java Compiler: Use ajc compiler, delegate to javac (path to aspectjtools.jar is correct as the test button indicates)
  4. Add AspectJ libs to Global Libraries (aspectjrt.jar, aspectjtools.jar, aspectjweaver.jar, and org.aspectj.matcher.jar)
  5. Create AspectJ facet for the one module that is using AspectJ, leave all settings as is (no aspect path defined)
  6. Add aspectjrt to project libraries
  7. rebuild, make etc.

 

On make I get the following errors:

Error:(38, 0) ajc: The type LoggingDirectory must implement the inherited abstract method LogContext.isDebugEnabled()

 

LogContext is just an empty interface. Classes that want a logger appended implement this interface.

 

This method is injected with AspectJ. Unfortunately I am not an expert with this and guy who implemented it already left, so I am stuck.

 

In order to check general functionality, we implemented a tiny project from scratch with just three classes with the same settings as above:

 

publicinterface LogContext {}   

 

public aspect LogContextAspect {    publicvoid LogContext.log() {        System.out.println("Log!");    } } 

 

publicclass Aspect implements LogContext {     publicstaticvoid main(String[] args) {        Aspect aspect = new Aspect();        aspect.log();    } } 

 

The code actually executes fine and prints out the "Log!" message, but on make I get the following error:

Error:(4, 0) ajc: The type Aspect must implement the inherited abstract method LogContext.log()

 

What are we missing here? In order to migrate our projects, we need AspectJ to work.

The whole system is built with Java 6 compatibility but runs on Java 7.

 

Thanks for your help!

 

- Sascha

Viewing all 5481 articles
Browse latest View live