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

Dart plugin only does completion on built-in types

$
0
0

IDEA 14.0.2

Dart plugin 139.848

Dart SDK 1.8.3_r42039

 

Ctrl-Space will offer completion for built-in types like String or List, but for library types or my own types it only says "No suggestions". Dart support is enabled for the project.

 

I don't know what I should be looking for here. Any suggestions?


IntelliJ 14 Excluded folders are included in code links

$
0
0

Hi all,

 

In my web project I have my "dist" folder marked as Excluded but in the editor if I ctrl-click to open a resource file it shows multiple implementations including this dist folder. I'm on 14.02. Is this a bug or am I missing something?

 

Thanks!

Refactor all Fieldnames startig with "_"

$
0
0

I want to replace all fieldnames that start with "_" with the same Fieldname without "_". ( I have many of those ...).

I'm using the "Replace Structually" function for this and I'm able to find all fieldnames but I can't replace them.

 

What would be the best attempt to solve this?

 

Sincerly

 

Grauen

Invalid maximum heap size: -Xmx8192m

$
0
0

Hi,

 

I've changed within IntelliJ IDEA the maximum heap size to 8192m.

Appearantly, that's too high for IntelliJ IDEA.

But, and that's worser , IntelliJ IDEA does not startup again and leaves

the following message:

 

"Invalid maximum heap size: -Xmx8192m

The specified size exceeds the maximum representable size.

Could not create the Java virtual machine."

 

How do I get out of this?

In which IntelliJ IDEA configuration file is the "Xmx" parameter stored,

so I can patch it.

I did also not found a command line parameter to overide this setting.

 

Greetings from Belgium,

 

Johan

Exceptions not clickable anymore in Run Tool Window

$
0
0

Hi,

 

I recently upgraded to Idea 14, and since then exceptions that are thrown in the run tool window are not clickable anymore (iirc they used to bring you to the file/line the clicked line is referring to)?

Anyone has an idea why this is?

 

Best, tmeyer

IntelliJ IDEA - Unsupported JVM - OpenJDK 6 is not supported

$
0
0

Hi,

 

As a software developer, in some cases, we have to work on software which is already aged.

Sometimes, you have also restrictions on a software collection to work with not

so "state of the art" technology.

 

Why does IntelliJ IDEA does not support OpenJDK 6?

A suggestion is made to use Oracle Java or a newer OpenJDK.

 

But, that is a risc, with aged software (above the things I have

to change in the sources), which I don' like to take now in the beginning

of the development for a new requirement.

 

Best Regards,

 

Johan

Why would IntelliJ not organise Java imports even though the Auto Import options for Java are enabled?

$
0
0

Hi!

 

I'm trying to convince a colleague of mine how much nicer IntelliJ is compared to Eclipse. I finally got him to try it, and we set the Auto Import options to on (cf. attached screenshot).

Unfortunately, IntelliJ chooses to ignore these settings. There are unused iimports in a file, but the editor just doesn't remove the lines automatically.

We have to chose Code > Optimize Imports for it to work.

 

Any idea what I might be missing?

Is there maybe an optio "only touch lines you edited before"?

Might it be an issue with available memory? (The project is big, but the file itself has maybe 40 lines - mostly annotations for Junit and Cucumber.)

 

Kind regards,

 

Christian

Goto Next / Previous Splitter: do these work?

$
0
0

I'm in 10.5  on ubuntu. The functions in this title do not appear to work.  When I am in editor splitter 2 to be able to go to editor splitter1 and back again to 2 using these keystrokes would be v helpful.

 

Anyone else have luck with these?


Breakpoint is not hit when adding a condition (Intellij 14.0.2/Java 1.7)

$
0
0

Hi all,

 

I've got a strange issue with the conditional breakpoints. When I'm adding conditional breakpoint, the breakpoint is no longer hit.

 

For example, I add a breakpoint to a line of code, I see the breakpoint (it has got a check mark in it).

Now I add on the same breakpoint a condition (I edit the breakpoint via the right mouse click) and press Done.

 

The check mark is not there anymore and the breakpoint does not work.

 

To make the breakpoint work again, I need to disable the breakpoint and then enable it again and the press Done again.

 

I could not find a bug report and before I fill one, I want to be sure that it's not my configuration that to blame.

 

Kind regards,

Michel

 

---

Original message URL: https://devnet.jetbrains.com/message/5532909#5532909

 

Debugging AIR application on an Android x86 Virtual Machine

$
0
0

Hi,

I start by using adb to connect my Virtual Machine to the host.

I then tried to use the "network" debugging option, IDEA relaunch adb-server and henceforth kills the connection to the virtual machine and can't find the device.

I tried the USB debugging option, same results

 

Is there a way I missed to debug my app directly on the virtual machine?

 

Thanks for any help !

 

PS: I use an air-sdk able to deploy to x86 Android.

How to create a plugin to add Debug/Run to specific classes?

$
0
0

Hello,

 

When you right click on a class with a  'public static void main(String[] args) throwsException { ... }' you get the option to run, debug or profile the class.

 

How do you add this for specific types of classes and how can you define how its started ?

 

I hope some someone can give some information how to accomplish this.

 

Greetings

IntellJ Idea tomcat Hot swap failed: schema change not implemented Operation not supported by VM

$
0
0

I got this error when I try to reload class (hot swap) with changed method bodies in my project. Before everything works fine, but suddenly it stop and I don't remember nothing what could be a cause. What is strange I have another project with the same setting and hot swap for method bodies works fine.

 

Settings for NOT WORKING projects:

not-working 1.png

not - working 2.png

VM options:


-XX:PermSize=512m
-XX:MaxPermSize=1024m
-Xms1024m
-Xmx2048m
-Dcatalina.home="C:\Programy\apache-tomcat-7.0.57"
-Djava.endorsed.dirs="C:\Programy\apache-tomcat-7.0.57\endorsed"
-javaagent:C:\Programy\apache-tomcat-7.0.57/lib/spring-instrument-3.1.2.RELEASE.jar
-Dspring.profiles.active=closeMonthTest
-Dnpk.jobs.enabled=true

 

Settings for working project:

 

working 1.png

working 2.png

 

VM options:

-XX:PermSize=512m
-XX:MaxPermSize=1024m
-Xms1024m
-Xmx2048m
-Dcatalina.home="C:\Programy\apache-tomcat-7.0.57"
-Djava.endorsed.dirs="C:\Programy\apache-tomcat-7.0.57\endorsed"
-javaagent:C:\Programy\apache-tomcat-7.0.57/lib/spring-instrument-3.1.2.RELEASE.jar
-Dspring.profiles.active=test

In attachments I put setting (screens) for working and not working project.

Grails/gradle - Running spock unit tests

$
0
0

I am using Intellij 14.0.2. I am trying to run grails controller test cases, which uses the spock framework. My grails projects uses gradle for build and use the grails-gradle plugin. There are a few issues.

 

1. When I right click on the test file and "Run", it runs the gradle "test" target. However, it runs all the test cases in the project. I just wanted to run a particular test. The run configuration created by intellij passes "--tests <test class"" but still runs all the test cases. How do I make it run a single test?

 

2. The test results are not reported in the "Run" tool window. The console says all the tests are run, but also says "Test events were not received" in the left side.

 

3. If any of the test fails, I see the test failure in the console, but I also see a build error.

 

    FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':<project name>:test'.

> No signature of method: org.gradle.util.LinePerThreadBufferingOutputStream.writeTo() is applicable for argument types: (org.gradle.util.LinePerThreadBufferingOutputStream) values: [org.gradle.util.LinePerThreadBufferingOutputStream@dba057e]

  Possible solutions: write([B), write(int), write([B), write(int), write(int), write([B)

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

How to export Android Studio Project to IntelliJ?

$
0
0

First, let me say, yes I know that they both use the same project format, so that is not the issue. The issue that I'm having is that I've created an Android project using Android Studio 1.0 and now I want to work on the project in IntelliJ. In Android Studio I was able to press the run/play button and everything seemed to work right out of the box. When I try to do that with IntelliJ it does not. I'm guessing that I need to do some extra setup in IntelliJ, but I can't seem to find any documents telling me what to do. I tried changing the gradle script to include Maven as recommended by a Stack Overflow post, however I still have the same problem(s).

 

Would some one be so kind as to point me the the direction of the correct documentation so that I can import the Android Studio 1.0 project, that doesn't have any errors, into IntelliJ, press the run/play button in IntelliJ and have IntelliJ run the app without any errors.

 

I'm using IntelliJ Ultimate 14, which I purchased so that I could do both Android and Java development (with Spring) from the same IDE.

 

Thanks,

Pete

Error launching Intellij Platform - Error invoking main method

$
0
0

I have IntelliJ IDEA and other JetBrains products installed and they worked great (PyCharm, Android Studio, Clion, WebStorm) till today, now I just get opening message:

Error launching Intellij Platform - Error invoking main method

I have installed:

C:\Program Files\Java\jdk1.8.0_25

C:\Program Files\Java\jre1.8.0_25

and JAVA_HOME is pointing to jdk.

 

Please help I need IntelliJ Idea or Android Studio back ASAP.


BigInteger inspection problem

$
0
0

Perhaps I am doing something wrong. I am seeking to use the following statement:

 

BigInteger increment = new BigInteger.ONE;

 

or use in a for loop. The inspector flags it and states "Cannot find symbol ZERO"

I am not sure why it is flagging a parameter that is part of the BigInteger class.

Is there a setting I need to sdjust to get this to work properly?

 

Thanks in advance

Walt Williams

 

I am using IDEA 14 on Debian Linux (wheezy)

(I a student license)

Flex framework locales failing

$
0
0

In the module compiler settings, I have the needed locales checked. And the locales are present in the Apache Flex SDK. But the Flex DateFormatter only returns English months and days of the week no matter what language code I give it. I haven't found anyone complaining about this in FlashBuilder so I'm wondering if it is somehow specific to IntelliJ. Is there a workaround?

Can you develop commercial applications with IntelliJ community edition?

$
0
0

I've recently started using IntelliJ for my Java projects.  I am working on a project that will be used in another commercial project so I was wondering if I can use IntelliJ community edition to develop commercial applications with in a company of any size.  I did read the license but I don't find anything that says "yes" or "no" directly.

 

Thanks in Advance.

Debugging with GWT 2.7 and SuperDevMode.

$
0
0

I don't know if this is a limitation of (a) Source Maps; (b) GWT; or (c) IntelliJ 14...

 

I've got a good sized project which we recently updated to use GWT 2.7 and SuperDevMode. (Side note--Very painless to setup the new run configuration and It Just Worked!!!!)

 

I can set my breakpoints and see my code in the editor...so far so good.

 

The problem comes when I want to inspect a variable. All the variables show up as the somewhat mangled JavaScript names such as "result_0_g$" instead of the method parameter I have named, "result".

 

This means I can't do things like:

  • Hover my mouse over the variable, parameter or field to see a tooltip with the value
  • Evaluate Expression to get the details of the expression
  • etc....
Is there something (an option in the Run Configuration to pass in the Dev Mode Parameters perhaps?) that I've missed?
Thanks,
jay

Jar loader does not work with Tomcat plugin

$
0
0

I have the following line in my tomcat conf context.xml file

 

<Loader className="org.apache.catalina.loader.VirtualWebappLoader" virtualClasspath="${catalina.base}/lib/extra/*.jar;C:/Software/config/project/logging"/>

 

When I launch tomcat via the command line, there is no problem.

But when I start my appplication via the plugin, I hava a java.lang.ClassNotFoundException.

Can you help me?

Viewing all 5661 articles
Browse latest View live


Latest Images

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