AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Auto complete doesn't work inside java library module

Open Abiddarris opened this issue 1 year ago • 0 comments

Issue Checklist

  • [X] I confirm that this issue is not a duplicate and hasn't been reported before.
  • [X] I agree to follow the project's code of conduct.
  • [X] I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • [X] I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • [X] I agree to provide all requested details promptly for a comprehensive bug report.

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

Abiddarris avatar May 10 '24 11:05 Abiddarris