GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
320 stars 59 forks source link

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

Closed andreas-timm closed 3 months ago

andreas-timm commented 8 months ago
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

ivanporty commented 8 months ago

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?

andreas-timm commented 8 months ago

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

ivanporty commented 8 months ago

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
andreas-timm commented 8 months ago
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.

ivanporty commented 8 months ago

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

patkoscsaba commented 7 months ago

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.

ivanporty commented 7 months ago

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

aav7fl commented 5 months ago

@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.

ivanporty commented 3 months ago

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.