Intellij IDEA cannot resolve any import statement

Answered

Hi there,

 

I am struggling recently with very strange issue. Suddenly, my intellij IDEA stopped resolving all java import statements.

 

The only solution that worked so far for me was to uninstall intellij IDEA and install it again. Although, when I import one of my projects upon ~4 hours it cannot resolve any import statement again. This happes only for that one project. It is Eclipse RCP based.

 

Unfortunatelly, I cannot share with you the source codes of that project.

 

What I have already tried is the following:

  1. Remove .idea folder
  2. Remove all *.iml files
  3. Invalidate and restart

None of this works for me. When I create project from the scratch it also tells me that import statements cannot be resolved

 

My intellij IDEA version: 2019.1 Ultimate

 

 

It cannot event resolve base classes like String

 

My SDK is set up properly

 

Thank you for your help.

 

Maks

1
61 comments

Please clarify if the project is built with Maven? Please check if the issue is reproduced with other JDK versions. Does the project compile or the compilation fails corresponding the unresolved errors in Editor? Please share idea.log (File -> Show Log in Finder). Thank you.

0
Avatar
Maksymilian Wiesiołek

It happend twice when I imported Eclipse RCP project. Once it fails with Eclipse RCP project it affects whole intellij idea and it was not working anymore for maven based projects and any other project.

I had tried other JDK versions as well but it did not work.

The project could not have been compiled. When I clicked on red bulb it told me to set up JDK. A popup window appeared. I have picked JDK 1.8 but again JDK classes could not have been resolved.

 

Unfortunatelly, I cannot share log file with you anymore. I had to re-install intellij idea since I use it at work and it was the only known solution to me.

 

Once it happens again, I will share the log file with you.

0

Please share the idea.log in case the issue repeats. In case it happens please check if the project compiles with Maven (not with IDEA), if doesn't, please try deleting the JDK and adding it once again in Project Structure | SDKs.

0
Avatar
Maksymilian Wiesiołek

Will do thank you

0
Avatar
Maksymilian Wiesiołek

Hi,

 

I cannot attach log files to this ticket. Could you please share your email with me so that I can send them via email?

 

Thank you

0

Hello,

Please create an issue at the YouTrack (https://youtrack.jetbrains.com/issues), data can be attached to it privately in case the visibility of issue is set to "visible to jetbrains-team". Please also provide the sample project the issue is reproduced with. Thank you!

0

Was this resolved, and then how? Have similar problem (on Ultimate 2019.1.3) that now starts to show up, tried the same steps, and get same problem.

0
Avatar
Maksymilian Wiesiołek

It has not been solved yet. I cannot share source code of the project which produces the issue.

Maybe a simple eclipse rcp project will reproduce the issue. However, I have not checked it

0

NOTE: This comment is NOT BY THE ORIGINAL PROBLEM POSTER.  To my knowledge, the problem is NOT RESOLVED.

As I commented that I had a similar problem: I actually got mine resolved: It seems like Intellij IDEA did not manage migrations of projects while upgrading.

I

  1. Closed the project
  2. Deleted directories: build, out, .idea
  3. Re-imported project
  4. Invalidated Cache and Restart
  5. Rebuilt project
  6. (still nothing worked)
  7. Then I went to Project Structure, added a new JDK configuration, but with the same JDK as before (in my case 1.8.0_211)
  8. repeated step 4-5

I guess that in my case, the problem was that IDEA did not manage transition of Project Structure/JDK well after upgrade of IDEA

2

Hello Rickard, can you please clarify if your project is built with Maven/Gradle? Thank you

0

Hi Olga, my project was built with Gradle.

0

Rickard, can you please share the Gradle.build file or sample project where the issue is reproduced for you if possible. Thank you 

0

FWIW, I was able to resolve the issue by refactor->rename the object and then renaming it back.

Gradle project, intellij 2019.3.1

2

This is absolutely a no go! Struggling about 4 hours to successfully build my project again without success!!! This happens after I upgraded to the new version. Downgraded to 2019.3.1 - nope - same error. 

0

Hello Info

Can you please describe the error in more details. If possible and convenient, you may create an issue at the YouTrack, attaching idea.log file to it. Thank you 

0

I upgraded my intellij ultimate to the latest version and I'm having the same problem. Anyone had found a solution?

Here is my idea.log.

https://drive.google.com/file/d/1X7WymKf1Hduy-3tUqfo1SMDOExi2oair/view?usp=sharing

I can build successfully, SDK set up, I just can't resolve the imports.

1

Hello,

Have you tried to run "File | Invalidate Caches"? Is it reproducible with new sample project? Please try to temporarily disable "Kotlin" plugin.

1

Hello, 

Was this issue ever resolved? I am having the same problem and have tried all suggested solutions above with no luck. 

Thanks, 

Elizabeth

0

Hello Elizabeth,

Have you tried to run "Reimport" from Maven tool window?

0

Hi Yaroslav, 

Thanks for your response. I had tried 'Reimport' previously with no success.

I managed to resolve the issue, so I am posting my solution here so others may benefit from it in future. 

On inspection of the logs, I noticed that there was a CSV plugin which was throwing an error: 

2020-05-14 12:35:13,849 [ 419847]  ERROR - aemon.impl.PassExecutorService - While loading class net.seesharpsoft.intellij.plugins.csv.intention.CsvShiftColumnLeftIntentionAction: net/seesharpsoft/intellij/plugins/csv/intention/CsvShiftColumnLeftIntentionAction has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 [Plugin: net.seesharpsoft.intellij.plugins.csv] [Plugin: net.seesharpsoft.intellij.plugins.csv]```

I tried to navigate to the IDE Preferences, but realised that I was unable to open them (both through the menu and keyboard shortcut). Strangely enough, my "Quick Search" also was not working. 

I managed to remove the plugin by navigating to ~/Library/Application Support/JetBrains/IdeaIC2020.1/plugins in my terminal and running rm -rf <plugin-name>. After restarting the IDE my imports resolved.

0

As a heads-up for others:

I had the very same problem and it was also caused by a plug-in. In my case it was SQLscout.
Upon uninstalling, everything is back to normal, but as soon as i reinstall it, I get the error again.


Best, Louis

0

I have the same issue using IntelliJ EDU 2020.1 on Mac OS 10.11.6

I tried to find a plug-in in the idea log file but could not find one. Now I will try to reinstall IntelliJ or switch to Visual Studio Code, since this problem now keeps me busy for some hours already and does not seem to have been fixed within one year and nearly three months. This is disappointing.

 

EDIT:

when deleting my old version I found some hints, that IntelliJ tries to import settings from older versions when it launches the first time. So I found some older settings from a 2017 version which I deleted – hopefully this helps.

0

Hello Kristian,

Probably some old plugins caused the wrong behaviour. In case you face the issue again, please feel free to create a bug report at the YouTrack (https://youtrack.jetbrains.com/) providing the idea.log file. Thank you

0

You can try not to ignore the *.class file in intellij setting.

Go to Setting, and search for File Type and click it. Delete *.class if it existed in the bottom line

0

I recently experienced this bug. I finally discovered the solution for my situation. I had recently started an new contract position and was in the process of on-boarding. I was setting up my desktop environment an encountered this bug while attempting to get the service that wa part of my first project to run locally. This was a large maven Java REST service project. I eventually discovered that IntelliJ does not read the maven settings.xml from the default config directory in your maven installation. Therefore it did not pick up the correct location of my local repository.  I had to copy settings.xml to my $home/.m2/ folder, close the project, close IntelliJ, flush the .idea folder from the project root, restart Intellij and verify that the local repository was set correctly in the maven build settings. Only then could I import the project and have the dependencies all be satisfied. Hope this helps some other victim of this bug.

0

>I eventually discovered that IntelliJ does not read the maven settings.xml from the default config directory in your maven installation.

Sorry for the issue. IDE reads the settings.xml file specified in the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | User settings file text box. If the settings file does not have the default (USER_HOME/.m2/ directory) location you can change it by overriding default value of this option.

1

Hi all, I usually use the community version of IDEA to create small projects, as I am just a high-school student. I wanted to try Intellij IDEA Ultimate for the first time. When I tried to import it, I too faced the same problem. Many base classes such as String and Scanner didn't get recognised automatically.

 

Hence, I checked the project structure settings as a first step, found that it was alright n automatically detected Java 8 OpenJDK. But still, no success. After hours of searching the web, I finally decided to check the JDK settings again. I don't know if this problem only occurs on linux, but to my surprise, there were two JDKs of the same version (java 8) in the list of detected ones, though I clearly remember installing it only once. On switching to the second one, it indexed the path and the issue solved. Hope this helps anyone here. Wish the JetBrains Team solves this ASAP.

 

1

Hello Jona2jef,

 

Please tell what version of IntelliJ IDEA do you use? Is the issue reproduced with v2020.2: https://www.jetbrains.com/idea/download?

Was the JDK installed with the IntelliJ IDEA or you just defined the path to it? Thanks

 

0

Hi Olga, 

I have the same issue with 2020.2. However it seems it's project-dependent. In my main work project I do not have any problem with resolving Java classes. 

However I wanted to write some simple program, so I have copied old simple project so I don't need to setup everything from scratch. When I've opened it (deleted .idea & .iml) as Maven project, it was not able to resolve any JDK classes. 

A bit strange thing for me from build log is that it uses CP from old Idea version (2019.3.3)

2020-08-06 13:49:53,747 [ 1] INFO - etbrains.jps.cmdline.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2019.3.3/plugins/java/lib/jps-launcher.jar
2020-08-06 13:49:54,014 [ 268] INFO - etbrains.jps.cmdline.BuildMain - Connection to IDE established in 241 ms
2020-08-06 13:49:54,021 [ 275] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2020-08-06 13:49:54,039 [ 293] INFO - jps.cmdline.JpsModelLoaderImpl - Loading model: project path = D:/programming/tools/large-table-ia-partitioning, global options path = C:/Users/user/AppData/Roaming/JetBrains/IntelliJIdea2020.2/options
2020-08-06 13:49:54,228 [ 482] INFO - jps.cmdline.JpsModelLoaderImpl - Model loaded in 188 ms
2020-08-06 13:49:54,228 [ 482] INFO - jps.cmdline.JpsModelLoaderImpl - Project has 1 modules, 19 libraries
2020-08-06 13:49:54,314 [ 568] INFO - m.intellij.util.io.StorageLock - lower=100; upper=500; buffer=10; max=680
2020-08-06 13:49:54,321 [ 575] INFO - tellij.util.io.FileChannelUtil - un-interruptible FileChannel-s will be used for indexes
2020-08-06 13:49:54,409 [ 663] INFO - etbrains.jps.cmdline.BuildMain - Pre-loaded process ready in 672 ms

And here is content of idea.log:

2020-08-06 13:49:47,242 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2020-08-06 13:49:47,264 [ 22] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-202.6397.94, 27 Jul 2020 12:40)
2020-08-06 13:49:47,266 [ 24] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2020-08-06 13:49:47,266 [ 24] INFO - #com.intellij.idea.Main - JRE: 11.0.7+10-b944.20 (JetBrains s.r.o.)
2020-08-06 13:49:47,266 [ 24] INFO - #com.intellij.idea.Main - JVM: 11.0.7+10-b944.20 (OpenJDK 64-Bit Server VM)
2020-08-06 13:49:47,277 [ 35] INFO - #com.intellij.idea.Main - JVM Args: exit -Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Djb.vmOptionsFile=C:\Users\user\AppData\Roaming\JetBrains\IntelliJIdea2020.2\idea64.exe.vmoptions -Djava.library.path=C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3\jbr\\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3\jbr\\bin\server -Didea.jre.check=true -Dide.native.launcher=true -Didea.vendor.name=JetBrains -Didea.paths.selector=IntelliJIdea2020.2 -XX:ErrorFile=C:\Users\user\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\user\java_error_in_idea.hprof
2020-08-06 13:49:47,277 [ 35] INFO - #com.intellij.idea.Main - library path: C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3\jbr\\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3\jbr\\bin\server
2020-08-06 13:49:47,277 [ 35] INFO - #com.intellij.idea.Main - boot library path: C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3\jbr\bin
2020-08-06 13:49:47,279 [ 37] INFO - #com.intellij.idea.Main - locale=en_US JNU=Cp1252 file.encoding=Cp1252
idea.config.path=C:\Users\user\AppData\Roaming\JetBrains\IntelliJIdea2020.2
idea.system.path=C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2020.2
idea.plugins.path=C:\Users\user\AppData\Roaming\JetBrains\IntelliJIdea2020.2\plugins
idea.log.path=C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2020.2\log
2020-08-06 13:49:47,402 [ 160] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 123 ms
2020-08-06 13:49:47,458 [ 216] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2020-08-06 13:49:48,108 [ 866] INFO - ntellij.idea.ApplicationLoader - CPU cores: 16; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@50b17b69[Running, parallelism = 15, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@4d16f81f
2020-08-06 13:49:48,184 [ 942] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (202.6397.94), com.intellij.platform.images (202.6397.94), JetBrains maven model api classes (202.6397.94), JetBrains Repository Search (202.6397.94), HTML Tools (202.6397.94), Refactor-X (202.6397.94), XPathView + XSLT (202.6397.94), XSLT Debugger (202.6397.94), Smali Support (202.6397.94), IDE Settings Sync (202.6397.94), Configuration Script (202.6397.94), Copyright (202.6397.94), CSS (202.6397.94), W3C Validators (202.6397.94), Less (202.6397.94), Sass (202.6397.94), Stylus (202.6397.94), Gradle (202.6397.94), Java (202.6397.94), Bytecode Viewer (202.6397.94), JUnit (202.6397.94), Code Coverage for Java (202.6397.94), Emma (202.6397.94), ZKM-Unscramble (202.6397.94), Spring AOP/@AspectJ (202.6397.94), Dependency Structure Matrix (202.6397.94), Java IDE Customization (202.6397.94), Java Stream Debugger (202.6397.94), Eclipse Interoperability (202.6397.94), Java Bytecode Decompiler (202.6397.94), Recommenders for Java and Python (202.6397.94), Windows 10 Light Theme (202.6397.94), Properties (202.6397.94), Ant (202.6397.94), UML (202.6397.94), Guice (202.6397.94), Java Internationalization (202.6397.94), Resource Bundle Editor (202.6397.94), Machine Learning Code Completion (202.6397.94), Task Management (202.6397.94), Time Tracking (202.6397.94), FTP/SFTP Connectivity (ex. Remote Hosts Access) (202.6397.94), Gherkin (202.6397.94), Webp Support (202.6397.94), EditorConfig (202.6397.94), Haml (202.6397.94), Terminal (202.6397.94), Git (202.6397.94), ChangeReminder (202.6397.94), Next File Prediction (202.6397.94), GitHub (202.6397.94), Performance Testing (202.6397.94), SSH Remote Run (202.6397.94), WSL Support Framework (202.6397.94), Shell Script (202.6397.94), TextMate Bundles (202.6397.94), YAML (202.6397.94), Docker (202.6397.94), Microservices Application Configuration (202.6397.94), Settings Repository (202.6397.94), IntelliLang (202.6397.94), Groovy (202.6397.94), Maven (202.6397.94), Gradle-Java (202.6397.94), Gradle Extension (202.6397.94), Frameworks Starters (202.6397.94), Gradle-Maven (202.6397.94), Reactive Streams (Reactor, RxJava) (202.6397.94), JavaFX (202.6397.94), Markdown (202.6397.94), Grazie (202.6397.94), JavaScript and TypeScript (202.6397.94), JavaScript Intention Power Pack (202.6397.94), TSLint (202.6397.94), Angular and AngularJS (202.6397.94), Database Tools and SQL (202.6397.94), Java SQL Libraries (202.6397.94), Persistence Frameworks (202.6397.94), Java EE Platform (202.6397.94), JavaScript Debugger (202.6397.94), Node.js (202.6397.94), Spy-js (202.6397.94), CoffeeScript (202.6397.94), Kotlin (1.3.72-release-IJ2020.1-6), Java EE: Persistence (JPA) (202.6397.94), Java EE: Enterprise Java Beans (EJB) (202.6397.94), Java EE: Bean Validation (202.6397.94), Java EE: Contexts and Dependency Injection (CDI) (202.6397.94), Java EE: Batch Applications (202.6397.94), Java EE: Application Servers Integration (202.6397.94), Tomcat and TomEE (202.6397.94), Java EE: Web/Servlets (202.6397.94), Java Server Pages (JSP) (202.6397.94), Java EE: Server Faces (JSF) (202.6397.94), Java EE: Message Service (JMS) (202.6397.94), Java EE: WebSockets (202.6397.94), Spring (202.6397.94), Spring Security (202.6397.94), Spring Data (202.6397.94), Java EE: Web Services (JAX-WS) (202.6397.94), Spring Web Services (202.6397.94), FreeMarker (202.6397.94), Spring Batch (202.6397.94), Spring Messaging (202.6397.94), Spring Integration Patterns (202.6397.94), Spring OSGi (202.6397.94), Maven Extension (202.6397.94), HTTP Client (202.6397.94), Spring MVC (202.6397.94), Spring Web Flow (202.6397.94), Java EE: RESTful Web Services (JAX-RS) (202.6397.94), Java HTTP Clients (202.6397.94), OpenAPI Specifications (202.6397.94)
2020-08-06 13:49:48,185 [ 943] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Batch Scripts Support (1.0.12), CMD Support (1.0.5), String Manipulation (8.1.191.000.2), Rainbow CSV (2.0), Builder Generator (1.1.8), QAPlug (1.3.22), QAPlug - Checkstyle (1.4.0), QAPlug - FindBugs (1.3.8), Save Actions (2.0.0), Design Patterns IntelliJ IDEA Plugin (1.1.0), SpotBugs (1.2.3), EnvFile (3.2.1), CSV Plugin (2.14.0), Kubernetes (202.6397.93), SonarLint (4.10.0.19739), WhiteSource Advise (20.7.2), Request mapper (1.0), .env files support (2020.3)
2020-08-06 13:49:48,346 [ 1104] INFO - cloudConfig.CloudConfigManager - === Exit: JBA_NOT_FOUND ===
2020-08-06 13:49:48,493 [ 1251] INFO - m.intellij.util.io.StorageLock - lower=100; upper=500; buffer=10; max=1959
2020-08-06 13:49:48,503 [ 1261] INFO - tellij.util.io.FileChannelUtil - un-interruptible FileChannel-s will be used for indexes
2020-08-06 13:49:48,573 [ 1331] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2020-08-06 13:49:48,605 [ 1363] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2020-08-06 13:49:48,667 [ 1425] WARN - rationStore.ComponentStoreImpl - Path must not contains ROOT_CONFIG macro, corrected: qaplug_profiles
2020-08-06 13:49:48,707 [ 1465] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2020-08-06 13:49:48,800 [ 1558] INFO - ateNotifierBackgroundComponent - PluginRepositoryManagerRunnable started...
2020-08-06 13:49:48,801 [ 1559] INFO - re.component.SaveActionManager - Starting component: Save Actions
2020-08-06 13:49:48,807 [ 1565] INFO - re.component.SaveActionManager - Starting component: Save Actions Java
2020-08-06 13:49:48,821 [ 1579] INFO - re.component.SaveActionManager - Found serial version uid class class com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspection
2020-08-06 13:49:48,883 [ 1641] INFO - gs.impl.UpdateCheckerComponent - channel: release
2020-08-06 13:49:49,069 [ 1827] INFO - BridgeProjectLifecycleListener - Using legacy project model to open project
2020-08-06 13:49:49,425 [ 2183] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3\bin\fsnotifier64.exe
2020-08-06 13:49:49,431 [ 2189] ERROR - ctionSystem.DefaultActionGroup - Cannot add an action twice: Builder (Implements Builder Design Pattern)
java.lang.Throwable: Cannot add an action twice: Builder (Implements Builder Design Pattern)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:143)
at com.intellij.openapi.actionSystem.DefaultActionGroup.addAction(DefaultActionGroup.java:179)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.addToGroupInner(ActionManagerImpl.java:913)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.processGroupElement(ActionManagerImpl.java:824)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.processActionsChildElement(ActionManagerImpl.java:1112)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.registerPluginActions(ActionManagerImpl.java:529)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.java:166)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:662)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:49)
at com.intellij.serviceContainer.ServiceComponentAdapter.access$createAndInitialize(ServiceComponentAdapter.kt:13)
at com.intellij.serviceContainer.ServiceComponentAdapter$doCreateInstance$1.run(ServiceComponentAdapter.kt:43)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:192)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:42)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:411)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:393)
at com.intellij.openapi.actionSystem.ActionManager.getInstance(ActionManager.java:28)
at com.intellij.openapi.actionSystem.impl.ActionPreloader.preload(ActionPreloader.java:15)
at com.intellij.openapi.application.Preloader.lambda$preload$0(Preloader.java:84)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.application.Preloader.lambda$preload$1(Preloader.java:74)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:215)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:26)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:194)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:207)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:183)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-08-06 13:49:49,437 [ 2195] ERROR - ctionSystem.DefaultActionGroup - IntelliJ IDEA 2020.2 Build #IU-202.6397.94
2020-08-06 13:49:49,437 [ 2195] ERROR - ctionSystem.DefaultActionGroup - JDK: 11.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-08-06 13:49:49,437 [ 2195] ERROR - ctionSystem.DefaultActionGroup - OS: Windows 10
2020-08-06 13:49:49,438 [ 2196] ERROR - ctionSystem.DefaultActionGroup - Last Action:
2020-08-06 13:49:49,451 [ 2209] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2020-08-06 13:49:49,565 [ 2323] INFO - CompilerWorkspaceConfiguration - Available processors: 16
2020-08-06 13:49:49,694 [ 2452] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2020-08-06 13:49:49,735 [ 2493] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.psi.codeStyle.JavaCodeStyleSettings
2020-08-06 13:49:49,736 [ 2494] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.psi.formatter.xml.XmlCodeStyleSettings
2020-08-06 13:49:49,739 [ 2497] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.postgres.PgCodeStyleSettings
2020-08-06 13:49:49,739 [ 2497] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.oracle.OraCodeStyleSettings
2020-08-06 13:49:49,740 [ 2498] INFO - eStyle.CustomCodeStyleSettings - Loaded org.jetbrains.plugins.less.settings.LessCodeStyleSettings
2020-08-06 13:49:49,740 [ 2498] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.db2.Db2CodeStyleSettings
2020-08-06 13:49:49,740 [ 2498] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.sybase.AseCodeStyleSettings
2020-08-06 13:49:49,740 [ 2498] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.mssql.MsCodeStyleSettings
2020-08-06 13:49:49,741 [ 2499] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.formatter.settings.SqlCodeStyleSettings
2020-08-06 13:49:49,741 [ 2499] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.psi.css.codeStyle.CssCodeStyleSettings
2020-08-06 13:49:49,741 [ 2499] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.mysql.MysqlCodeStyleSettings
2020-08-06 13:49:49,741 [ 2499] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.h2.H2CodeStyleSettings
2020-08-06 13:49:49,742 [ 2500] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.lang.typescript.formatter.TypeScriptCodeStyleSettings
2020-08-06 13:49:49,742 [ 2500] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.sqlite.SqliteCodeStyleSettings
2020-08-06 13:49:49,742 [ 2500] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.hsql.HsqlCodeStyleSettings
2020-08-06 13:49:49,742 [ 2500] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.sql.dialects.derby.DerbyCodeStyleSettings
2020-08-06 13:49:49,744 [ 2502] INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.psi.formatter.xml.HtmlCodeStyleSettings
2020-08-06 13:49:49,746 [ 2504] INFO - eStyle.CommonCodeStyleSettings - Loaded CSS common code style settings
2020-08-06 13:49:49,746 [ 2504] INFO - eStyle.CommonCodeStyleSettings - Loaded HTML common code style settings
2020-08-06 13:49:49,763 [ 2521] INFO - eStyle.CommonCodeStyleSettings - Loaded Java common code style settings
2020-08-06 13:49:49,763 [ 2521] INFO - eStyle.CommonCodeStyleSettings - Loaded JSP common code style settings
2020-08-06 13:49:49,763 [ 2521] INFO - eStyle.CommonCodeStyleSettings - Loaded Less common code style settings
2020-08-06 13:49:49,764 [ 2522] INFO - eStyle.CommonCodeStyleSettings - Loaded TypeScript common code style settings
2020-08-06 13:49:49,764 [ 2522] INFO - eStyle.CommonCodeStyleSettings - Loaded XML common code style settings
2020-08-06 13:49:49,784 [ 2542] WARN - ij.codeInspection.InspectionEP - org.whitesource.IntelliJ.plugin.scanResultTree.WhitesourceLocalInspectionTool
2020-08-06 13:49:49,821 [ 2579] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.soldevelo.qaplug.scanner.AnalysisProjectProfileManager)
2020-08-06 13:49:50,452 [ 3210] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2020-08-06 13:49:50,506 [ 3264] WARN - tartup.impl.StartupManagerImpl - Activities registered via registerPostStartupActivity must be dumb-aware: com.soldevelo.qaplug.scanner.AnalysisProjectProfileManager$1@6915f2de
2020-08-06 13:49:50,554 [ 3312] WARN - tartup.impl.StartupManagerImpl - Activities registered via registerPostStartupActivity must be dumb-aware: org.jetbrains.kotlin.idea.configuration.ui.KotlinConfigurationCheckerComponent$projectOpened$1@3de99f28
2020-08-06 13:49:50,680 [ 3438] INFO - leBasedIndexDataInitialization - Initialization done: 2153
2020-08-06 13:49:50,704 [ 3462] WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID: WhiteSource) or icon jar:file:/C:/Users/user/AppData/Roaming/JetBrains/IntelliJIdea2020.2/plugins/wss-intellij-plugin/lib/wss-intellij-plugin-20.7.2.jar!/icons/Favicon_16x16.png
2020-08-06 13:49:51,309 [ 4067] INFO - penapi.application.Experiments - Experimental features enabled for user: wsl.p9.support, wsl.p9.show.roots.in.file.chooser, inline.browse.button, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, copy.reference.popup, new.large.text.file.viewer, property.value.inplace.editing, terminal.shell.command.handling
2020-08-06 13:49:51,429 [ 4187] INFO - PerformancePlugin - Performance Plugin is in silent mode
2020-08-06 13:49:51,718 [ 4476] WARN - ij.codeInspection.InspectionEP - org.whitesource.IntelliJ.plugin.scanResultTree.WhitesourceLocalInspectionTool
2020-08-06 13:49:51,803 [ 4561] INFO - exImpl$StubIndexInitialization - Initialization done: 1122
2020-08-06 13:49:51,924 [ 4682] INFO - ge.ExternalProjectsDataStorage - Load external projects data in 30 millis (read time: 1)
2020-08-06 13:49:51,978 [ 4736] INFO - cloudConfig.CloudConfigManager - === StatusBar.update another widget: null ===
2020-08-06 13:49:51,979 [ 4737] INFO - cloudConfig.CloudConfigManager - === StatusBar ignored ===
2020-08-06 13:49:52,414 [ 5172] INFO - llij.database.util.SqlDialects - SQL dialects initialized in 0 ms
2020-08-06 13:49:52,638 [ 5396] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2019.3.3/plugins/java/lib/jps-launcher.jar
2020-08-06 13:49:52,638 [ 5396] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2020-08-06 13:49:52,641 [ 5399] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2020-08-06 13:49:52,641 [ 5399] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2020-08-06 13:49:52,724 [ 5482] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 391ms; general responsiveness: ok; EDT responsiveness: ok
2020-08-06 13:49:52,743 [ 5501] WARN - com.intellij.util.xmlb.Binding - no accessors for org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2020-08-06 13:49:52,908 [ 5666] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred
2020-08-06 13:49:52,908 [ 5666] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202019.3.3/lib/protobuf-java-3.5.1.jar) to field java.nio.Buffer.address
2020-08-06 13:49:52,909 [ 5667] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
2020-08-06 13:49:52,909 [ 5667] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2020-08-06 13:49:52,909 [ 5667] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release
2020-08-06 13:49:53,448 [ 6206] INFO - STDOUT - the project is mavanized + true
2020-08-06 13:49:53,529 [ 6287] INFO - ProjectRootPostStartUpActivity - D:/programming/tools/large-table-ia-partitioning/.idea case-sensitivity: expected=false actual=false
2020-08-06 13:49:53,629 [ 6387] INFO - tor.impl.FileEditorManagerImpl - Project opening took 4642 ms
2020-08-06 13:49:53,629 [ 6387] INFO - re.component.SaveActionManager - [+] Start SaveActionManager#beforeAllDocumentsSaving
2020-08-06 13:49:53,629 [ 6387] INFO - re.component.SaveActionManager - Locating psi files for 0 documents: []
2020-08-06 13:49:53,629 [ 6387] INFO - re.component.SaveActionManager - End SaveActionManager#beforeAllDocumentsSaving
2020-08-06 13:49:53,644 [ 6402] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 2128ms; general responsiveness: ok; EDT responsiveness: ok
2020-08-06 13:49:53,736 [ 6494] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2019.3.3/plugins/java/lib/jps-launcher.jar
2020-08-06 13:49:53,781 [ 6539] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2020-08-06 13:49:53,781 [ 6539] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2020-08-06 13:49:53,781 [ 6539] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2020-08-06 13:49:54,424 [ 7182] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred
2020-08-06 13:49:54,424 [ 7182] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202019.3.3/lib/protobuf-java-3.5.1.jar) to field java.nio.Buffer.address
2020-08-06 13:49:54,425 [ 7183] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
2020-08-06 13:49:54,425 [ 7183] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2020-08-06 13:49:54,425 [ 7183] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release
2020-08-06 13:49:54,617 [ 7375] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.soldevelo.qaplug.scanner.AnalysisProjectProfileManager)
2020-08-06 13:49:54,652 [ 7410] INFO - #org.jetbrains.idea.maven - Sent token to maven server
2020-08-06 13:49:54,899 [ 7657] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 2175ms; general responsiveness: ok; EDT responsiveness: ok
2020-08-06 13:49:54,906 [ 7664] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to index
2020-08-06 13:49:54,949 [ 7707] INFO - gmanip.ShortcutStartupActivity - Registering Switch case (camelCase, kebab-case, KEBAB-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, First word capitalized, Words Capitalized, PascalCase) id:StringManipulation.SwitchStyleAction
2020-08-06 13:49:54,949 [ 7707] INFO - gmanip.ShortcutStartupActivity - Registering Switch case - Reverse (PascalCase, Words Capitalized, First word capitalized, words lowercase, dot.case, SCREAMING_SNAKE_CASE, snake_case, KEBAB-UPPERCASE, kebab-case, camelCase) id:StringManipulation.SwitchStyleAction.Reverse
2020-08-06 13:49:56,572 [ 9330] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'UniversalDeadlockMachine.java'
2020-08-06 13:49:58,323 [ 11081] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2020-08-06 13:49:58,723 [ 11481] INFO - gnostic.WindowsDefenderChecker - Windows Defender status: not used
2020-08-06 13:51:48,919 [ 121677] INFO - ution.rmi.RemoteProcessSupport - Terminating: 55242/Maven36ServerImpl9f818842

As there is an error related to builder plugin, I have uninstalled it. Unfortunately it was not cause of this problem and it persists. 

In my project Idea cannot resolve java imports

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.time.LocalDateTime;

However 

System.out.println(arguments);
Class.forName(arguments.getDriver());

works just fine. 

Could I provide you some other information to track this issue?

0

ok, in my case it seems it's related to Java Modules. Idea is not able recognize/suggest Java modules in version 14. When it comes to external libraries, it suggest them correctly. 

My module-info:

module com.company.project{
//no problem with imports
requires commons.cli;
requires com.zaxxer.hikari;

//even this module is required, Idea is not able to recognize/suggest imports from this module.
requires java.sql;
}

Classes from java.base module are recognized/suggested correctly.

When I switch my project to Java 11/13 it works fine. However with Java 14 it does not.

0

Please sign in to leave a comment.