Extra brackets automatically added during AI autocompletion with Continue.dev extension
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- debian, java, typescript
Hướng nghiên cứu
Tái hiện vấn đề với Continue.dev bằng cấu hình Codestral trong Robertor.java, sau đó so sánh việc chèn phần hoàn thành mã với VS Code gốc hoặc GitHub Codespaces. Bắt đầu bằng cách lần theo điểm vào chèn văn bản của ghost-view được đề cập trong báo cáo; hoàn thành khi việc chấp nhận tính năng tự động hoàn thành không còn thêm một dấu ngoặc thừa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 79.4k
- Fork
- 6.9k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 39
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/code-server
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
coder/code-server#8017 · 2 bình luận ·
-
Bump proxy-addr to 2.0.8 Đang mởsecurity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
coder/code-server#8013 · 4 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
coder/code-server#7976 · 2 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
coder/code-server#7962 · 3 bình luận ·
-
bug needs-investigation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
coder/code-server#7955 · 1 bình luận ·
Tất cả issue của coder/code-server
Issue tương tự
-
[Bug]: Discord Activity titles with emoji are rejected as over 80 characters when they are not Đang mởclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
supermomonga/zcode-acp#24 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
growthbook/growthbook#7100 ·
-
triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100