IntelliJ Community edition hangs a lot while typing - intellij-idea

I am using IntelliJ Community edition for for Automation test using Java. I have observed that IntelliJ stops responding for while when I am typing. Some times it takes like 1 to 2 minutes to respond while I type. Even it goes blank when I switch the windows between the applications.
I am using:
**OS:** Windows 10 Pro, 64 bit OS
**IntelliJ version:**
IntelliJ IDEA 2020.1.4 (Community Edition)
Build #IC-201.8743.12, built on July 21, 2020
Runtime version: 11.0.7+10-b765.65 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Non-Bundled Plugins: gherkin, cucumber-java
Does anybody is facing this issue?

Related

Intellij - New Module from existing Sources : nothing happen

I am using . I have created an emty project with jdk 17 and I have downloaded a project from spring initialzr, I have tried to import it inside my project but nothing appear after clicking of File -> New -> Module from existing source.
Windows 11, JDK 17.
Intellij version :
IntelliJ IDEA 2022.2.4 (Ultimate Edition)
Build #IU-222.4459.24, built on November 22, 2022
Licensed to khalid tounoussi
Subscription is active until September 27, 2023.
For educational use only.
Runtime version: 17.0.5+7-b469.71 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2016M
Cores: 8
Non-Bundled Plugins:
com.tabnine.TabNine (0.8.7)
com.jinsihou.react.snippets (1.1.1)
org.intellij.plugins.junitgen (2.0.12)
com.poratu.idea.plugins.tomcat (4.3.8)
com.jetbrains.jax.ws (222.4459.16)
com.intellij.spring.batch (222.4459.16)
com.github.setial (4.0.2)
GrepConsole (12.15.211.6693.1)
com.intellij.lang.jsgraphql (3.3.0)
com.yiycf.plugins.mavenDependencyHelper (2.5)
com.haulmont.jpab (2022.5.2-222)
MavenRunHelper (4.23.222.2964.0)
Kotlin: 222-1.7.10-release-334-IJ4459.24
I have tried to open first the project in intellj ( the project that I have download it from spring initliazr ) and it works fine.
I have excluded windows defender from analysing all the folders of the project.
If I use spring initialzr for building projects in intellj, it works fine.

PhpStorm lost all favorites and local branches

After opening PhpStorm I saw that all favorites and local branches are gone. Only possible cause that comes to mind is that I saw an error that WSL2 had to shut down with an error.
When I go to File > Local History it's also blank.
Can this somehow be related to WSL2 shutting down incorrectly and is there a way to restore everything?
Is there a way to store these settings online somewhere?
The closest thing I could find as a solution is this: PhpStorm lost all projects & settings after power failure
Version info.
PhpStorm 2021.2.2
Build #PS-212.5284.49, built on September 16, 2021
Subscription is active until November 8, 2022.
Runtime version: 11.0.12+7-b1504.28 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 6
Registry: run.processes.with.pty=TRUE

IntelliJ IDEA Ultimate is extremly slow on mac M1

I'm using Mac Air M1 and trying to run IntelliJ Ultimate.
I've read some issues on JetBrains YouTrack and it seems that a lot of people are pretty satisfied with their experience. So, I think something is wrong with my environment and I can't find out what
Steps I've done:
Rebooted my Mac
Invalidated Caches & Restarted IDE
Reinstalled IntelliJ
Deleted "Caches" and "Application Support/JetBrains" directories and then reinstalled IDE
Checked if I'm using a default Java Runtime version
Checked if I'm using Intel version of IDE
Disabled Antialiasing
Closed "heavy" apps like Google Chrome
Installed Atom Material Icons plugin
Downloaded prebuilt shared indexes
Modified .vmoptions and added
-Dsun.java2d.opengl=true
-Dsun.java2d.opengl.fbobject=false
Disabled Smooth scrolling
I'm not using external display, mac is connected to power outlet
Here is my environment:
IntelliJ:
IntelliJ IDEA 2022.1 (Ultimate Edition)
Build #IU-221.5080.210, built on April 12, 2022
Runtime version: 11.0.14.1+1-b2043.25 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Non-Bundled Plugins:
com.mallowigi (64.0.0)
Dart (221.5588)
io.flutter (66.0.4)
Kotlin: 221-1.6.20-release-285-IJ5080.210
Mac:
Model Name: MacBook Air
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 8 GB
OS: macOS Monterey Version 12.1
Related YouTrack topics
https://youtrack.jetbrains.com/issue/IDEA-268203
https://youtrack.jetbrains.com/issue/JBR-3237
https://youtrack.jetbrains.com/issue/JBR-2732
UPDATE #1:
Moved issue to JetBrains YouTrack: https://youtrack.jetbrains.com/issue/IDEA-293523/IntelliJ-IDEA-Ultimate-is-extremly-slow-on-mac-M1
You can see the memory usage of your application and increase it accordingly if required. In my case, it was slow because of low memory.
Enable the memory indicator by checking it (View -> Appearance -> Status Bar Widgets -> Memory Indicator). With this, now you can see memory usage details in the bottom right corner of your Intellij IDE.
Increase the memory if it's exhausted more than 80% of available memory by following: Click on Help -> Change Memory Settings -> <>)
Try EAP version of IntelliJ IDEA 2022.2, which runs on JBR 17 with Metal framework.
I had the same issue with same MBA.
I changed the runtime to OpenJDK 18 and now it is totally smooth :)
Help -> Find action -> Choose boot runtime for the IDE
I experimented with a few other JDKs, maybe Azul was the fastest.
Also, I have updated Xmx:
Help -> Edit Custom VM Options and updated to 2048m
To me, seems like the issue is resolved now or at least way better.
I download the M1 version for intellij ultimate and I have a incredible improve in performance.
BTW: I have a macbook pro 13' with 16gb ram and 1TB ssd
intellij environment
IntelliJ IDEA 2022.1.1 (Ultimate Edition)
Build #IU-221.5591.52, built on May 10, 2022
Licensed to ********************
Subscription is active until ********.
Runtime version: 11.0.14.1+1-b2043.45 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Registry:
*************
Non-Bundled Plugins:
monokai-pro (1.8.1)
com.vincentp.gruvbox-theme (0.5.4)
com.intellij.plugins.macoskeymap (221.5591.19)
com.github.rmatafonov.cucumber-scenarios-indexer (1.1.0)
com.github.chencn.yamlandprops (1.0.5)
net.lagerwey.cucumber-kotlin (2022.1.0)
dev.eltonsandre.intellij.spring.assistant.plugin (1.5.2)
Kotlin: 221-1.6.21-release-337-IJ5591.52
From dive deep into community i found this reddit post https://www.reddit.com/r/IntelliJIDEA/comments/q05b29/intellij_idea_for_m1_macbook/ its basicly tells you to install Rosetta2, also battery-consuming, I think it just best if you use mac mini setup(not a macos user, but wish to anw)

JVM Debugger Memory View for IntelliJ IDEA

I can't see the "Java Profiling" options in my IntelliJ (see screenshots) and I am not able to launch my Java Spring app with any profiler.
I'm on MAcOS Big Sur, running this version:
IntelliJ IDEA 2020.3.1 (Community Edition)
Build #IC-203.6682.168, built on December 29, 2020
Runtime version: 11.0.9.1+11-b1145.63 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: compiler.automake.allow.when.app.running=true, ide.balloon.shadow.size=0
Non-Bundled Plugins: com.mallowigi, Docker, GrepConsole, org.jetbrains.kotlin
Profiling tools are Ultimate only feature: https://www.jetbrains.com/help/idea/cpu-profiler.html

intellij plugin SDK can't resolve java

my plugin project can't find any java classes.
How can I make my project compile again?
I'm developing on manjaro
project: https://github.com/axaluss/power-mode-intellij-plugin
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.1.2
DISTRIB_CODENAME=Juhraya
DISTRIB_DESCRIPTION="Manjaro Linux"
IntelliJ IDEA 2019.2.4 (Community Edition)
Build #IC-192.7142.36, built on October 29, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.2.21-1-MANJARO
GC: ParNew, ConcurrentMarkSweep
Memory: 1948M
Cores: 6
Registry:
Non-Bundled Plugins: Batch Scripts Support, CMD Support, dcevm, de.ax.powermode, mobi.hsz.idea.gitignore, net.seesharpsoft.intellij.plugins.csv, org.intellij.scala, BashSupport, org.toml.lang, some.awesome
I figured it out.
Somehow the "project sdk" was broken.
I set it up freshly while I was figuring it out.
But somehow deleting it and creating it a second time fixed it.