cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

Duet AI unexpected forced line break during autocompletion (when using soft-wrap).

Open andreas-timm opened this issue 1 year ago • 8 comments

Screenshot 2024-03-11 at 11 38 59

Expected Behavior

Display autocomplete without force line breaks.

Actual Behavior

Line breaks occur in unexpected places, often several at a time, and this behavior changes dynamically as you continue typing. This makes using the Duet AI autocompletion feature almost impossible.

Additional Information

  • IDE type: WebStorm
  • IDE version: 2023.3.4, Build #WS-233.14475.40, built on February 14, 2024
  • Cloud Code version: 24.2.2-api-version-223
  • Cloud SDK: not installed
  • Operating System: macOS Sonoma, Version 14.4 (23E214)

andreas-timm avatar Mar 11 '24 10:03 andreas-timm

Thanks for report @andreas-timm. We are looking into this. We saw other similar reports when there is an additional plugin(s) installed related to editing - do you have any editing plugins installed, such as Vim/Emacs?

ivanporty avatar Mar 13 '24 20:03 ivanporty

@ivanporty Thank you very much. I reproduced this issue with an empty JetBrains profile without any other plugins.

andreas-timm avatar Mar 13 '24 21:03 andreas-timm

I think you have "softwrap" enabled on this editor - I see the curved line icons at the end of each line and long lines are wrapped - what happens if you disable this?

Screenshot 2024-03-13 at 5 59 05 PM

ivanporty avatar Mar 13 '24 21:03 ivanporty

Screenshot 2024-03-13 at 23 21 10

Yes, without "Soft-Wrap" enabled, lines are not wrapped (and the autocomplete suggestion is visible only partially). This issue does not occur when "Soft-Wrap" is disabled.

andreas-timm avatar Mar 13 '24 22:03 andreas-timm

Thanks for confirming @andreas-timm. We are working on a better completion integration deeper into IDE editing, and hopefully this will help with the issue here soon. I will update on the progress

ivanporty avatar Mar 14 '24 15:03 ivanporty

I am so happy I found this. That wrapping was driving me crazy and actually making me disable the Duet AI. Many times the suggestions were quite good, but I effectively couldn't use them because of the apparent soft-wrapping (note: actual lines are not wrapped). Please address this issue, as from all the AI tools I tested so far, Duet (Gemini) seems to be the best for my needs.

patkoscsaba avatar Apr 02 '24 13:04 patkoscsaba

We have a path to fix this, and we will update here when it's released.

ivanporty avatar Apr 02 '24 20:04 ivanporty

@ivanporty Any news on when that might get released? The shifting of the page keeps forcing me to disable Gemini every time I want to write documentation in our apps. We rely on soft-wrap in our docs.

aav7fl avatar May 28 '24 15:05 aav7fl

We just released completely reworked Gemini Code Assist functionality in the Cloud Code. It has native IDE completion support, no conflicts with other editor functionality, and your issue should be fixed, starting with version 24.8.1.

ivanporty avatar Aug 16 '24 23:08 ivanporty