Which @NotNull Java annotation should I use?

I'm looking to make my code more readable as well as use tooling like IDE code inspection and/or static code analysis (FindBugs and Sonar) to avoid NullPointerExceptions. Many of the tools seem...

Can't compile project when I'm using Lombok under IntelliJ IDEA

I'm trying to use Lombok in my project that I'm developing using IntelliJ IDEA 11. I've installed 3rd-party plugin for IDEA and it seems working fine because IDEA sees all autogenerated...

IntelliJ IDEA: how to find all instance creation of a class?

abstract class Base {} class A extends Base class B extends Base How do I find all places in the code that create Base? (that is, have either new A() or new B()) UPDATE To make it clear, the...

sbt fails with java.lang.NoClassDefFoundError: sbt/ConsoleOut$

After using sbt for some time, something failed and I can't run sbt on my Ubuntu machine. I get this exception no matter what I do. Even running sbt help causes the following...

How to count the number of selected lines in Intellij Idea?

Are the number of selected lines shown in the Status Bar of Intellij Idea? ( The 'number of characters' selected count is shown if the selection includes words)

Android Studio - Push failed: fatal: Could not read from remote repository

I have a git project at Android Studio and a remote at BitBucket and I changed it to use SSH instead of HTTPS. I can make everything work using Atlassian's SourceTree, but in Android Studio every...

Could not find main class error in Android Studio

Am getting this error in Android Studio: Error:could not find main class com/intellij/idea/main I tried all the tips like: I set the variable JAVA_HOME as well as JDK_HOME Generally for 64bit...

Building Scala Object, Class Not Found

I am trying to build my Scala Project with Maven, I have used this sample POM as a guide line: http://ryancompton.net/2014/05/19/sample-pomxml-to-build-scala--jar-with-dependenciesjar/ But I am...

Start DialogFragment from Activity

I'm learning Android programming with IntelliJ right now and got a little problem. I've got an Activity which looks like this: public class example2 extends Activity { ...some code... ...

IntelliJ IDEA quick quoted string plus variable

IntelliJ IDEA has completion features which, besides increasing coding speed, maintain the "flow" of coding (always moving forward); so I wonder whether I'm missing something when I encounter a...

arrayListOf and hashMapOf: Unresolved reference

I'm trying to play with the Kotlin HTML builder example on my local machine. In abstract class Tag(val name: String) : Element { val children = arrayListOf<Element>() val attributes =...

java.util.scanner throws NoSuchElementException when application is started with gradle run

I have a created a simple java "echo" application that takes a user's input and shows it back to them to demonstrate the issue. I can run this application without trouble using IntelliJ's internal...

server.session.timeout in application.yml is not used when deployed to a tomcat as a war

I have this configuration in my application.yml server: contextPath: /appname session: timeout: 7200 # 2 hours in seconds This works fine when i run in Intellij IDEA, but when i...

Is there a way to highlight text inserted since the last commit in IntelliJ in the Editor?

I'm talking about getting the same effect you get when you commit/merge/diff and are reviewing your changes. I would like to have code I added to be highlighted. Right now if you go under VCS,...

Gradle NoClassDefFoundError when running jar

I'm trying to set up a Gradle project with some Velocity functions in it. So far I have the following files: **src/main/java/com/veltes/velotest.java:** package com.veltes; import...

Intellij "go to > implementation/declaration" navigation feature not working

I have a maven java project that I would like to use IntelliJ for development on. One of my favorite navigation features of IntelliJ is the 'go to > implementation' feature that appears when you...

Does PhpStorm have a way to highlight hardcoded strings?

I have a config file where I store all my strings for easy reference and to make translation easier - just in case I ever need to roll out my application into one of our international locations. I...

WebSocket with embedded Tomcat is 404

I made two classes: Main class with embedded Tomcat(8.5.20) ServerEndpoint of Websocket I run the main class on IntelliJ IDEA and run this JavaScript: new WebSocket('ws://localhost:8080/ws') in...

Does Jetbrains Rider support configuring Local IIS Debugging?

I'm trying Jetbrains Rider 2017. One of the features I have used in Visual Studio for many years is the ability to configure easily building and debugging a website in IIS (instead of Cassini/IIS...

Why does IntelliJ Idea add "_war_exploded" to context path of deployment?

I have a Java EE web project named test and I use Wildfly as server. When I use Eclipse the URL in the eclipse's integrated browser is : localhost:8080/test. But when I use IntelliJ the URL in...

Field authenticationManager in *** required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found

I have following class: @Configuration @EnableAuthorizationServer public class AuthServerConfig extends AuthorizationServerConfigurerAdapter { @Autowired private AuthenticationManager...

How to debug kafkastreams code?

Has anyone managed to debug kafkastreams code written in Java 8 using IntelliJ IDEA?. I am running a simple linesplit.java code where it takes stream from one topic and splits it and sends it to...

Flutter: "Lost connection to device" error after Hot Reload

Here's the full error from the debug console: Launching lib\main.dart on Android SDK built for x86 in debug mode... Built build\app\outputs\apk\debug\app-debug.apk. I/FlutterActivityDelegate(...

JavaFX, OS X, Graphics Device initialization failed for : es2, sw

I'm trying to create a JavaFX project in IntelliJ IDEA, but I get errors every time. After completing tutorial https://openjfx.io/openjfx-docs/#IDE-Intellij, I've got this: Graphics Device...

Why CustomClipper is not working suddenly?

I'm studying clipping image as curve, but CustomClipper is not working suddenly. Only clipper property of IreneClipper not works. How can I fix it? import 'package:flutter/material.dart'; void...

Java file outside of source root intelliJ

I have cloned a spring boot project from GitLab having multiple branches in IntelliJ. I checkout to the branch in which I want to work. But I am getting "Java file outside of source root" on all...

TwelveMonkeys ImageIO is not working after build in to jar with OpenJDK8

I'm currently adding additional functionality to my program by using this library: https://haraldk.github.io/TwelveMonkeys/ TwelveMonkeys ImageIO. It works great in Editor - Intellij IDEA 2020.1.1...

'Correct the classpath of your application' in a Springboot Configuration in IntelliJ

I have such an application with an IntelliJ-Idea IDE that has a Springboot configuration that errors out and gives the following recommendation: The following method did not...

How to test in ktor while using environment variables?

I am using the PostgreSQL database in my Ktor Project. I saved JDBC_URL, JDBC_DRIVER..., in system environment variables of Intellij Idea. fun hikari(): HikariDataSource{ val config =...