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
19.25k stars 1.66k forks source link

Can not apply, insert code at cursor or "copy" from ChatWindow in IntelliJ #2952

Open florian-hansen-mw opened 1 day ago

florian-hansen-mw commented 1 day ago

Before submitting your bug report

Relevant environment info

- OS: MacOS
- Continue version: 0.0.81
- IDE version: 2024.3 Ultimate
- Model: GPT-4o
- config.json:
%

Description

When I have successfully prompted the model in the chat window in IntelliJ, I can not insert the code at cursor. I receive this error

I get a balloon error: Error handling message of type insertAtCursor: java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String

hitting "apply" yields

Error handling message of type applyToFile: java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String

hitting "copy" does not copy the code

To reproduce

  1. Prompt the LLM in the Chat Window
  2. Hit "Insert at Cursor" in the code suggestion

Log output

Error handling message of type applyToFile: java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String
Patrick-Erichsen commented 1 day ago

@florian-hansen-mw we're recommending folks downgrade to 0.0.75 at the moment. Please see this main issue for details: https://github.com/continuedev/continue/issues/2956