I have been using Gemini in Android Studio. For aw...
# android-studio
b
I have been using Gemini in Android Studio. For awhile, it was able to access the files in my project. I could ask it things like, "Convert some_old_view_layout.xml to compose", and it would do it no problem. But something has changed. Now whenever I ask it to do anything with any files in my project, it tells me that it can't read the files in the project and that I need to past the code into the chat window. Has anyone else run into this? I have checked the settings to make sure that I have enabled context awareness on all projects. And my project does not have an .aiexclude file.
👀 1
c
The context awareness setting is currently used to mainly power code completion and making sending information to the chat more convenient instead of manually copy-pasting, e.g. from Logcat or Build errors.
Full project awareness is not yet stable and we’re still working on it. We hope to have updates to this in Ladybug Feature Drop, so implicit context like open files, dependencies in project, etc, can be passed with your prompt. But also we are working on being able to explicitly pass files as attached context.
And for how
.aiexclude
works now, it signals to us to disable AI code completion for files/directories you specify, as well as make it inconvenient to send code to the chat. In the future, when full project awareness is available, it’ll use this file as well to signal what NOT to index and pass as context.
b
Thanks @Chris Sinco [G]. Just seemed weird that it used to do it, and now doesn't
d
@Chris Sinco [G] , to @Bradleycorn point, has that ability to access project files changed since the initial release of Gemini in AS Jellyfish, back then i was able to ask it questions related to project files (ie: transpose xml to compose and scan files for memory leaks) and it was able to provide meaningful responses without me having to paste in the code directly into the Gemini tool
c
It hasn’t changed and it hasn’t really been there. We’ve seen some folks internally report the perception that it was able to know about the project, but it actually doesn’t. We think the model might be hallucinating its context, because in our implementation in Jellyfish there is no lookup of files in the project based on the user prompt. We are only passing to the model our initial instructions (“You are a professional Android developer, […]“), and whatever you put in the input field and what is generated in the conversation history.
We are working on providing more context to the model behind the scenes from your project, with each sent prompt, but that is work we only started exploring in Koala+. And even in Koala, it shouldn’t be turned on because it’s not fully baked.
👍 1
193 Views