Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InteliJ infinite "scanning files to index" #2458

Closed
ardelaet opened this issue Oct 31, 2023 · 5 comments
Closed

InteliJ infinite "scanning files to index" #2458

ardelaet opened this issue Oct 31, 2023 · 5 comments
Assignees
Labels
bug Impact: High 15% or more of users are affected by the issue. Severity: Blocker Severity - Highest out of blocker, major and minor

Comments

@ardelaet
Copy link

ardelaet commented Oct 31, 2023

Steps to reproduce

I recently started a new Spring Boot project using JDK 21, Maven and Vaadin. As a basis for this project, I used a Vaadin starter project for version 14 (version 14.10.9 to be exact).

I use IntelliJ 2023 as my IDE, running on Windows 11.
I have zScaler installed and active.

Actual behavior

When I open & run the project without the Vaadin Designer plugin enabled, it works as expected.

When I open the project with the Vaadin Designer plugin enabled, IntelliJ gets stuck on "scanning files to index". An animated loading bar appear in the bottom status bar as well as one in the middle of my screen (see image below).

image

I let this run for several hours, to no avail. When I press the 'cancel' button I get prompted to download & install a bunch of npm packages. However, when double checking these packages are already installed. This behavior is probably caused by the incomplete indexing. Other than this prompt, the project opens nicely after pressing that 'cancel' button. Both using the Vaadin Designer plugin's features and running the program behaves as expected.

Below you can find the last few lines of the idea.log before the freeze happens (this does not change until I click 'cancel'):

2023-10-31 01:07:46,904 [  20845]   INFO - #c.i.w.i.i.EntitiesOrphanageImpl - Update orphanage. 0 modules added
2023-10-31 01:07:46,905 [  20846]   INFO - #c.i.w.i.i.WorkspaceModelImpl - Project model updated to version 10 in 7 ms: Root model commit
2023-10-31 01:07:46,922 [  20863] SEVERE - #c.i.o.a.i.ApplicationImpl - AWT events are not allowed inside write action: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@2f61d502,notifier=null,catchExceptions=false,when=1698710866849] on sun.awt.windows.WToolkit@2ab4392b
java.lang.Throwable: AWT events are not allowed inside write action: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@2f61d502,notifier=null,catchExceptions=false,when=1698710866849] on sun.awt.windows.WToolkit@2ab4392b
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$postInit$0(ApplicationImpl.java:182)
    at com.intellij.ide.IdeEventQueue.runCustomProcessors(IdeEventQueue.kt:424)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:384)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:400)
    at com.intellij.openapi.progress.impl.PlatformTaskSupportKt.pumpEventsForHierarchy(PlatformTaskSupport.kt:379)
    at com.intellij.openapi.progress.impl.PlatformTaskSupportKt.access$pumpEventsForHierarchy(PlatformTaskSupport.kt:1)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$2.invoke(PlatformTaskSupport.kt:157)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$2.invoke(PlatformTaskSupport.kt:135)
    at com.intellij.openapi.application.impl.ModalityKt.inModalContext(modality.kt:12)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport.runWithModalProgressBlockingInternal(PlatformTaskSupport.kt:135)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport.access$runWithModalProgressBlockingInternal(PlatformTaskSupport.kt:41)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$1.invoke(PlatformTaskSupport.kt:123)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$1.invoke(PlatformTaskSupport.kt:119)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:94)
    at com.intellij.openapi.progress.impl.PlatformTaskSupport.runWithModalProgressBlockingInternal(PlatformTaskSupport.kt:119)
    at com.intellij.openapi.progress.TasksKt.runWithModalProgressBlocking(tasks.kt:167)
    at com.intellij.ide.impl.ProjectUtilKt.runUnderModalProgressIfIsEdt(ProjectUtil.kt:710)
    at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.kt:364)
    at com.vaadin.designer2.intellij.editor.flow.NodeServerModuleComponent.lambda$indexNodeModules$1(NodeServerModuleComponent.java:98)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:992)
    at com.vaadin.designer2.intellij.editor.flow.NodeServerModuleComponent.indexNodeModules(NodeServerModuleComponent.java:96)
    at com.vaadin.designer2.intellij.editor.flow.NodeServerModuleComponent.lambda$indexNodeLater$0(NodeServerModuleComponent.java:70)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:208)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:190)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
    at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:478)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:121)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:685)
    at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:589)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589)
    at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
    at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2023-10-31 01:07:46,926 [  20867] SEVERE - #c.i.o.a.i.ApplicationImpl - IntelliJ IDEA 2023.2.2  Build #IU-232.9921.47
2023-10-31 01:07:46,926 [  20867] SEVERE - #c.i.o.a.i.ApplicationImpl - JDK: 17.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-10-31 01:07:46,927 [  20868] SEVERE - #c.i.o.a.i.ApplicationImpl - OS: Windows 11
2023-10-31 01:07:46,927 [  20868] SEVERE - #c.i.o.a.i.ApplicationImpl - Plugin to blame: Vaadin Designer version: 4.6.23
2023-10-31 01:07:49,711 [  23652]   INFO - #o.j.k.i.s.r.KotlinCompilerReferenceIndexStorage - KCRI storage is closed (didn't exist)
2023-10-31 01:07:49,712 [  23653]   INFO - #c.i.c.b.CompilerReferenceServiceBase - backward reference index reader is closed (didn't exist)
2023-10-31 01:07:53,230 [  27171]   INFO - #c.i.c.b.IsUpToDateCheckStartupActivity - isUpToDate = true
2023-10-31 01:08:30,703 [  64644]   INFO - #c.i.u.g.s.GistStorageImpl - Cleaning old huge-gists dirs from [C:\Users\a98016721\AppData\Local\JetBrains\IntelliJIdea2023.2\caches\huge-gists] ...

Below you can find the first few lines of the idea.log after I press 'cancel':

2023-10-31 01:13:32,859 [ 366800]   INFO - #c.i.c.ComponentStoreImpl - Saving Module: 'CobotConnect'designer2.settings took 345895 ms
2023-10-31 01:13:32,946 [ 366887]   INFO - #o.j.k.i.s.r.KotlinCompilerReferenceIndexService - initialized
2023-10-31 01:13:32,952 [ 366893]   INFO - #c.i.l.j.l.t.TypeScriptExternalDefinitionsService - Type definition roots changed: project [CobotConnect], added/updated [], removed: [@types/lodash, @types/express]
2023-10-31 01:13:32,955 [ 366896]   WARN - #o.j.k.i.s.r.KotlinCompilerReferenceIndexStorage - kotlin-data-container is not found
2023-10-31 01:13:32,957 [ 366898]   INFO - #c.i.c.b.CompilerReferenceServiceBase - initialized

Expected behavior

IntelliJ not getting stuck at "scanning files to index".

@harrbca
Copy link

harrbca commented Nov 7, 2023

Can confirm, I am having the exact same issue. I sent my logs to IntelliJ support and they identified this plugin as being the cause and recommended I disable it to see if it corrected my loading issue. It did.

@harrbca
Copy link

harrbca commented Nov 7, 2023

I should note, this has been happening to me for several months. I finally got tired of hitting the cancel button and decided to email IntellJ support about it figuring it was some weird issue with the IDE.

@josegulisano
Copy link

I am experiencing the same issue. This is a recurring problem going back to 2020.

@mshabarov
Copy link

Thanks @ardelaet and all who commented on this issue! We'll take a look as soon as we can.

@mshabarov mshabarov added bug Severity: Blocker Severity - Highest out of blocker, major and minor Impact: High 15% or more of users are affected by the issue. labels Nov 14, 2023
@mshabarov mshabarov assigned mshabarov and szolo and unassigned mshabarov Nov 16, 2023
@szolo
Copy link
Contributor

szolo commented Nov 19, 2023

Fixed in Vaadin Designer 4.6.24.

@szolo szolo closed this as completed Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Impact: High 15% or more of users are affected by the issue. Severity: Blocker Severity - Highest out of blocker, major and minor
Projects
Development

No branches or pull requests

5 participants