intellij plugin SDK can't resolve java - intellij-idea

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.

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.

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 Community edition hangs a lot while typing

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?

IntelliJ IDEA doesn't recognize lombok's Fields

IntelliJ recognize lombok annotations including #FieldNameConstants and I can import the generated fields via: import static com.somepackage.SomeClass.Fields.field (even autocomplete works after typing 'SomeClass' or 'Fields').
However when I want to build the project it says :
java: cannot find symbol
symbol: class Fields
location: com.somepackage.SomeClass
Intelli version:
IntelliJ IDEA 2019.3 (Community Edition)
Build #IC-193.5233.102, built on November 28, 2019
Runtime version: 11.0.4+10-b520.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 2000M
Cores: 4
Registry:
Non-Bundled Plugins: Lombook Plugin
Lombok version:
1.18.8 (tried it also with 1.18.10)
The same project(maven based springboot) works well in eclipse.
Lombok is correctly installed and annotation preprocesing is enabled. I have tried several uninstalls (both the ide and lombok) and clean project imports. Same result.

IntelliJ Idea - TypeScript + JSPM support

My IntelliJ Idea does not resolve TypeScript modules that I installed via JSPM.
For example angular2 is not found.
Is there a way to get support for those imports?
I am using this version of IntelliJ Idea:
IntelliJ IDEA 2016.1.1
Build #IU-145.597, built on March 29, 2016
JRE: 1.8.0_76-release-b18 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
There is already a feature request posted in the JetBrains Youtrack targeting the JSPM support.