Extra brackets automatically added during AI autocompletion with Continue.dev extension
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- debian, java, typescript
調査の方向性
Robertor.java の Codestral 設定を使って Continue.dev で問題を再現し、その後、ネイティブの VS Code または GitHub Codespaces とコード補完の挿入を比較します。まず、レポートで言及されている ghost-view のテキスト挿入エントリポイントを追跡します。オートコンプリートを受け入れても余分な括弧が追加されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Remote OS: Debain 12
code-server --version: 1.101.2
Steps to Reproduce
Step 1: Install Continue.dev
Install the Continue.dev extension in your IDE.
Step 2: Configure Continue with Codestral Free API
Configure Continue to use the Codestral free API key for autocomplete functionality.
Example Configuration
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: Codestral
provider: mistral
model: codestral-latest
apiKey: XXXXXXXXXXXXXXXXXXXXXXXXXX
roles:
- autocomplete
- chat
- edit
- apply
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
Step 3: Enable Auto-complete
Enable the auto-complete feature in Continue.dev settings.
Step 4: Create Test File
Create a new file named Robertor.java and add the following comment:
// a java swing programm that takes an input X number and display a circle with the radius of X
Step 5: Test Autocomplete
- Move to the next line by pressing Enter
- Accept suggestions using the Tab key
Issue: Extra Bracket Appears
An extra bracket appears during autocomplete, as demonstrated in the capture video.
https://github.com/user-attachments/assets/2f9fb6a3-a250-493b-a956-b6383cf01217
Expected
No extra bracket like in openvscode-server or codespaces :
https://github.com/user-attachments/assets/8e67a3b5-118f-4f26-81d8-d0e11c4f486b
Actual
I dont know but code completion appearing in continue console doesnt'have bracket .
That means that the issue is during insertion in the ghost view text , something is auto adding brackets.
Logs
Screenshot/Video
On code-server , extra bracket :
https://github.com/user-attachments/assets/2f9fb6a3-a250-493b-a956-b6383cf01217
Working example on codespace :
https://github.com/user-attachments/assets/aadf4d89-d307-4e96-b304-ed4461a8c5d2
Does this bug reproduce in native VS Code?
No, this works as expected in native VS Code
Does this bug reproduce in GitHub Codespaces?
No, this works as expected in GitHub Codespaces
Are you accessing code-server over a secure context?
- I am using a secure context.
Notes
No response
- 主要言語
- TypeScript
- スター
- 79.4k
- フォーク
- 6.9k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 39
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/code-server のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
coder/code-server#8017 · コメント 2 件 ·
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
coder/code-server#8013 · コメント 4 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
coder/code-server#7976 · コメント 2 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
coder/code-server#7962 · コメント 3 件 ·
-
bug needs-investigation
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
coder/code-server#7955 · コメント 1 件 ·
coder/code-server の issue をすべて見る
似ている issue
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
supermomonga/zcode-acp#24 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
growthbook/growthbook#7100 ·
-
triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100