continue icon indicating copy to clipboard operation
continue copied to clipboard

Continue tab is blank (IDEA 2023.2 Win 10)

Open schiebelp opened this issue 1 year ago • 30 comments

Before submitting your bug report

Relevant environment info

- OS: Win 10 
- Continue: 0.0.20
- Python: 3.11.6
- IDE: IntelliJ IDEA 2023.2 (Community Edition)

Description

I was unable to use it. The Plugin tab is visible but nothing in it.

I noticed in idea.log an exception: INFO - STDOUT - Starting Continue server binary INFO - STDERR - java.nio.file.AccessDeniedException: startProcess.vbs ... ...runBinary(ContinuePluginStartupActivity.kt:244)

Found the code 244 is this: 233: val scriptPath = Paths.get("startProcess.vbs") 244: Files.writeString(scriptPath, script)

Which is - I believe - is all about running the server_continue.exe using that vbs code.

So I went for that server and ran it myself. That unfortunatelly did not help as tab was still empty (after IDE restart).

The server communicates though, when IDEA is opened: INFO: connection open ...appears.

So there seems to be another issue. Which is frustrating, because this would be killer app. I would love to use it with local llm.

To reproduce

  1. Install plugin
  2. Open IDEA IDE
  3. Open tab Continue

Log output

continue.log

[2023-12-03 00:52:54] [WARNING] Failed to load config from C:\Users\Petr\.continue\config.py: module 'config' has no attribute 'config'
[2023-12-03 00:52:54] [DEBUG] ------ Begin Logs ------
[2023-12-03 00:52:54] [DEBUG] Downloading MeiliSearch for Windows...
[2023-12-03 00:53:05] [DEBUG] Starting MeiliSearch...
[2023-12-03 00:53:05] [INFO] Meilisearch started at http://localhost:7700

schiebelp avatar Dec 03 '23 01:12 schiebelp

@schiebelp sorry to see this, could you share what the tab looked like when empty?

Also one thing to be sure of, did you check the box in settings for "Manually Running Server" when you were running it yourself?

sestinj avatar Dec 03 '23 02:12 sestinj

@schiebelp This is now solved for good in the latest JetBrains extension. We no longer use the separate Python server, which means that whatever connection / download issue was happening here is no longer possible. Can you confirm that the tab is no longer blank?

sestinj avatar Dec 28 '23 03:12 sestinj

Installing for the first time, I get the blank tab. Clicking the + icon does nothing. No config.json file exists.

2023-12-31_131307

  • OS: Win 10
  • Continue: 0.0.25
  • Python: 3.10.4
  • IDE: PyCharm 2023.2 (Pro Edition)

Rybo-W avatar Dec 31 '23 19:12 Rybo-W

Getting this with the Intellij IDE as well...

Edit/correction: i get this when i build the plugin myself so i need to look into my environment...

elabbarw avatar Jan 19 '24 14:01 elabbarw

@elabbarw Could you share what version of the extension you're running, and which IDE you have? I'm wondering whether this might be separate, especially possibly related to Android Studio

sestinj avatar Jan 19 '24 22:01 sestinj

I tried with the downloads that you already have compiled and they work fine, so it must be something related to how I'm building the plugin myself. Update: Sorted out my JDK, and now I can successfully build and run the plugin without encountering any problems.

elabbarw avatar Jan 21 '24 10:01 elabbarw

@Rybo-W We now have version 0.0.27 available with a number of fixes since 0.0.25—are you still experiencing this error? If so we're working toward a number of large improvements in 0.0.28, and I'd love to get more info here so I can make sure it gets solved

sestinj avatar Jan 24 '24 17:01 sestinj

@sestinj Thanks for responding. Unfortunately, I experience the exact same problem with version 0.0.26 and 0.0.27.

blank tab. Clicking the + icon does nothing.

Rybo-W avatar Jan 25 '24 04:01 Rybo-W

@sestinj thanks for that update! ^^ I just wanted to share, after update. The tab still empty. However! On my work win 10 laptop, it works!

schiebelp avatar Jan 28 '24 19:01 schiebelp

@schiebelp @Rybo-W thanks for trying. It would be incredibly helpful if you had the chance to check the logs (Help -> Open Logs in Editor) for anything related to Continue, but otherwise will do the best I can to find a similar environment in which to reproduce

Screen Shot 2024-01-28 at 3 16 34 PM

sestinj avatar Jan 28 '24 23:01 sestinj

@sestinj this is all I see in idea.log from PyCharm related to the continue plugin.

Installing the continue plugin.

2024-01-29 17:23:22,754 [  22234]   INFO - #c.i.i.p.DynamicPlugins - Plugin com.github.continuedev.continueintellijextension loaded without restart in 273 ms

Disabling the continue plugin.

2024-01-29_172851

2024-01-29 17:26:32,855 [ 212335]   INFO - #c.i.i.p.DisabledPluginsState - Plugins to disable: [com.github.continuedev.continueintellijextension]
2024-01-29 17:26:32,856 [ 212336]   INFO - #c.i.i.p.DynamicPlugins - Plugins to unload: [PluginDescriptor(name=Continue, id=com.github.continuedev.continueintellijextension, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\PyCharm2023.2\plugins\continue-intellij-extension, version=0.0.27, package=null, isBundled=false)]
2024-01-29 17:26:33,287 [ 212767]   INFO - #c.i.i.p.DynamicPlugins - Successfully unloaded plugin com.github.continuedev.continueintellijextension (classloader unload checked=false)

Enabling continue plugin.

2024-01-29_172913

2024-01-29 17:29:18,893 [ 378373]   INFO - #c.i.i.p.DisabledPluginsState - Plugins to enable: [com.github.continuedev.continueintellijextension]
2024-01-29 17:29:18,893 [ 378373]   INFO - #c.i.i.p.DynamicPlugins - Plugins to load: [PluginDescriptor(name=Continue, id=com.github.continuedev.continueintellijextension, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\PyCharm2023.2\plugins\continue-intellij-extension, version=0.0.27, package=null, isBundled=false)]
2024-01-29 17:29:19,100 [ 378580]   INFO - #c.i.i.p.DynamicPlugins - Plugin com.github.continuedev.continueintellijextension loaded without restart in 205 ms

Rybo-W avatar Jan 29 '24 23:01 Rybo-W

same here, and here is a error message i found in logs:

2024-02-02 12:39:53,086 [  12532] SEVERE - #c.i.i.p.PluginManager - JCEF is not supported in this env or failed to initialize
java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
	at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:122)
	at com.intellij.ui.jcef.JBCefBrowserBase.lambda$new$3(JBCefBrowserBase.java:157)
	at com.intellij.util.ObjectUtils.notNull(ObjectUtils.java:121)
	at com.intellij.ui.jcef.JBCefBrowserBase.<init>(JBCefBrowserBase.java:157)
	at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:190)
	at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:150)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$webView$2.invoke(ContinuePluginToolWindowFactory.kt:63)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$webView$2.invoke(ContinuePluginToolWindowFactory.kt:62)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow.getWebView(ContinuePluginToolWindowFactory.kt:62)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow.getContent(ContinuePluginToolWindowFactory.kt:213)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory.createToolWindowContent(ContinuePluginToolWindowFactory.kt:39)
	at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:594)
	at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:573)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.doShowWindow(ToolWindowManagerImpl.kt:1035)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl(ToolWindowManagerImpl.kt:969)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:672)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow$intellij_platform_ide_impl$default(ToolWindowManagerImpl.kt:641)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activated$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:2244)
	at com.intellij.openapi.wm.impl.SquareAnActionButton.setSelected(SquareStripeButton.kt:176)
	at com.intellij.ui.ToggleActionButton.actionPerformed(ToggleActionButton.java:42)
	at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:227)
	at com.intellij.openapi.actionSystem.impl.ActionButton.lambda$performAction$2(ActionButton.java:206)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:381)
	at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:206)
	at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:524)
	at java.desktop/java.awt.Component.processEvent(Component.java:6386)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:695)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:635)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:580)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:75)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:67)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:580)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:72)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:355)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:354)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:793)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:354)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:349)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1014)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1014)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:349)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:848)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:391)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2024-02-02 12:39:53,092 [  12538] SEVERE - #c.i.i.p.PluginManager - PhpStorm 2023.3.3  Build #PS-233.14015.96
2024-02-02 12:39:53,092 [  12538] SEVERE - #c.i.i.p.PluginManager - JDK: 21; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2024-02-02 12:39:53,092 [  12538] SEVERE - #c.i.i.p.PluginManager - OS: Linux
2024-02-02 12:39:53,092 [  12538] SEVERE - #c.i.i.p.PluginManager - Plugin to blame: Continue version: 0.0.27

EDIT: maybe this is relevant too: https://github.com/JetBrains/gradle-intellij-plugin/issues/1511

skydiablo avatar Feb 02 '24 12:02 skydiablo

@skydiablo the error you see here has been sometimes solved by changing the JDK used to load the IDE. More info here (what I said about telling the user immediately I think ended up not happening obviously)

sestinj avatar Feb 02 '24 17:02 sestinj

@sestinj thx, you did it! :+1:

skydiablo avatar Feb 05 '24 07:02 skydiablo

Changing the boot runtime did not solved my issues so I searched for more broad jcef / browser issues and found this and it solved it.

https://github.com/flutter/flutter-intellij/issues/7000#issuecomment-1952854934

First, update the runtime to one with JCEF following these steps:

1. Select **Help** > **Find Action** from the Android Studio menu.

2. Enter "**Choose Boot Java Runtime for the IDE**" and select it from the suggestion list.

3. Select the latest bundled runtime that comes with JCEF support

4. Click OK and restart the IDE

Then, if you're getting this error: GPU process restarts too many times and seems to be unstable. Try to restart IDE or disable GPU acceleration completely. follow these steps:

1. Select **Help** > **Find Action** from the Android Studio menu.

2. Look for **Registry...**

3. Find the `ide.browser.jcef.sandbox.enable` option in the list and disable it

4. Restart

If it does not work an another person found this:

For my case it was related with Markdown view. So what worked for me:

1. Choose Boot Java Runtime for the IDE (double shift to search)

2. Select the latest bundled runtime that comes with JCEF support, ok and restart

3. Again search for Registry and enable `jcef.browser` and disable `markdown view`

4. restart

vdubedout avatar Mar 08 '24 17:03 vdubedout

Still getting blank tab with the latest Continue version. I upgraded to 2024.1 PyCharm and now it works!

Rybo-W avatar Apr 13 '24 18:04 Rybo-W

I was hit by that bug on Intellij, I found that the 0.0.52 has this issue, while 0.0.50 works fine. Is there any culprit commit?

zoobab avatar Jul 01 '24 12:07 zoobab