GoogleCloudPlatform / cloud-code-intellij

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

Duet AI accepting the code completion is not working (JetBrains Rider) #3175

Closed arseniio-dev closed 3 weeks ago

arseniio-dev commented 6 months ago

rider-duet-ai-tab-issue

Expected Behavior

I Expect while I've received AI generated code completion I can accept it by "Tab" or e.g. "Enter"

Actual Behavior

"Tab" is not working, the same goes for "Enter" it just tabbing the code completion text like it was the previously written code

Additional Information

I've checked available options for "Google Cloud Plugin" in IDE editor keymap for me, there is option to assign shortcut to generate the code, but there is no options to assign any shortcus to accept it, previosly i had GitHub Copilot which allows me to assign key to accept code completion (default was "Tab" which I've used), for the issue submiting purposes GitHub Copilot was on first try disabled then unsinstalled completely, but the issue with DuetAI still persist

MrXLR8 commented 6 months ago

Same problem. Here. Work around is to use Shift+Enter to accept only one line. Waiting for a solution

ivanporty commented 6 months ago

We've found a conflicting Tab action in Rider and working on the fix. It should be available in the next release.

drakgoku commented 5 months ago

It happens the same to me.

Shift + Enter does not seem to be the best key combination to place line by line. Couldn't it be fixed so that with tab or enter it would place all the lines?

PabloVKF commented 5 months ago

Even Shift + Enter doesn't seem to be working correctly. Unlike the tab, it generates, but throws all the data to the next line, even when it is only filling part of it. image In the simple example shown in the image above, only the word statusCode is completed, the :": 200}" that was already written is moved to the next line when I try to use Shit + Enter to validate the AI's suggestion. This behavior doesn't seem correct to me, I expected the word to be completed without throwing all the dice on the line down

ivanporty commented 5 months ago

We are expecting fix to be available in the upcoming release due next week.

ivanporty commented 5 months ago

The tab issue should be fixed in the new release (24.1.4) - please let us know if you still experience issues.

ivanporty commented 3 weeks ago

No new comments, we consider this fixed.