r/AndroidStudio • • 2d ago

Android studio rabbit 2 patch classic code completion not working

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

4 comments sorted by

1

u/DickBrainTime 1d 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 10h ago edited 10h 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/LAMEASSNIBBQ 23h ago

same for me

1

u/Coltanium131 10h ago

So you tried turning off NEP and classic gray ghost text AI auto complete isn't working either?

I felt it was a lot better than NEP too so it's a big loss. NEP doesn't trigger very much. I've only even had it really if you delete something you wrote then maybe it will suggest the same thing again...not very useful..