IntelliJ shows type hints for local variables in Kotlin as shown here: This makes it easy to see the type of variables even if their types are inferred. Java 10 introduces type inference for Java with the var keyword. However, IntelliJ does not show any type hints by default: After searching the internet for a bit, I was unable to
Tag: intellij-idea
Second root module in IntelliJ’s maven module view
I have a multimodule maven application with parent pom as follows: now in intelliJ’s maven module view i can see all modules however communication-management is displayed twice and i dont know why. From the structure of my application it seems like it shouldn’t be visible as root but somehow is. Here is the communication-management’s pom: and this is how i
Lombok @Builder not recognised by IntelliJ
I updated IntelliJ IDEA to version 2018.2.7, and Lombok’s @Builder annotation is not recognised anymore. The project already had Lombok annotations, which worked fine with previous (2017…) version of IntelliJ. Only @Builder is failing. I am using Lombok version 1.14.4. And Java 11. The problem is similar to this one: Lombok not working with Intellij But the solution provided there
IntelliJ IDEA stucks at “collecting data” while debug
I’m using IntelliJ IDEA to debug remote tomcat application. It works perfect before. However, for recent times, it always get stuck at “collecting data”, though the data is very small. I have searched on this site, and tried: Intelliji idea is very slow in debug mode and it is running perfectly in normal mode IntelliJ freezes for about 30 seconds
JavaFX and Maven in Intellij: JAVA_HOME set but “Unrecognized option –module-path” error persisting
Using Maven and JavaFX in Intellij (2019.1). I have been following this tutorial. I have a curious error that keeps occurring – every time I keep running the javafx:run plugin, it fails, giving this error: However, when I put the executable in the javafx-maven-plugin (<executable>”C:Program FilesJavajdk-12.0.1binjava.exe”</executable>) it works. I am on Windows and have set the JAVA_HOME system environment variable
What does “Process finished with exit code 1” mean in intellij-idea?
I got the error “Process finished with exit code 1” when I was running my Java code. I am using Intellij IDEA 2018.3. Below is the error log I got. Answer While running a Java application in Intellij Idea, after the program execution, JVM prints the exit code to the console. If the program terminates without any exception, exit code
Strange Javadoc wrapping in Intellij
Why I am getting this strange formatting of Javadoc in Intellij? The wrapping is completely off: This is my Intellij Javdoc Formatting rules Answer You can disable the Wrap at right margin option and use the Wrapping and Braces | Hard wrap at. The current behavior is a bit confusing and there is an open issue for that.
How to get a context.xml working with Tomcat and IntelliJ IDEA
I’ve been learning about connection pools, and I have gotten one working by using Tomcat’s PoolProperties. Now I would like to set one up using a context.xml file with Tomcat and IntelliJ, but I can’t get this to work. How is this done? A new project with a 4.0 Web Application framework can automatically create a web/WEB-INF directory with a
unable to create java package in maven project imported in Intellij
I’ve imported a maven project into Intellij and added a module to the src directory. But now I discovered that I cannot add a java package to new directory as I can with other projects, i.e., whenever I right click on the newly added directory, Intellij does not give me the possibility to add a java package. It would seem
Custom test source set with Gradle Kotlin DSL and Intellij
My project is using Gradle with Kotlin DSL for building. I now want to add a custom sourceset used for testing. The relevant code looks as follows: By using that, I get another module in Intellij, which is treated as source module. I also tried the following to mark it as test module: However, if I then do a ./gradlew