smallcloudai / refact-intellij

Refact AI: Open-source AI Code assistant with autocompletion, chat, refactoring and more for IntelliJ JetBrains IDEs
https://refact.ai
BSD 3-Clause "New" or "Revised" License
37 stars 13 forks source link

[JB plugin] Internal error: AssertionError #155

Open ShantKhayalian opened 5 months ago

ShantKhayalian commented 5 months ago

An internal error happened in the IDE plugin.

Message: (no message)

Stack trace

java.lang.AssertionError: Already disposed: Project(name=manukyans, containerState=DISPOSED, componentStore=E:\manukyans) (disposed)
    at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:54)
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:240)
    at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.setException(SchedulingWrapper.java:288)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:275)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:248)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:28)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:221)
    at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:227)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:210)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=manukyans, containerState=DISPOSED, componentStore=E:\manukyans) (disposed)
    at com.intellij.serviceContainer.ComponentManagerImpl.getMessageBus(ComponentManagerImpl.kt:242)
    at com.smallcloud.refactai.lsp.LSPProcessHolder.setCapabilities(LSPProcessHolder.kt:176)
    at com.smallcloud.refactai.lsp.LSPProcessHolder.startProcess(LSPProcessHolder.kt:200)
    at com.smallcloud.refactai.lsp.LSPProcessHolder._init_$lambda$1(LSPProcessHolder.kt:141)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    ... 13 more

Environment

Additional information