AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.08k stars 245 forks source link

Auto complete doesn't work inside java library module #1801

Open Abiddarris opened 1 month ago

Abiddarris commented 1 month ago

Issue Checklist

Additional terms

Issue explanation

When I try to type a class name (in this example, I want to type java.io.File), the autocomplete feature doesn't show the class that I want.

Screenshot_20240510-193657_AndroidIDE

Expected behavior

Autocomplete should work like this.

Screenshot_20240510-194346_AndroidIDE

Version name

Version : v2.7.1-beta (27102) CI Build : true Branch : main Commit : 55bb46b31 Variant : arm64-v8a (release) Build type : OFFICIAL F-Droid Build : false F-Droid Version : null F-Droid Version code : -1 SDK Version : 31 Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi] Manufacturer : samsung Device : SM-M127F

Download source

GitHub

Relevant log output

JavaCompletionProvider    I   Complete at Test.java(5,11)... 
JavaCompletionProvider    I   ...cached completions are empty 
StopWatch                 D   [TreeSitter] Parsing completed in 1ms 
StopWatch                 D   [Test.java] Prune method bodies completed in 16ms 
StopWatch                 D   [Test.java] Prune method bodies completed in 29ms 
StopWatch                 D   Parsed treees in 33ms 
StopWatch                 D   Processed trees in 0ms 
StopWatch                 D   Analyzed all trees in 19ms 
JavaCompletionProvider    I   ...compiled in 135ms 
..ScopeCompletionProvider I   ...found 0 scope members 
..mportCompletionProvider I   ...found 0 static imports 
..NamesCompletionProvider I   ...found 0 class names 
JavaCompletionProvider    I   Found 0 items in 147 ms 
Parser_Builder            D   Analyzing:  /storage/emulated/0/AndroidIDEProjects/Full Java Runner/lib/src/main/java/com/abiddarris/lib/Test.java 
StopWatch                 D   Parsed treees in 11ms 
StopWatch                 D   Processed trees in 0ms 
StopWatch                 D   Analyzed all trees in 308ms 
Parser_Builder            I   Analyze file completed. Found 3 diagnostic items