continue icon indicating copy to clipboard operation
continue copied to clipboard

The connection to LM Studio doesn’t work in PhpStorm.

Open romanpan2 opened this issue 5 months ago • 4 comments

Before submitting your bug report

Relevant environment info

- OS: macOs
- Continue version: v1.0.33
- IDE version: PhpStorm 2025.2
- Model: Any local LM Studio model
- config:
  
name: AI Assistant
version: v1
models:
  - name: nomic-embed-text:v1.5
    type: llm
    provider: lmstudio
    model: text-embedding-nomic-embed-text-v1.5@q5_k_m
    apiBase: http://127.0.0.1:1234/v1
    roles:
      - embed

  - name: codellama-13b-instruct
    type: llm
    provider: lmstudio
    model: codellama-13b-instruct
    apiBase: http://127.0.0.1:1234/v1
    maxTokens: 16000
    roles:
      - chat
      - apply
      - rerank
      - edit
    requestOptions:
      temperature: 0.2

  - name: qwen/qwen2.5-coder-14b
    type: llm
    provider: lmstudio
    model: qwen/qwen2.5-coder-14b
    apiBase: "http://192.168.50.202:1234/v1"
    maxTokens: 32000
    roles:
      - chat
      - apply
      - rerank
      - edit
    requestOptions:
      temperature: 0.2
  
  OR link to assistant in Continue hub:

Description

The issue only occurs in PhpStorm after updating the Continue plugin. In VS Code everything works fine.

To reproduce

No response

Log output

[2025-08-11T11:56:15] Invalid URL

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

TypeError [ERR_INVALID_URL]: Invalid URL
    at new NodeError (node:internal/errors:388:5)
    at URL.onParseError (node:internal/url:564:9)
    at new URL (node:internal/url:644:5)
    at new JUe (/snapshot/continue/binary/out/index.js:27:2511)
    at jY (/snapshot/continue/binary/out/index.js:6787:2391)
    at async r (/snapshot/continue/binary/out/index.js:8411:48)
    at async Qnt (/snapshot/continue/binary/out/index.js:8155:2078)
    at async AIr._legacystreamComplete (/snapshot/continue/binary/out/index.js:8425:10039)
    at async AIr._streamChat (/snapshot/continue/binary/out/index.js:8425:10460)
    at async AIr._streamComplete (/snapshot/continue/binary/out/index.js:8425:9342) 
[2025-08-11T11:56:15] TypeError [ERR_INVALID_URL]: Invalid URL 
[2025-08-11T11:56:15] Error generating autocompletion:  TypeError [ERR_INVALID_URL]: Invalid URL

romanpan2 avatar Aug 11 '25 12:08 romanpan2

My previous configuration doesn't work when I updated to the latest version. PyCharm raises connection error.

OmidSa75 avatar Aug 11 '25 20:08 OmidSa75

relates to https://github.com/continuedev/continue/issues/7092

vldF avatar Aug 13 '25 10:08 vldF

@romanpan2 Check your system settings: Apple Menu ->Privacy & Security -> Local Network. Make sure JetBrains products are allowed. I had that same issue for another integration.

jefhar avatar Aug 17 '25 00:08 jefhar

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 Nov 15 '25 02:11 github-actions[bot]