intellij-14

IntelliJ collapsing single line methods

99封情书 提交于 2019-11-30 10:41:49
Since I've updated my version of intelliJ (14.x to 15.x) it has started automatically collapsing single line methods in the Java editor: Previous version: public void setContext(SecurityContext context) { this.context = context; } Latest version: public void setContext(SecurityContext context) { this.context = context; } Is there a way to prevent this? I find the original version much easier on the eyes! Thanks. Open 'Settings' from the File menu. Under 'Editor' -> 'General' -> 'Code Folding', you will find a 'Collapse by Default' section. Simply uncheck 'One-line methods' and click OK. For

IntelliJ 14.1 is too slow when I import a Maven project

江枫思渺然 提交于 2019-11-30 04:52:48
If I import a Maven project (Import Project > choose the main pom.xml file > check Import Maven projects automatically > Next ...): in IntelliJ IDEA 14.1 Ultimate Edition it takes about 5 hours until is ready. in IntelliJ IDEA 14.0.3 Ultimate Edition it was about 20 times faster. During the processing, if I maximize a popup it looks like: The modules (folders) in the Project area are shown only at the end (only the files from the main directory are shown during the "resolving" - in this case immediately). The jar files are already in the .m2 folder, so the problem is not related to the time

Intellij IDEA Tomcat Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099

蹲街弑〆低调 提交于 2019-11-30 04:25:41
问题 I am using Intellij Ultimate edition 14.0.2 Working on a Java project using Maven as my build tool. We are getting this error when attempting to launch my project via Tomcat server. Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099 Have attempted, mvn clean install, rebuild the project in intellij, open and shut down intellij. 回答1: Thanks for the feedback everyone. I ended up editing my host file to reference my computer name.

java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

房东的猫 提交于 2019-11-30 04:14:12
I am trying to set the configuration location for my Project but I keep getting the following error: java.io.FileNotFoundException: class path resource [main/resources/app-context.xml] cannot be opened because it does not exist I have my project set up like this: And I have my code set up as: ApplicationContext context = new ClassPathXmlApplicationContext(configLocation: "main/resources/app-context.xml"); How can I fix this? What you put directly under src/main/java is in the default package, at the root of the classpath. It's the same for resources put under src/main/resources: they end up at

IntelliJ 14.1 is too slow when I import a Maven project

冷暖自知 提交于 2019-11-29 02:20:17
问题 If I import a Maven project (Import Project > choose the main pom.xml file > check Import Maven projects automatically > Next ...): in IntelliJ IDEA 14.1 Ultimate Edition it takes about 5 hours until is ready. in IntelliJ IDEA 14.0.3 Ultimate Edition it was about 20 times faster. During the processing, if I maximize a popup it looks like: The modules (folders) in the Project area are shown only at the end (only the files from the main directory are shown during the "resolving" - in this case

How to change project language level for all project in Intellij

陌路散爱 提交于 2019-11-29 01:05:41
I am using Intellij. It is good, but when I create a new project or import a project the default project language level set to 6 (@override in interfaces). But I want to set it 8 (Lambdas, type annotations etc). How can I do that? I have tried change the settings in "Other Settings" -> "Default Project Structure" and the set the project language level to 8, but no luck. Please someone help me. I have added a screen shoot. I am using Intellij 14.0.2 I changed the settings to Java 8 as advised above...-> Default Project Structure . It did'nt work!! I continued not being able to write Lambda's in

java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

别说谁变了你拦得住时间么 提交于 2019-11-29 00:52:41
问题 I am trying to set the configuration location for my Project but I keep getting the following error: java.io.FileNotFoundException: class path resource [main/resources/app-context.xml] cannot be opened because it does not exist I have my project set up like this: And I have my code set up as: ApplicationContext context = new ClassPathXmlApplicationContext(configLocation: "main/resources/app-context.xml"); How can I fix this? 回答1: What you put directly under src/main/java is in the default

Maven 3.3.1 Config Error in IntelliJ Idea 14

怎甘沉沦 提交于 2019-11-28 18:13:07
I got the maven .tar file from http://maven.apache.org/download.cgi , and installed it to the path /usr/local/. I run the mvn -version command in the new window, the output is correct. Below is my .bash_profile in my home directory: JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk7/Contents/Home CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar PATH=$JAVA_HOME/bin:$PATH: export JAVA_HOME export CLASSPATH export PATH M2_HOME=/usr/local/maven M2=$M2_HOME/bin PATH=$M2:$PATH export M2_HOME export M2 export PATH and the mvn -version is below : BianFranks-MacBook-Pro:~ Frank$ mvn -version

Intellij, project navigation. Expand all folder and file tree

天涯浪子 提交于 2019-11-28 17:24:36
Is it possible to expand the entire project tree in Intellij? I would like to do this so I can more easily search the structure and jump back and forth between files and folders. I know of double shift, and CTRL+SHIFT+N, but that is not what I am after. There is a Fully Expand Tree Node action, which is bound to Numpad * key ( * ) by default. But if you use this key, it doesn't expand the whole tree, rather it expands the first level and when you press it again it expands subsequent levels, and so on. But it can still do what you're trying to achieve. Just click the tree item you want to

IntelliJ new project - maven archetype list empty

旧巷老猫 提交于 2019-11-28 17:21:49
When creating IntelliJ → New Project → Maven , the archetype list is blank and does not populate no matter how long the amount of time elapsed. The "Loading archetype list..." continues but does not appear to do much. Any suggestions? Info from mvn -v : Apache Maven 3.2.5 (NON-CANONICAL_2014-12-25T17:13:28_root; 2014-12-25T05:13:28-08:00) Maven home: /opt/maven Java version: 1.8.0_25, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-openjdk/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.17.6-1-arch", arch: "amd64", family: "unix" IntelliJ IDEA