r/AndroidStudio • • 19d ago

Android studio rabbit 2 patch classic code completion not working

/r/androiddev/comments/1xvl5vj/android_studio_rabbit_2_patch_classic_code/
2 Upvotes

11 comments sorted by

View all comments

1

u/DickBrainTime 18d ago edited 5d ago

I haven't reproduced Rabbit 2 Patch 1 on Windows, so I can't confirm whether this is a regression, but your description is specifically the gray, Tab-accepted Gemini inline code completion, not ordinary Ctrl+Space completion.

Google's current docs say to choose the traditional AI code completion engine (not just turn off Next Edit Prediction) in File > Settings > Tools > AI > Editor. NEP and classic both use Tab, so they don't run simultaneously. Then check the separate Gemini status-bar menu still has AI code completion enabled, that you're signed in and have granted project context sharing. Traditional suggestions are expected primarily at the end of a line or on a blank line—not every cursor position. Reference: https://developer.android.com/studio/gemini/code-completion and https://developer.android.com/studio/gemini/next-edit-prediction

For the bug report you already filed, a helpful A/B would be the same small Kotlin file at end-of-line in (a) a fresh project and (b) your existing project, with the same account/model and the exact Rabbit 2 Patch version. Note whether normal Ctrl+Space completion still works, whether AI is enabled/context allowed, and whether NEP/classic selection actually changed. If it fails in both projects, add those conditions and a redacted log/screenshot to the issue; that distinguishes an engine/settings regression from indexing or project context. Does the Gemini status menu show inline completion enabled after you switch back to classic?

1

u/Coltanium131 17d ago edited 17d ago

I have toggled off the NEP. No classic inline completion. Also, there is no dedicated toggle to turn on classic. Either it's a bug and missing, or I thought I read somewhere that toggling off NEP is supposed to bring back classic AI code completion. Or where is the dedicated toggle?

I have signed out and back in. Normal suggestions work, crtl space.

I wonder if it's not recognizing my Gemini pro subscription? Once you enable the NEP checkbox toggle, another toggle is nested under it for off cursor predictions or something. But it says it requires a Google AI studio API key or another model, but the drop-down list is empty. Like maybe it's bugged out? That could be a root cause?

Before this update I was using normal AI ghost text completions all the time just fine.

The bottom right Gemini status bar icon only has info about NEP when it's toggled on..it goes away when it's toggled off. No icon there anymore.

I'm almost certain context sharing is on since it worked before and normal AI agent I'm the right side bar works fine. But where do I double check the context sharing toggle? Like the permissions for AI are granted if that's what you mean

Also, for NEP, when it's enabled, there is another checkbox below about off cursor predictions or something, but it has a warning that says you can only enable it if you have other models or a Google AI studio API key. I have Gemini pro, but that doesn't count to use the off cursor option does it? So I only would get standard NEP if I even wanted to toggle it on?

1

u/DickBrainTime 4d ago edited 4d ago

Ctrl+Space working doesn't mean Gemini's inline completion is working. In Settings > Tools > AI > Editor, look for classic/traditional code completion. Just disabling NEP may not switch it back. Here's Google's completion guide.

If that option is missing, share your exact Rabbit 2 patch and a screenshot of the settings page (hide account info). A Google AI Pro subscription isn't an AI Studio API key, so I wouldn't buy a key just to debug this.

1

u/Coltanium131 3d ago

Hey there, yeah there is no toggle for classic ai auto complete. The docs say just turning off NEP turns back on the AI auto complete from what I read (or how I interpreted it). Or is there actually a checkbox for classic mode? Do you have a screenshot or anything? Maybe that is missing for me? I only have an NEP checkbox. (I'm on windows)

For the API key part of my question it's regarding the second nested check box option of the NEP. There is a drop-down that is empty they I believe is for off cursor edits that can only be enabled with API key or some other model? Not sure exactly what it means.

Yeah in the bug I filed I share my log file.

In the bug they replied back about NEP is the way forward. I posted the article about them saying how to re enable classic AI auto complete but no reply yet..maybe they just broke it or something?

Bug tracker: https://issuetracker.google.com/issues/585623225

Article about choosing the auto complete type: https://developer.android.com/studio/gemini/next-edit-prediction#choose-completion-engine

1

u/DickBrainTime 2d ago

You're right; I was wrong to imply there's a separate Classic checkbox. I checked your issue: Google's Nov 26 reply says classic completion is being replaced by NEP, while its docs still say you can switch back. Your Rabbit 1 test and logs are already there, so that contradiction needs an official answer. The extra model picker is separate; I wouldn't buy an API key to chase classic completion.

1

u/Coltanium131 1d ago

Thank you for confirming! There do seem to be contradictions. Hopefully they clarify some things. But at this point the bug tracker issue does not seem to be getting much action anymore...