continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
18.9k stars 1.6k forks source link

JetBrain Rider Continue plugin does not work #768

Open akaspeh1 opened 9 months ago

akaspeh1 commented 9 months ago

Before submitting your bug report

Relevant environment info

- OS: Win 11
- Continue: com.github.continuedev.continueintellijextension (0.0.27)
JetBrains Rider 2023.3.2
Build #RD-233.13135.100, built on December 19, 2023
Runtime version: 17.0.9+7-b1087.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
.NET Core v7.0.10 x64 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 10000M
Cores: 32
Registry:
  editor.config.csharp.support=true
Non-Bundled Plugins:
  com.github.continuedev.continueintellijextension (0.0.27)
  zielu.gittoolbox (500.1.4+222)

Description

Continue tab is displaying just raw HTML. Does not work. No logs to be found. Even when triggered trough Actions this opens

image

To reproduce

No response

Log output

No response

sestinj commented 9 months ago

@akaspeh1 Thanks for the report, and sorry you're seeing such an egregious bug. It's something I'd seen before, but was solved for the previous person with this line of code. I've unfortunately not had any luck reproducing now, even trying on Windows 11 with Rider. I'm wondering whether this same error happens in any other JetBrains IDEs, or if it is specific to Rider?

jsco2t commented 9 months ago

Having the exact same issue. Installed in Both intellij and goland. Both of which are running 2023.3.3. My OS is macOS 14.1.2

jsco2t commented 9 months ago

I'm happy to try to provide more info if needed. I was really looking forward to trying this out.

jost commented 8 months ago

Same problem here, seen on current versions (2023.3.3, 2023.3.4) of webstorm and rubymine on macOS. Also the settings panel is blank. No errors in idea.log. I've tried the tools with jetbrains' "New UI" as well as "Classic UI", same result for both.

JustusSchwan commented 8 months ago

Same problem with CLion and PyCharm on Debian 12.

Edit: I had an old version of continue installed, the most recent 0.0.33 does not throw exceptions. The error still persists, though.

sestinj commented 5 months ago

Thanks everyone for adding details here. Going to take another crack at this. I was excited to see that everyone is on 2023.3.3, but today someone had the same issue with a 2024 version, and I tried 2023.3.3 myself without problem

Any additional information that seems relevant may be helpful. I'll share soon if I have any updates

akaspeh1 commented 1 month ago

Hi, @sestinj I looked into gathering more data for you. I upgraded to newer version Continue 0.0.69 but still doesnt work and shows only HTML source.

image Managed to get JCEF DevTools to look into the request and the MIME type that is returned. And it is text/javascript as Response header Content-Type.

When reloaded using the dev console as text/html document.open('text/html'); document.write(`<!doctype html> ..... ") document.close();

The tool page loads correctly. image

I hope this helps you with narrowing down the issue and releasing permanent fix. :)

jost commented 5 days ago

Thanks @akaspeh1, your instructions helped me work around the problem as well (WebStorm 2024.2.4, Continue 0.0.80).