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.
Here is the default code when press "ctrl + alt + l":
if(...)
Log.w("...", "...");
else if(...)
Log.w("...", "...");
else
Log.w("..."...
-1
votes
0
answers
21
views
So, I'm trying to write a program throug the TDD approach. And I have created a module in the gradle project with a test package, and the test itsekf in it. Then I created a class for it (in main ...
I'm on a new installation of CLion with the IdeaVIM plugin working in Rust.
I successfully used the 'gd' goto definition motion and the ^O to return once.
I was then immediately prompted with ...
-1
votes
1
answer
18
views
So i ran a java program in IntelliJ using Gradle for 2 hours and then my computer (which has Windows as its OS) didn't work correctly so I had to restart it. But then this problem occured when ...
0
votes
0
answers
16
views
How to use the keyboard to navigate between Project Errors in WebStorm or PhpStorm?
Namely - TypeScript errors that appear in the "Project Errors" panel.
I know how to navigate between ...
-1
votes
0
answers
16
views
why, when I create a new project in a new path different from Default intellij path and make my new class, I see this error "Could not find or load main class Test" after running program?
I ...
0
votes
0
answers
3
views
I have running intellij with cucumber scenarios.
Now I want to start a specific scenario from outside intellij.
Is there a possibility e.g. from a shell or a java programm to excecute something in ...
0
votes
0
answers
10
views
Is it possible to refactor the id values inside layouts randomly or with subsequent values. For example right now, we can just place the cursor at layout ID reference and press Shift + F6 and rename. ...
0
votes
1
answer
25
views
What are some simple techniques/tools I can use to analyze code efficiency - and query efficiency for a simple REST service I have built in Spring Boot?
It does simple CRUD operations with some ...
0
votes
0
answers
18
views
I prefer the IntelliJ project format for a Kotlin/JVM project. I.e. the dependencies and other project information is kept in files within the .idea directory:
Using IntelliJ IDEA I run tests and ...
0
votes
0
answers
17
views
In IntelliJ IDEA there is the following feature:
IntelliJ IDEA will show the suggestion to upgrade when we hover over the dependency, and we can click the suggestion to upgrade the dependencies. (...
A while ago I remember being able to run a Java application in debug mode and then I could use some keyboard short code to either reload the class I am currently on or use different keyboard shortcut ...
0
votes
0
answers
19
views
how to solve this issue
I try to restart the application but it doesn't work for me.
0
votes
0
answers
32
views
Recently upgraded Gradle and a few other dependencies and now I can't get past this error.
I've tried adding android.enableJetifier=true to gradle.properties, clearing gradle's cache, invalidate ...
0
votes
0
answers
10
views
I'm new to React, and I'm going over the latest tutorial. I've tried running it in Intellij and VS Code, but without any modifications, the tutorial gives me a syntax error about an empty fragment, as ...
0
votes
0
answers
12
views
Where is the JSON schema for this inspection live?
0
votes
1
answer
19
views
I am using intellij:
IntelliJ IDEA 2022.3.1 (Ultimate Edition).
Build #IU-223.8214.52, built on December 20, 2022
Runtime version: 17.0.5+1-b653.23 aarch64.
VM: OpenJDK 64-Bit Server VM by ...
0
votes
1
answer
17
views
I am trying to add a custom type renderer in the IDEA Python debugger.
Specifically, I would like to render an xml Element from the standard xml package as a string, e.g. <x a=1><y>2</y&...
When I click from "Entities from DB" it correctly connects to DB, and it succesfully performs the introspection, so that I can see the list of tables from the side view. But within the popup ...
-1
votes
0
answers
21
views
I have a project of intellij idea of two module:
project
moduleA
moduleB
and the moduleB is depending on the moduleA.
So right now I have developed some features on moduleA which is used in moduleB. ...
According to this document (rule) S2925
https://rules.sonarsource.com/java/RSPEC-2925
We need to change the Thread.sleep with:
await().atMost(2, Duration.SECONDS).until(didTheThing())
Can someone ...
0
votes
0
answers
20
views
Sometimes my font goes strange like above. And I can't revert until I restart Intellij.
How can I change the font to normal?
I tried to find a setting for this, but I couldn't. And I can't even think ...
0
votes
0
answers
12
views
I have configures my tsconfig.json the following
...
"baseUrl": "src",
"paths": {
"@api/*": ["api/*"],
"@components/*": ["...
0
votes
0
answers
13
views
Is there a way to make the Intellij debugger show me where an exception was thrown in my own code? For example, I am currently trying to use the function parseInt of the Integer class to convert a ...
0
votes
1
answer
24
views
No matter what I do Lightrun will generate the following error message:
General agent error at jvm_internals.cc:186.
This is my first time using Lightrun.
This is my code:
import java.util.Scanner;
...
0
votes
0
answers
18
views
I'm new to web development and currently trying to develop a simple website with a servlet in Jakarta EE. I'm using Intellij IDEA and Apache Tomcat 8.5 as a server. I want to apply material design ...
0
votes
0
answers
18
views
So there's a python script that I have that runs a specific java class based on input params. I want to know if it's possible to have it where when the python class spawns a subprocess for running ...
0
votes
0
answers
23
views
In my Spring Boot project I have Environment Variables using a File:
When I select "Build and run using: " Gradle, IntelliJ doesn't take the environment variables value.
Caused by: java....
def banner_text(text,screen_width):
if len(text) > screen_width -4:
print("EEK!!!")
print("THE TEXT IS TOO LONG TO FIT IN THE SPECIFIED WIDTH ")
if ...
0
votes
0
answers
42
views
I'm trying to introduce Unit tests to our system, and have run into a problem with Junit not finding test.
I have these 3 tests:
When I run all tests in the module:
It finds X and Y tests, but not Z:...
0
votes
1
answer
62
views
I have creted a maven project for my selenium project in Intellij IDEA Community Version 2022.3.1 and using JDK11. Now while running testng.xml file I get an error java: package java.time does not ...
0
votes
1
answer
12
views
As per https://stackoverflow.com/a/27412244 I can get a file/line reference in form of <fully qualified path>:<line number>; how can I jump to such a location in IDEA (e.g. if a colleague ...
0
votes
0
answers
16
views
Im having problems with logging into Github Co-Pilot from within the IntelliJ co-pilot plugin.
Its without a doubt the certificate issue when im behind corporate firewall because when i try to login ...
0
votes
0
answers
16
views
Everytime when I start IntelliJ ultimate edition, I just get a black screen and the fonts are very weird and unreadable:
enter image description here
I already tried to uninstall and then reinstall ...
0
votes
0
answers
13
views
I have change my git name but still it doesn't reflect in my IntellIj I have changed to Gunveer Singh
I have changed my name but still showing ExuberantGunveer
public class AnonymousAssign {
public static void main(String[] args) {
new AnonymousAssign().testAnonymousAssign();
}
public void testAnonymousAssign() {
var list1 = new ...
0
votes
0
answers
32
views
I have created this code to read the contents of excel files using Apache POI. I am using Intellij Idea as editor but when i ran the code i have a problem: only read the first row and not the rest. ...
0
votes
0
answers
16
views
Does anyone have any insight on why my intelliJ keeps asking me to install this React library.
Ive installed it multiple times with no errors occurring and ive tried reinstalling Npm. Also tried ...
1
vote
0
answers
41
views
To add it I tried sevral methods that I found online but none of them worked for me.
Here is how I try to import the driver:
1- I tried the method in the answer : Correct way to add external jars (lib/...
-3
votes
0
answers
30
views
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:...
0
votes
1
answer
34
views
I have a library of Java code from Android development and I'd like to reuse that in a web-app version of the same. The library code is quite generic as it was always intended to be re-usable and has,...
0
votes
0
answers
18
views
I am using IntelliJ IDEA 2022.3.1 (Community Edition) for my web development and missing the feature of javascript reformat code. It seems to be not working at all for javascript however working for ...
I have a Java project consisting of 5 Files, I need the program to run on another machine that only supports Java 8. How can I let InteliJ compile a .jar File that I can execute on the other machine? ...
With the new Intellij version (2022.3) Maven is no longer the default type (is has selected Bradle- Groovy) for a Java Project when using the spring boot initializr.
This is extremely annoying since ...
0
votes
0
answers
9
views
I want to create a project that adds spring mvc in the maven environment.
but I can't make spring-MVC appear.
feat
my intellij version
how can i solve it??
remvoe intellij twice
0
votes
0
answers
15
views
I am programming an IntelliJ plugin and want to run a node command in the "run tools window".
So far I have the following code:
Project project = event.getProject();
...
0
votes
1
answer
39
views
I am trying to build Springboot project with Maven but getting below error while running it on tomcat server .
Please suggest a solution . Thanks .
java: Lombok visitor handler class lombok.javac....
While the maven build is successful I am unable to import the dependencies to the project in IntelliJ. Below is the error its showing:
Could not transfer artifact com.sun.activation:jakarta.activation:...
I am using IntelliJ IDEA and JPA Buddy to generate entities from my database. However, every time I open an Entity from DB wizard, it takes a very very long time. Is it okay? Or something wrong with ...
-1
votes
0
answers
40
views
My goal is to create a JTable and populate it with rows using either a Vector or an ArrayList. I am using IntelliJ IDEA's form builder to create the tables (not sure if this matters).
private void ...