Skip to content

Missing first line in generated code using VSCode and ollama #6936

@tz1112

Description

@tz1112

Before submitting your bug report

Relevant environment info

- OS: Ubuntu 24.04.1
- Continue version: 1.0.19 / 1.1.71
- IDE version: 1.102.3
- Model: qwen2.5-coder, tinyllama
- config:
  
name: Local Assistant
version: 1.0.0
schema: v1

models:
  - name: Qwen2.5 Coder
    provider: ollama
    model: qwen2.5-coder:7b
    apiBase: http://192.168.178.71:11434
    default: true
  - name: qwenlocalhost
    provider: ollama
    model: qwen2.5-coder:1.5b
    apiBase: http://localhost:11434
    default: true
  - name: llamalocalhost
    provider: ollama
    model: tinyllama:1.1b
    apiBase: http://localhost:11434
    default: true

Description

If i use ctrl+i to generate code, the suggested code is missing the first line ~95% of the time. The issue persists across different models, the current stable release as well as the current pre-release version. The continue console in vscode shows the correct response, with the first line as expected.

Example:
Prompt: "Generate a for loop from 0 to 100"
Output in Editor:
Image
Output of continue console:
Image

To reproduce

No response

Log output


Metadata

Metadata

Assignees

Labels

area:inline-editRelates to the auto refactor featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions