continue icon indicating copy to clipboard operation
continue copied to clipboard

Intellij plugin has several issues, does not work

Open max-wittig opened this issue 1 year ago • 10 comments

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 
- IDE version: PyCharm 2025.1.3 (Community Edition)
- Model: qwen3-30b-a3b
- config:
  
%YAML 1.1
---
name: api.custom.com
version: 1.0.0
schema: v1

model_defaults: &model_defaults
  provider: openai
  apiKey: token
  apiBase: https://custom.api.com/llm/v1

models:
  - name: qwen3-30b-a3b
    <<: *model_defaults
    model: qwen3-30b-a3b
    roles:
      - chat
      - edit
      - apply
      - autocomplete
  - name: devstral-small-2505
    <<: *model_defaults
    model: devstral-small-2505
    roles:
      - chat
      - edit
      - apply
      - autocomplete
  - name: bge-m3
    <<: *model_defaults
    model: bge-m3
    roles:
      - embed
      - rerank

context:
  - provider: file
  - provider: code
  - provider: codebase
    params:
      nFinal: 10
  - provider: docs
  - provider: diff
  - provider: folder
  - provider: terminal

Description

The same config works fine with vscode but causes these issues in PyCharm:

{"object":"error","message":"As of transformers v4.44, default chat template is no longer allowed, so you must provide a chat template if the tokenizer does not define one. None","type":"BadRequestError","param":null,"code":400}

Code: undefined
Error number: undefined
Syscall: undefined
Type: undefined

Error: HTTP 400 Bad Request from https://custom.api.com/llm/v1/chat/completions

To reproduce

No response

Log output


max-wittig avatar Jul 11 '25 17:07 max-wittig

Hey @max-wittig! Thanks fror the detailed report. We are looking into this and will get back to you

TyDunn avatar Jul 11 '25 18:07 TyDunn

I think this discrepancy between PyCharm and VSCode may be due to different versions of the core bundled with the plugin. New releases of the VSCode plugin are published immediately, whereas JetBrains plugins have at least a few days of delay (that's how the JetBrains Marketplace works when it comes to the stable channel 😅).

I'm saying this because the details points to incorrect usage between the core and the completion API, not between the JetBrains plugin and the core. The current version of the plugin on the marketplace has a old version of the core (latest stable release is from Jul 11), so I've strong suspicion that a update will fix this. We will publish a new version soon.

exigow avatar Jul 21 '25 14:07 exigow

Hey @max-wittig, v1.0.30 is now available. Could you please update the plugin and check if the completions issue still persists?

exigow avatar Jul 23 '25 10:07 exigow

Hey @max-wittig 👋, if you manage to update and verify those completions, please reopen.

exigow avatar Aug 04 '25 15:08 exigow

With the new version, chat stops working:

Image

max-wittig avatar Aug 06 '25 10:08 max-wittig

Hey @max-wittig,

I have two questions that will help me narrow down the set of potential issues:

  • Do you have a proxy enabled in the IDE (Appearance & Behavior -> System Settings -> HTTP Proxy)? This might be unrelated, but I'd like to rule out that your issue isn't caused by one of the bugs that was recently fixed.
  • Could you share the Continue logs? You can find them in dir like ~/.continue/logs/core.log. If you can't locate them, you can use action in the IDE called Open Logs that you can run by pressing Ctrl + Shift + A and typing its name (docs). These logs should contain more details about this exception/url/cause.

exigow avatar Aug 25 '25 11:08 exigow

I have the same issue as @max-wittig. I have the proxy set to auto-detect, but no system proxy configured. Disabling the proxy seems to have no effect on the issue. The issue presents in two different ways:

  1. In the chat window as described above. Here the logs simply say:
[2025-09-15T08:07:24] Error: Connection error. 
[2025-09-15T08:07:24] Error running handler for "llm/streamChat":  Error: Connection error.
  1. When using the edit feature, a popup says "request to https://custom.api.com/llm/completions failed, reason: unable to get a local issuer certificate". The logs say:
[2025-09-15T08:40:34] request to https://custom.api.com/llm/completions failed, reason: unable to get local issuer certificate

Code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
Error number: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
Syscall: undefined
Type: system

Ry: request to https://custom.api.com/llm/completions failed, reason: unable to get local issuer certificate
    at ClientRequest.<anonymous> (C:\snapshot\continue\binary\out\index.js:8054:17230)
    at ClientRequest.emit (node:events:549:35)
    at TLSSocket.socketErrorListener (node:_http_client:465:9)
    at TLSSocket.emit (node:events:537:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[2025-09-15T08:40:34] Ry: request to https://custom.api.com/llm/completions failed, reason: unable to get local issuer certificate 
[2025-09-15T08:40:34] Error running handler for "streamDiffLines":  Ry: request to https://custom.api.com/llm/completions failed, reason: unable to get local issuer certificate

kleifgch avatar Sep 15 '25 08:09 kleifgch

The IntelliJ IDE issue is further investigated here (with proposed solutions):

https://github.com/continuedev/continue/issues/8085

faetschi avatar Dec 01 '25 07:12 faetschi

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 02 '26 02:03 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Mar 12 '26 02:03 github-actions[bot]