Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andreas-timm opened this issue Mar 11, 2024 · 8 comments
Labels

Comments

@andreas-timm
Copy link

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)
@ivanporty
Copy link
Contributor

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
Copy link
Author

andreas-timm commented Mar 13, 2024

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

@ivanporty
Copy link
Contributor

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
Copy link
Author

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 ivanporty changed the title Duet AI unexpected forced line break during autocompletion. Duet AI unexpected forced line break during autocompletion (when using soft-wrap). Mar 14, 2024
@ivanporty
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

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

@aav7fl
Copy link

aav7fl commented May 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants