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

Refact Chat won't load in any Jetbrains editor #156

Closed justinmilner1 closed 4 months ago

justinmilner1 commented 5 months ago

I've tried on both IntelliJ and Pycharm both arrive with empty chat window. The below error also is present.

Screenshot from 2024-06-24 16-07-26


An internal error happened in the IDE plugin.

Message: (no message)

Stack trace

java.lang.NullPointerException: Cannot invoke "com.intellij.util.Alarm.cancelAllRequests()" because "this.myAlarm" is null
    at com.intellij.ui.jcef.JBCefOsrComponent.reshape(JBCefOsrComponent.java:98)
    at java.desktop/java.awt.Component.setBounds(Component.java:2359)
    at java.desktop/java.awt.BorderLayout.layoutContainer(BorderLayout.java:843)
    at java.desktop/java.awt.Container.layout(Container.java:1541)
    at java.desktop/java.awt.Container.doLayout(Container.java:1530)
    at com.intellij.ui.tabs.impl.JBTabsImpl.layout(JBTabsImpl.java:3505)
    at com.intellij.ui.tabs.impl.JBTabsImpl.layout(JBTabsImpl.java:3512)
    at com.intellij.ui.tabs.impl.JBTabsImpl.layoutComp(JBTabsImpl.java:2331)
    at com.intellij.ui.tabs.impl.JBTabsImpl.layoutComp(JBTabsImpl.java:2313)
    at com.intellij.ui.tabs.impl.singleRow.SingleRowLayoutStrategy$Top.layoutComp(SingleRowLayoutStrategy.java:255)
    at com.intellij.ui.tabs.impl.singleRow.SingleRowLayout.layoutSingleRow(SingleRowLayout.java:122)
    at com.intellij.ui.tabs.impl.JBTabsImpl.doLayout(JBTabsImpl.java:2165)
    at java.desktop/java.awt.Container.validateTree(Container.java:1725)
    at java.desktop/java.awt.Container.validate(Container.java:1660)
    at com.intellij.ui.tabs.impl.JBTabsImpl.revalidateAndRepaint(JBTabsImpl.java:1850)
    at com.intellij.ui.tabs.impl.JBTabsImpl.revalidateAndRepaint(JBTabsImpl.java:1832)
    at com.intellij.ui.tabs.impl.JBTabsImpl.updateText(JBTabsImpl.java:1882)
    at com.intellij.ui.tabs.impl.JBTabsImpl.addTab(JBTabsImpl.java:1428)
    at com.intellij.ui.tabs.impl.JBTabsImpl.addTab(JBTabsImpl.java:1399)
    at com.intellij.ui.tabs.impl.JBTabsImpl.addTab(JBTabsImpl.java:1461)
    at com.smallcloud.refactai.panes.sharedchat.ChatPanes.addTab(ChatPanes.kt:136)
    at com.smallcloud.refactai.panes.sharedchat.ChatPanes.addTab$default(ChatPanes.kt:100)
    at com.smallcloud.refactai.panes.sharedchat.ChatPanes.restoreOrAddNew(ChatPanes.kt:42)
    at com.smallcloud.refactai.panes.sharedchat.ChatPanes.access$restoreOrAddNew(ChatPanes.kt:20)
    at com.smallcloud.refactai.panes.sharedchat.ChatPanes$setupPanes$$inlined$invokeLater$default$1.run(actions.kt:64)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:456)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
    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:788)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
    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:758)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:666)
    at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:570)
    at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1446)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:570)
    at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
    at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:994)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:994)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
    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)

Environment

Additional information

Trying to set up