Hello everyone,
If I create a Maven project, and add dependencies in Maven pom.xml, I think Maven will update classpath, and how to see exsting classpath and Maven updated ones for build a Java project? Thanks.
thanks in advance,
Lin
Hello everyone,
If I create a Maven project, and add dependencies in Maven pom.xml, I think Maven will update classpath, and how to see exsting classpath and Maven updated ones for build a Java project? Thanks.
thanks in advance,
Lin
Hi,
I have a fairly large project, and I want to remove all unused classes. I spent about an hour trying to use IntelliJ's code inspector (Analyze -> Inspect Code...) , and couldn't quite find what I need.
Please see the attached screenshots of my IntelliJ code inspection. I've searched the web, and most answers point to using either the "Declaration redundancy" options or the "Code style issues" option. Neither of those, as you may see from the screenshots, seem to address the use case of identifying unused *classes*.
Any ideas/thoughts? I'd appreciate any input.
Best,
-Derrick
I am liking the changes to 14.1 overall but I noticed something different with the way 14.1 handles Maven projects.
It use to be where when I am finished working on a Maven project that I would go to the "Maven Projects" window, right click the module and do a remove. The source code from the "Project" window will also be removed. Now, removing it via the "Maven Projects" window does not entirely remove the module from my project.
Hello,
Ever since I've upgraded to version 14, I get frequent intermittent popup messages that prevent me from using the IDE until I either dismiss the popup or reload my project. This has happened with both python and CFML projects. The message says:
"Project Files Changed
Project components were changed externally and cannot be reloaded:
RunManager
Would you like to reload project?"
Screenshot is attached.
Any info on how this can be remedied would be appreciated
thanks,
Tony
Looks like IDEA caching settins file in settings directory. Because when i want to reset some settings to it default, delete some xml file for example, IDEA remembers old values. Only invalidate cache and restart fix that "issue". It is new behavor or bug?
Hey Guys ,
Is it possible to configure and query Redis as a DS
in the idea workspace ?
Thanks in advance
Roman
Hello all,
I use intellij idea every day and work with many projects. I have a lot of bookmarks for each project and work with global list isn't convenient. May be someone know how classify the bookmark with the project.
Thanks and regards,
Sergey
Hi there,
I am trying to figure out how I can add getters and setters using the code generate menu.
code:
var myObj = { config: { _strict; }, ... other code ...}
and I need:
var myObj = { config: { _strict; }, ... other code ... getStrict: function() { return this.config._strict; }, setStrict: function(value) { this.config._strict = value; }}
Hi there,
I am trying to figure out how I can add getters and setters using the code generate menu.
code:
var myObj = { config: { _strict; }, ... other code ...
}
and I need:
var myObj = { config: { _strict; }, ... other code ... getStrict: function() { return this.config._strict; }, setStrict: function(value) { this.config._strict = value; }
}
---
Original message URL: https://devnet.jetbrains.com/message/5538366#5538366
Anybody seeing this problem in 14.1? It used to happen in the EAP, but now a coworker who just upgraded to the 14.1 final release is also seeing it:
I've played around with all the options I can think of (copyright settings, code style etc) but I can't seem to prevent this happening. If I disable "Enable JavaDoc formatting" (under the "JavaDoc" section in the Java Formatter settings) then the problem doesn't happen. Obviously, no Javadoc formatting takes place, but at least I think the problem isn't caused by some other setting. None of the individual JavaDoc formatting options seem to control this behaviour however, only disabling the entire feature.
I've place my comments today on https://youtrack.jetbrains.com/issue/IDEA-126300 which is the closest I can find to a similar reported issue.
Hello,
I used the Maven mechanism in IntelliJ Idea and the support is very convinient. I can download the JARs from Maven Central and IDEA puts the downloaded Library directly in into the Modules Library path, so I can compile my Java Source.
Now, I would like to use Gadle. Grald comes with its own repository and stores the downloaded JAR files within the cache folder. Now I can run the gradle build but IDEA don't add the JARS automatically to the mdoule library folder. So I have to manually add all downloaded JARS files to the library project settings, so I can do my java source code creation.
I created a PATH Library which points to the Gradle root repository like this:
GRADLE_REPO = /Users/tadeusz/.gradle/caches/modules-2/files-2.1/*
So in this folder it contains all subdirectories which contains the source, java-doc and binary JAR files that have been downloaded by Gradle as defined deindependencies in my build.gradle file.
So I don't wanto to add manually all the jars files I defined as dependencies in my build.gradle file when I build my module. I would like to have the same comfort like with the maven integration.
Does anyone have already experience or a solution how I may use the Path library in order to archive this or another solution?
Kind regards.
Tadeusz
Hi,
When deploying HTML files with IntelliJ, is there a way to change the root directory?
The problem I'm having is that my project is deployed at localhost/Project-Name and using root-relative URLs links to localhost, rather than localhost/Project-Name.
For example:
I have an index.html that links to a stylesheet in stylesheets/styles.css using a root-relative URL (/stylesheets/styles.css). I get a 404 for this because it's checking localhost/stylesheets/styles.css, rather than localhost/Project/stylesheets/styles.css.
Everything works fine when I test it from my server, it's just local testing that is the issue.
tl;dr: is there a way to change web root from localhost/Project to just localhost?
Thanks.
Hello everyone,
I am working on a Maven project using IntelliJ. There are many dependencis defined in pom.xml, and wondering if any easy way to get all the JARS (the reason why I want to get the JARs, is because during Java program runtime, I need to set the JARs into classpath)? Currently, I have to find and copy them one by one from Maven repository. If any tricks which could dump all JARs into one directory, it will be great.
thanks in advance,
Lin
Hi,
I've read this article http://www.infoq.com/news/2015/03/eclipse-optimizer which is related on improving the performance of Eclipse by tunning some JVM parameters.
Then I've applied the following changes to the idea64.vmoptions:
- -XX:+UseConcMarkSweepGC
+ -Xverify:none
+ -server
+ -XX:+UseParallelGC
(I've removed -XX:+UseConcMarkSweepGC and added the other three lines at the end)
I've noticed a considerable speed improvement for my IDE (especially since my laptop is a bit older). I've run like this for about a day now and I haven't noticed any side effects.
What I don't know, and here's where the question comes in: Is it safe to apply these JVM settings and run the IDE or not?
I'm on Ubuntu 14.10 x64, with the following java version:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode
Thank you for your time and help.
Kind regards,
Florin
How I can use the Component Palette when creating JSP, JSF, (as well as for form)
I have the latest Community version 14.1. One unit test class is not associated with Gradle for some reason and the test failure due to a library dependency in my build.gradle isn't picked up. I can't see how I can attach the unit test class to Gradle.
How to solve this problem?
I am liking the changes to 14.1 overall but I noticed something different with the way 14.1 handles Maven projects.
It use to be where when I am finished working on a Maven project that I would go to the "Maven Projects" window, right click the module and do a remove. The source code from the "Project" window will also be removed. Now, removing it via the "Maven Projects" window does not entirely remove the module from my project.
I just installed IntelliJ Idea 14.1
Thank you guys from JetBrains company for all these new features but I noticed a step backwords.
I cannot directly open an existing maven project (created with maven 3.3.1) and I must use import function instead.
Any ideas?
Hi Intellij Community.
I am pretty bad at searching internet for this functionallity I will describe. I would like to ask if this is possible in intellij?
Let's say I have line
myVar.getId();
and I would like to transform it to
myMethod(myVar.getId());
Also is it possible to do something like
myMethod(myVar.getId());
and if I put my carret after "my" in "myMethod" and would let codeCompletion suggest me "myAnotherMethod" and by some magic shortcut it would end in
myAnotherMethod(myVar.getId());
??
Thank you
PS: I hope I made it clear what I am looking for
Hello,
I have a custom build script that I want to run. It has standard output of the form filename:line_number:err_msg similar to vim's errorfmt and the build succeeds if the script ends with error code zero. I want to run this script and have the IDE put a red squiggly (or yellow) line at that file and line number with the stdout error message.
The context is I have a golang project with very specific build parameters and static analysis that isn't built in. I want to see these issues in the IDE as I develope or at least before I do a git push.
Is this possible? I've spent time looking at "external tools", but cannot figure out how to integrate them into the IDE.
Thanks!