Extra brackets automatically added during AI autocompletion with Continue.dev extension

Aperta
#7,397 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
debian, java, typescript

Direzione di ricerca

Riproduci il problema con Continue.dev usando la configurazione Codestral in Robertor.java, quindi confronta l’inserimento del completamento del codice con VS Code nativo o GitHub Codespaces. Inizia tracciando il punto di ingresso per l’inserimento del testo di ghost-view menzionato nel report; il lavoro è completato quando l’accettazione dell’autocompletamento non aggiunge più una parentesi aggiuntiva.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug triage
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

  1. Move to the next line by pressing Enter
  2. 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

Lingua principale
TypeScript
Stelle
79.4k
Fork
6.9k
Merge medio
2g 13h
PR unite (30g)
39

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/code-server

Tutte le issue di coder/code-server

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.