In line editor suggests code which exists on the next line

This is a screenshot of an in-line suggestion. The suggested code already exists on the next two lines.

This problem started when I used the new Dart formatter which introduces line breaks where they did not previously exist. I have experimented with the OpenAI tokenizer which produced different results when the code is formatted differently. You can see further details on this and a subsequent discussion with Claude on this github issue.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.