continue icon indicating copy to clipboard operation
continue copied to clipboard

Completions in scratch file always suggest `import random`

Open hadley opened this issue 1 year ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS: mac 14.5
- Continue: 0.8.51
- IDE: Positron 2024.09.0 (Universal) build 27
- Model: codestral-latest

Description

In a scratch (i.e. freshly opened and never saved file), continue always suggests import random or import Javas.util.Scanner, regardless of the language of the file, and in places where the suggesting is clearly in appropriate

Screenshot 2024-09-13 at 10 24 43

To reproduce

  1. Open a new file
  2. Change the language to R
  3. Type 1 + 1 and press enter
  4. Type 2 + 2 and wait for autocomplete to trigger

Log output

I cleared the llm prompt/completion log before the reproducible example, and nothing was added to the log.

hadley avatar Sep 13 '24 15:09 hadley