Status Update
Comments
er...@google.com <er...@google.com>
aw...@gmail.com <aw...@gmail.com> #3
Note that this issue is super simple to recreate with a live template that comes with Android Studio. Simple try to use the "soutm" live template inside any Java method. It should print the current class and method name to System.out. However, it will not resolve the class name.
sp...@google.com <sp...@google.com> #4
The problem is indeed reproducible in Arctic Fox, Bumblebee and Chipmunk, but not in ToT Studio. It looks like something is broken in the build process.
es...@google.com <es...@google.com> #5
When you say ToT, is that an IDE build or bazel build //tools/adt/idea/studio:android-studio
locally?
sp...@google.com <sp...@google.com> #6
IDE build and run.
aa...@google.com <aa...@google.com> #7
Hmm, maybe not a build issue after all. I was able to repro on TOT until I saw this comment so I synced my repo adn now it doesn't repro
sp...@google.com <sp...@google.com> #8
Still doesn't work in Chipmunk Canary 6 that was built on December 3, 2021. This is another indication that something may be broken in the build process.
sp...@google.com <sp...@google.com>
ra...@google.com <ra...@google.com> #9
Filed
ra...@google.com <ra...@google.com> #10
Fixed (with a workaround) for Bumblebee and Chipmunk.
aw...@gmail.com <aw...@gmail.com> #11
sp...@google.com <sp...@google.com> #12
Android Studio Bumblebee is the next release after Arctic Fox. It is currently available as a release candidate (
aw...@gmail.com <aw...@gmail.com> #13
gm...@gmail.com <gm...@gmail.com> #14
This bug still existed in Bumblebee RC 1, but is fixed in final release, thanks!
Description
To recreate simple try to use the "soutm" live template in any java method. It should print the current class and method name to System.out. For example, take the following method:
public void myMethod(int myInt) {
System.out.println("this is myMethod");
}
Then attempt to use the "soutm" live template within this method to to print the class and method.
I get the following:
System.out.println(".myMethod");
Notice that the live template resolved the method name but did not resolve the class name.
Build: AI-203.7717.56.2031.7678000, 202108262153,
AI-203.7717.56.2031.7678000, JRE 11.0.10+0-b96-7249189x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 2400.0x1350.0, 2400.0x1350.0
AS: Arctic Fox | 2020.3.1 Patch 2; Kotlin plugin: 203-1.5.31-release-550-AS7717.8; Android Gradle Plugin: (plugin information not found); Gradle: 6.7.1; Gradle JDK: version 11.0.10; 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)
IMPORTANT: Please read