Status Update
Comments
rk...@google.com <rk...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
al...@google.com <al...@google.com> #2
This is issue with SpellcheckingStrategy in IntelliJ Idea - it works like this for groovy and kts build files. Even current release has this issue. Reason is that declaration dependency is a literal - and all literals are checked the same way by default.
xo...@google.com <xo...@google.com>
xo...@google.com <xo...@google.com> #3
I've submitted changes to override the default spellchecking strategy for Kotlin Script build files. (I also took the opportunity to somewhat improve the spellchecking strategy for Groovy build files). It should no longer check for typos in string literals, except if it can statically determine that the string literal is intended for output (e.g. it's an argument to println
).
Sadly this has missed the cut-off for Koala.1 features, so it won't be available in that release; it will be in canaries of the following release, though again probably not the first one. However, as mitigation, if you sync the project after adding the dependency, the spell-check warning should go away, because the platform adds an additional effective dictionary including all the tokens present in library names -- so the typo warning is/should be transient.
Thank you for the report!
mi...@gmail.com <mi...@gmail.com> #4
an...@google.com <an...@google.com> #5
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala Feature Drop | 2024.1.2 Canary 2
- Android Gradle Plugin 8.6.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
When you try to use F2 to iterate through warnings in the build.gradle.kts file, it tries to correct "cardview" to "card-view" in the following dependency: implementation("androidx.cardview:cardview:1.0.0") Then, if you go through with the change, it won't compile.
2. Attach log files from Android Studio
N/A (minor self-explanatory bug, likely only requires an adjustment to the spellchecker)
3. If you know what they are, write the steps to reproduce:
3A. Add implementation("androidx.cardview:cardview:1.0.0") in the dependencies of the build.gradle.kts file.
3B. Press "F2" in order to iterate through the warnings on the page.
3C. Agree to have "cardview" corrected to "card-view".
3D. Attempt to build app.
3E. Errors appear.
Further Notes:
This is probably a very low priority bug, and likely only requires an exception to the spellchecker. Hope this helps! Peace and God bless! ✌️
In addition to logs, please attach a screenshot or recording that illustrates the problem.
For more information on how to get your bug routed quickly, see
Build: AI-223.8836.35.2231.11090377, 202311131528
AI-223.8836.35.2231.11090377, JRE 17.0.6+0-b2043.56-10027231x64 JetBrains s.r.o., OS Windows 10(amd64) v10.0 , screens 2400.0x1350.0
AS: Giraffe | 2022.3.1 Patch 4
Kotlin plugin: 223-1.9.0-release-358-AS8836.35.2231.11090377
Android Gradle Plugin: 8.1.4
Gradle: 8.0
Gradle JDK: JetBrains Runtime version 17.0.6
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```