Fixed
Status Update
Comments
de...@web.de <de...@web.de> #2
We don't support cross-process invalidations yet.
ja...@google.com <ja...@google.com>
ba...@google.com <ba...@google.com>
vs...@google.com <vs...@google.com> #3
At least , add a "refresh all observables" function to alpha4 ? i am trying to implement it by myself with your InvalidationTracker class
an...@google.com <an...@google.com> #4
Okey, I made it and created a method to invalidate all observables below;
private void refreshAllLiveData() {
AppDataBase YOUR_DATABASE_WHICH_YOU_BUILD = .....
SupportSQLiteDatabase writableDatabase = YOUR_DATABASE_WHICH_YOU_BUILD.getOpenHelper().getWritableDatabase();
//get the database count;
Cursor cursor = writableDatabase.query("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name != 'android_metadata' AND name != 'room_master_table';");
int tableCount = 0;
while(cursor.moveToNext()) {
tableCount = cursor.getInt(0);
}
for (int i = 0; i < tableCount; i++) {
//update version table with the incremented count because room modification log stores tables with ids instead of names
writableDatabase.execSQL("INSERT OR REPLACE INTO room_table_modification_log VALUES(null, "+(i)+")");
}
YOUR_DATABASE_WHICH_YOU_BUILD.getInvalidationTracker().refreshVersionsAsync();
}
-----
This is a workaroud for refreshing all live datas, I still prefer to use a proper API you implemented.
Thanx
private void refreshAllLiveData() {
AppDataBase YOUR_DATABASE_WHICH_YOU_BUILD = .....
SupportSQLiteDatabase writableDatabase = YOUR_DATABASE_WHICH_YOU_BUILD.getOpenHelper().getWritableDatabase();
//get the database count;
Cursor cursor = writableDatabase.query("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name != 'android_metadata' AND name != 'room_master_table';");
int tableCount = 0;
while(cursor.moveToNext()) {
tableCount = cursor.getInt(0);
}
for (int i = 0; i < tableCount; i++) {
//update version table with the incremented count because room modification log stores tables with ids instead of names
writableDatabase.execSQL("INSERT OR REPLACE INTO room_table_modification_log VALUES(null, "+(i)+")");
}
YOUR_DATABASE_WHICH_YOU_BUILD.getInvalidationTracker().refreshVersionsAsync();
}
-----
This is a workaroud for refreshing all live datas, I still prefer to use a proper API you implemented.
Thanx
Description
1. Describe the bug or issue that you're seeing.
In an Android Studio project with native C++ code, geminis code completion is inactive: "Completion inactive: file type not supported"
2. Attach log files from Android Studio
2A. In the IDE, select the Help..Collect Logs and Diagnostic Data menu option.
2024-07-23 08:50:02,668 [ 134] INFO - #c.i.i.p.PluginManager - Loaded bundled plugins: IDEA CORE (241.18034.62), [..] Gemini (241.18034.62.2412.12048879)
3. If you know what they are, write the steps to reproduce:
3A. Create an AS project with native c++ support
3B. Open a .cpp or .h file
3C. Click the gemini code completion star icon at the bottom bar
Workaround: extend the .cpp or .h file by .kt. So example.h -> example.h.kt. The code completion seems to work flawlessly with this workaround.
Build: AI-241.18034.62.2412.12048879, 202407040033
AS: Koala Feature Drop | 2024.1.2 Beta 1
AI-241.18034.62.2412.12048879, JRE 17.0.11+0-17.0.11b1207.24-11852314x64 JetBrains s.r.o., OS Linux(amd64) v5.14.0-1054-oem, screens 1920.0x1200.0, 1920.0x1200.0
Android Gradle Plugin: 8.6.0-beta01
Gradle: 8.7
Gradle JDK: JetBrains Runtime 17.0.11
NDK: from module: 26.1.10909125, from local.properties: (not specified), latest from SDK: 27.0.12077973
CMake: from local.properties: (not specified), latest from SDK: 3.22.1-g37088a8, from PATH: 3.22.1
Source: send_feedback_icon```