Questions tagged [intellij-idea]

IntelliJ IDEA is an IDE by JetBrains. It primarily supports Java development, but also supports JavaScript, Groovy, HTML, CSS, RSS, R, Haskell, PHP, Ruby, Python, Scala, Swift, Clojure, Kotlin, Hybris, Gradle and others. Questions specifically concerning usage and problems in both Community and Ultimate Editions should use this tag. However, if you have a problem with something else and just happen to be using IntelliJ, please don't use this tag.

0
votes
0answers
22 views

Java unit Testing Main Method

I have done some basic testing and I am new to java and the unit testing concept as a whole, however I wanted to test this method to ensure it works correctly, but I cannot get my mind around it yet. ...
0
votes
0answers
25 views

Unit tests to method with try-catch blocks junit

I have a class with a method that retrieves the content of the previously mentioned page using jsoup then connects to the downloaded links and creates a list of objects for further processing. I'm ...
0
votes
0answers
15 views

Intellij doesn't recognize Groovy tests properly

I have test written in spock. Each time when I'm running tests IntelliJ saying that the configuration is wrong - but if I press apply and etc I'm able to run these tests - What I can do, to don't see ...
0
votes
0answers
11 views

How do you use Mojohaus maven plugins?

So I'm trying to follow along with this tutorial. I usually work with Gradle, so I'm not too savvy about maven plugins, but there's not much Gradle to be had out there, so ... Maven it is. But when ...
2
votes
0answers
20 views

is it possible to run giter8 templates from intellij?

as a feedback from a g8 template i've made, i've been asked whether it's possible to make it available directly inside intellij. is there is a way to generate new modules from intellij using a g8 ...
0
votes
1answer
8 views

Visual Studio - Intellij Help shortcut

Intellij has the most amazing shortcut ever made - ctrl shift a. I don't know if they invented it or copied it, but it's the best. Does visual studio code have a similar shortcut? Or (failing that) a ...
0
votes
1answer
19 views

CSS refuses to display on my page. Directory Issue? WebPack?

I'm sure its something simple but I've googled way too many different solutions to know where i went wrong now. I plan to make this a full site in good time but i am still fresh. Any help is ...
0
votes
1answer
14 views

Does IntelliJ IDEA support Kotlin code style import layouts?

I want my Kotlin import statements to be ordered according to the same rules as with Java ("Editor" → "Code Style" → "Java" → "Imports" → "Import Layout"), but it seems like IDE ignores them ...
2
votes
1answer
24 views

IntelliJ Maven JAR “No main manifest attribute error”

Trying to set up a simple project to run a simple http server. Created Maven project, along with groupId/artifactId/version, and so on, and was able to set up so that an IDE can interpret and run the ...
0
votes
1answer
8 views

Adding Krangl sdk to intellij IEA

I am new to Kotlin and IntelliJ Idea I want to experiment with Krangl. But How do I add that to be seen within my IntelliJ Idea ide. In C# there is nuget and on Mac cocoapods. I know this very ...
0
votes
1answer
16 views

IntelliJ IDEA Gradle vs. Maven “Run all tests” by right-clicking on `sources-root` vs. `test-sources-root` folder?

I just converted a Maven Java/Kotlin project to Gradle and it seems to be working well in general (it's my first time using Gradle). But I have a habit of right-clicking on my sources-root folder (...
1
vote
1answer
15 views

Cucumber will not set up in intelliJ - does not seem to recognise Gherkin

I am trying to very basically install and set up cucumber in intelliJ with Java but it will not work. I have added/enabled the cucumber for Java plugin, I've added the maven dependency for cucumber, ...
0
votes
0answers
15 views

Create H2O Sparkling-Water app in IntelliJ

I want to set up a Sparkling-Water app in IntelliJ. I found the droplet for a project at: Sparkling-Water-Droplet But this has not been touched for a year and I was wondering whether there is a more ...
0
votes
2answers
16 views

Search-Everywhere in Android Studio (IntelliJ) makes Search File redundant?

In Android Studio (and IntelliJ), shift-shift is used to Search File (and Everywhere, e.g. class name etc). I just realize it also have shift-command-O that search for a file. With shift-shift, it ...
0
votes
1answer
36 views

So many Major GCs when monitoring IntelliJ 2018.03?

Major GC is triggered by System.gc(). To avoid lots of Major GCs while starting IntelliJ 2018.3, I configured the idea64.vmoptions with following options (copied from VisualVM JVM arguments) -...
0
votes
0answers
17 views

How to check remote file in WebStorm?

I am trying to see remote file in WebStorm. The issue is that I will go to that server by using another server login. Example: I have two SSH servers A and B: A == 10.2.3.5:3000 B ===10.5.6.7:3001 (...
0
votes
0answers
12 views

Connecting from IntelliJ to postgresql database running on a linux VirtualBox

My problem is similar to this: Connect to PostgreSql database in Linux VirtualBox from Win7 IntelliJ is running on Windows 7, my postgresql database (version is 9.5.14) is running on ubuntu 16.04 in ...
1
vote
0answers
17 views

Unable to find plugin in intellij idea

I'm trying out Sonar (@http://localhost:9000) for scanning my source code and reporting issues. In order to achieve that, I created a sample maven project in Intellij Idea and added the following in ...
1
vote
1answer
43 views

IntelliJ IDEA won't start on AMD Athlon XP 1500+ (Windows 7)

I have installed Windows 7 to test IntelliJ IDEA, and when I run it, the splash screen progress bar goes to 100%, shows up the initial window, and crashes. My JDK version is 8u202. Strangely, I ...
0
votes
1answer
28 views

Code runs fine in IDE but not run as Jar file

I've been researching this problem for a week. I have tried several Java IDEs in creating a JavaFX project but the problem continues. Does anyone know what this is about? I can not run the .jar file ...
0
votes
1answer
11 views

intellij mongo error though not being used

I'm having an annoying error. I have just installed IntelliJ and opened a simple "hello world" jsp project. There is nothing about Mongo. But when I run war file I have this error: WARN 24408 --- [ ...
1
vote
1answer
22 views

WebStorm not showing terminal path on the first instance

I love WebStorm and have been using it for almost 2+ years now. Recently I am facing the problem when you open up a project and click terminal it is not showing terminal current path on the first ...
1
vote
0answers
24 views

Cannot deploy javax mvc application on Glassfish 5 server using Java EE 8

I have got problem with deploying my web project into Glassfish 5 server using javax.mvc-api. I am doing everything simmilar like in book but this doesn't work. I am using Glassfish 5 server as ...
0
votes
2answers
61 views

Unable to put values into HashMap<String, double>

Any ideas why I'm unable to put into this HashMap? public class UserImpl implements User{ HashMap<String, Double> videoRecords = new HashMap<>(); @Override public void ...
0
votes
0answers
15 views

IntellIJ CreateProcess error=206 while running spring-boot

Hi few days ago without any problems I could run the mvn spring-boot:run command, and it runs the application without problems. But today I've tried do it again and I am getting this error ...
0
votes
1answer
29 views

Error starting ApplicationContext on Java Spring-Boot

My Java Spring Boot Project on IntelliJ IDEA is not working as well. I attach my main application file below: I attach my pom file below: I attach my controller below: I attach my repository below:...
0
votes
1answer
35 views

How to repair corrupted java class in intellij?

While i was coding java application in intellij my laptop shutdown suddenly when i opened my laptop and opened my project to continue coding ,i found java class which contains 21000 lines of code has ...
1
vote
0answers
11 views

Can IntelliJ 2019 show more than two tool panels stacked on the left?

On the left side of my IntelliJ window, I can stack two panels, such as Project & Structure, or Project & Favorites. Is there any way to stack all 3 panels atop one another, Project & ...
-1
votes
0answers
23 views

TomCat can't find class hibernate

i use tomcat server and want to connect to database with help hibernate. Maven <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <...
0
votes
1answer
21 views

Java in IntelliJ IDEA: How to view the variable value when debugging?

In the past, I can view the variable value in Variables and the tail of one line code.Maybe some setting were changed, so that I only view the variable value in Variables now. Red arrow in the upper ...
0
votes
2answers
28 views

Packages does not exist when trying to compile with Spring

I'm using Spring for the first time. I setup Spring on a project on a Mac, everything dependency wise worked there without a problem, I could compile, all checked. I've tried the same on a Windows ...
2
votes
1answer
42 views

JavaFX 11.0.2 not working on Intellij (java 11)

I've been browsing Stack overflow and googling my way through this for the past 3 hours, and nothing seems to be helping. My Project Structure settings are as follows: Project SDK: "11 (java version ...
1
vote
1answer
29 views

Cannot resolve class dialect

I am trying to fix an issue for hours but nothing seems to work.I tried everything available online. I am using Intellij IDEA. I am using a Maven project. I have created hibernate.cfg.xml with ...
1
vote
0answers
41 views

How do I make IDEA/PyCharm treat @tf_export correctly?

How do I make IDEA/PyCharm treat @tf_export annotation correctly ? I switched to TF 1.12 and for following code import tensorflow as tf from tensorflow.keras import layers model = tf.keras....
0
votes
0answers
23 views

How to change the size of the Intellij Idea menu lines?

I would like to know how to change the space between lines of the menu (width). My menus having lines too big. There is image to show it.
0
votes
0answers
20 views

exclude folder and file patterns for java compiler in idea intellij

I recently migrated from eclipse to intellij. I have many folders and files to be excluded from compilation. Eg. I have about 40-50 folders named 'test' containing class files and folders that needs ...
0
votes
0answers
14 views

Why android studio doesn't show list of deprecated methods? Android studio 3.3.2

I try to look for deprecated methods in my App (using inspect code). Android studio shows only MY (no API) deprecated methods/classes. I noticed it when i wrote (My sdk version [21;28]): mTextView....
0
votes
0answers
21 views

How to access H2 database console, without H2 Jar

I'm new in Hibernate, Maven and H2 database. I'm creating a little Java application Maven project in IntelliJ, , and persisting entities in H2 database. I'm doing this importing H2 through Maven, and ...
1
vote
1answer
26 views

IntelliJ: cannot deploy to Google App Engine (Standard)

The IDE complains about no Deployment selected, but from the picture I can't pick one. I have upgraded IntelliJ to the latest. I am planning to reinstall everything. Suggestions?
0
votes
1answer
16 views

How to run shadow jar with a gradle task?

I want to run my app after building it with the shadow jar plugin. build.gradle: plugins { id 'java' id "org.jetbrains.kotlin.jvm" version "1.3.21" id "com.github.johnrengelman.shadow" ...
0
votes
0answers
27 views

IntelliJ IDEA Error: Could not find or load main class

My first time using IntelliJ IDEA, sorry if this question has been asked before but I just cannot figure it out. I am using IntelliJ on a GitHub repo that comes with three projects and the structure ...
1
vote
1answer
20 views

Make Android Studio autopop up not change constrast

In Android Studio, pressing the up an down arrows will change the contrast of the autopopup bar. Before After This also occurs in the default themes. Is there anyway to make the contrast start in ...
0
votes
1answer
29 views

How to create .jar file in IntelliJ for Maven scala+spark project

IntelliJ-IDEA is new for me .. I used to work with SCALA-IDE. for current project i have to use IntelliJ. I tried in stackoverflow to find "How to crate .jar file of scala maven project created in ...
-1
votes
0answers
32 views

How do you add downloaded classes to Java/Idea?

I just downloaded a zip file from git containing several java classes. I want to use those java classes in a project. How do i add them to IDEA or java. Can i save those files in java and the access ...
0
votes
0answers
13 views

How add Configuration for kotlin multi platform Project [on hold]

I am Android developer, created multiplatform kotlin Project for ( Android & IOS ) using Intellij Software.Here i am facing problem after created multiplatform kotlin Project while running asking ...
1
vote
1answer
50 views

java.lang.StackOverflowError on IntelliJ

I'm new to scala/spark and loading a file(csv) of size 2GB and it works fine on my Virtual Machine with below HEAP_SIZE. HEAP_SIZE="-Xms8g -Xmx8g" But when running the same code and loading the same ...
0
votes
1answer
12 views

How to reset my IntelliJ IDEA plugins to default?

I'm using IntelliJ and I installed almost every plugin available on the repositories, now my IntelliJ is slow. Is there a way I can reset my IntelliJ plugins to the default ones?
0
votes
0answers
42 views

When and why does Scala code needs to be on a method called main inside an object?

I realized that when I code some script in scala and compile and run it from the terminal, I need to put it on a main method inside a object. But when a run it inside Intellij IDEA that's not needed. ...
0
votes
1answer
18 views

How to make TreeStructureProvider updatable on actionPerformed method?

I have a code, provided by example. I want PsiFileNode to change its color on click on my implemented action. <extensions defaultExtensionNs="com.intellij"> <treeStructureProvider ...
0
votes
1answer
18 views

IntelliJ run configuration per git branch

I want to have a specific run configuration in intellij per git branch. I know I could probably add the .idea/runConfigurations folder to git but I want to avoid that at all cost because my runs ...

http://mssss.yulina-kosm.ru