intellij-14

Error: Unfortunately you can't have non-Gradle Java modules and > Android-Gradle modules in one project

时光毁灭记忆、已成空白 提交于 2019-12-20 08:15:08
问题 I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven. gps-trackman.v1 is my root project and I've not configured any outputs or facets for this project. The app is my android gradle module and I've configured Android and Android-Gradle Facet for this project and gps-trackman isn't my Spring Maven Project. I want to be able to build everything all together. Is it possible? I now get this error

How do I activate The new folding that shows parameter names for method values

会有一股神秘感。 提交于 2019-12-20 03:27:07
问题 How do I activate the new function that shows parameter names for method values in IntelliJ 14? Notable changes in IntelliJ IDEA 14 I saw this function (and liked it!) in one of the EAPs, but it seems to have disappeared from my IDE in the official release of IntelliJ 14. Thanks /Markus 回答1: It's Settings/Preferences | Editor | General | Code Folding | Inline parameter names for literal call arguments 来源: https://stackoverflow.com/questions/26800827/how-do-i-activate-the-new-folding-that

IntelliJ Ultimate 14 find usages not working

不羁的心 提交于 2019-12-18 13:52:48
问题 I am using Intellij IDEA 14 Ultimate. When I search find usages, in find view there is a info like Searching for usages in project files" and doesn't return any result. Scope is "whole project". I have also IntelliJ 14 Community Edition. When it try find usages in community edition, it works. Do you have any idea? 回答1: I had exactly the same problem, so for people looking for the quick answer, try File -> Invalidate Caches / Restart Thanks to user @yole and his comment. 回答2: If it doesn't

Debugger cannot see local variable in a Lambda

那年仲夏 提交于 2019-12-18 12:36:18
问题 I noticed that when I hover my mouse over a local variable when my debugger is stopped inside a lambda it will report Cannot find local variable 'variable_name' even if it's visible inside the lambda and it's used. Example code public class Main { public static void main(String[] args) { String a = "hello_world"; m1(a); } private static void m1(String a) { AccessController.doPrivileged((PrivilegedAction<String>) () -> { System.out.println("blala " + a); return "abc"; }); } } Try with a

IntelliJ Gradle Plugin: The supplied javaHome seems to be invalid

做~自己de王妃 提交于 2019-12-18 10:14:57
问题 Similar to: - Intellij 14 the supplied javaHome seems to be invalid - Android Studio - supplied javaHome is not a valid folder However, I am trying to use my JAVA_HOME variable which is set to C:\Program Files\Java\jdk1.8.0_40 I do not understand why intellij is looking for the JDK inside of its install directory. In intellij: Executing external task 'bootRun'... The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files (x86)\JetBrains

Intellij and Apache Tomcat not updating

走远了吗. 提交于 2019-12-18 07:23:08
问题 I have a project going on for a couple of months now using a Spring MVC framework. For developing I am using an Apache Tomcat 8.0.17 with an exploded war file. Everything worked well since yesterday. Now when I change my Java Files the changes are no longer visible. I can even throw runtime exceptions and stuff like that (I always restart the tomcat server). The only way to "update" my code is to rebuild the whole project (Build --> Rebuild Project) which is quite time consuming and very

IntelliJ collapsing single line methods

点点圈 提交于 2019-12-18 03:03:06
问题 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. 回答1: Open 'Settings' from the File menu. Under 'Editor' -> 'General' -> 'Code

IntelliJ new project - maven archetype list empty

大憨熊 提交于 2019-12-17 21:58:50
问题 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

Export/import project structure?

戏子无情 提交于 2019-12-13 14:42:18
问题 Just asked at Jetbrains forum, but it isn't too much activity there... so I haven't got any answer. Is it possible to copy project settings to another project?, I'd like to export project modules, dependencies, run configurations and so on. If IntelliJ can't do it, is there any plugin which has this feature? 回答1: That's a good question, actually I have same problem when I need to clone again my project from Mercurial SCM. AFAIK there is no standard JetBrains way. But what I am doing usually -

IntelliJ not pulling in Grails 3 private dependencies

别来无恙 提交于 2019-12-13 01:28:58
问题 I'm struggling to get IntelliJ 15 Ultimate Edition to work with Grails 3 private dependencies. Basically I have a repository (artifactory) where my private plugins are published. My application compiles/runs/pulls in all the plugins correctly but IntelliJ just doesn't pick up the dependencies. As you can imagine this is a nightmare for code autocompletion etc. Here's output from the gradle overview in IntelliJ And here is the config for the plugins in build.gradle - these environment