Status Update
Comments
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #2
ma...@marcardar.com <ma...@marcardar.com> #3
ma...@marcardar.com <ma...@marcardar.com> #4
Android Studio 3.6 RC 1
Build #AI-192.7142.36.36.6071332, built on December 13, 2019
Runtime version: 1.8.0_212-release-1586-b4-5784211 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.2
GC: ParNew, ConcurrentMarkSweep
Memory: 1237M
Cores: 16
Registry: ide.new.welcome.screen.force=true, ide.tooltip.initialDelay=600
Non-Bundled Plugins: IdeaVIM, org.jetbrains.kotlin, com.squareup.sqldelight
ma...@marcardar.com <ma...@marcardar.com> #5
Any additional info any of you have to help us repro this would be useful. Such as:
- Is this happening to Java as well as Kotlin tests?
- How did you start the test run exactly? Through clicking the run button at the top bar, or the run button in the gutter next to the test class/method name, or through context menu in the project view?
- Please attach idea.log of when this reproes for you.
Thanks!
ma...@marcardar.com <ma...@marcardar.com> #6
2) I changed the expected value for the first assert in testSubscribeNotCalledForNoop from 1 to 2
3) I reran the tests with control + r. Tests passed
4) I reran them again and they correctly failed (because I changed the assert)
I also ran YourKit. Out of the last 2 runs, the 2nd to last ran with out of date sources and incorrectly passed. The last run incorrectly failed.
vi...@google.com <vi...@google.com> #7
ma...@marcardar.com <ma...@marcardar.com> #8
da...@google.com <da...@google.com> #9
This seems to be an issue where the Gradle plugin does not see up to date sources, maybe due to VFS freshness. Jerome, anyone in Build team can help take a look?
da...@google.com <da...@google.com> #10
"> Task :mvrx:compileDebugUnitTestSources UP-TO-DATE"
This means that the file state did not change on disk (AGP&Gradle do not use Intellij VFS).
ma...@marcardar.com <ma...@marcardar.com> #11
Raluca, should we always invoke "myDocumentManager.saveAllDocuments()"?
da...@google.com <da...@google.com> #12
I think so, yes. It used to be the case, before Change I3b29b1a3bfc. And also, looking at IntelliJ's own handling of Gradle-based projects (ExternalSystemUtil), their incantation before calling Gradle is:
TransactionGuard.getInstance().assertWriteSafeContext(ModalityState.defaultModalityState());
ApplicationManager.getApplication().invokeAndWait(FileDocumentManager.getInstance()::saveAllDocuments);
da...@google.com <da...@google.com> #13
ma...@marcardar.com <ma...@marcardar.com> #14
ma...@marcardar.com <ma...@marcardar.com> #15
da...@google.com <da...@google.com> #16
ma...@marcardar.com <ma...@marcardar.com> #17
da...@google.com <da...@google.com> #18
ma...@marcardar.com <ma...@marcardar.com> #19
da...@google.com <da...@google.com> #20
ro...@gmail.com <ro...@gmail.com> #21
#20, can you provide more details with steps and a reproducable test project maybe ?
da...@google.com <da...@google.com> #22
ku...@gmail.com <ku...@gmail.com> #23
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 19, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2560M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (212-1.7.10-release-333-AS5457.46)
da...@google.com <da...@google.com> #24
I am with you.
Build: AI-212.5712.43.2112.8609683, 202205181650,
AI-212.5712.43.2112.8609683, JRE 11.0.12+0-b1504.28-7817840x64 JetBrains s.r.o., OS Linux(amd64) v5.15.0-46-generic, screens 2560.0x1440.0
AS: Chipmunk | 2021.2.1 Patch 1; Kotlin plugin: 212-1.7.10-release-333-AS5457.46; Android Gradle Plugin: 7.2.1; Gradle: 7.3.3; Gradle JDK: version 11.0.12; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)Source: send_feedback_icon
Description
Version used: 1.1.0
All modules has:
buildFeatures {
dataBinding = true
viewBinding = true
}
How to reproduce: Create 2 modules >>> create layout1 in module1 and create layout2 in module2 >>> Create Fragment1 in module1 with view which will be including layout1, layout2 >>> try to get binding >>> layout1 will work becouse it is in the same module as Fragment1, but layout2 will not work becouse of wrong binding generation
My example:
Authentication module has dependency to common module.
base_button.xml is in common module.
login_input_component.xml is in Authentication module so there is no problem.
But this error occures on loginButton binding.
It tries to find BaseButtonBinding in authentication module even if base_button.xml is in another module.
Cannot access class 'com.application.authentication.databinding.BaseButtonBinding'. Check your module classpath for missing or conflicting dependencies