Kotlin / kotlin-interactive-shell

Kotlin Language Interactive Shell
Apache License 2.0
587 stars 36 forks source link

Missing Autocompletion on enums #87

Open elect86 opened 2 years ago

elect86 commented 2 years ago

As titled

If I have

enum class State { ALLOC, .. }

After I type State. I don't get any (right) suggestions

If I type State.A I can see some enumerators plus a lot of other stuff

[4] import slurm.State.*
[5] sinfo {
...states( State.ALLOC
ALLOC                            AbstractList                     AbstractMutableMap               AnnotationRetention              Array                            AssertionError
ALLOCATED                        AbstractMap                      AbstractMutableSet               AnnotationTarget                 ArrayDeque                       AutoCloseable
AS_SAFE                          AbstractMethodError              AbstractSet                      Any                              ArrayIndexOutOfBoundsException   AutoCloseable { 
AbstractCollection               AbstractMutableCollection        AccessDeniedException            Appendable                       ArrayList
AbstractIterator                 AbstractMutableList              Annotation                       ArithmeticException              ArrayStoreException
bshtv commented 2 years ago

I've made some progress on this item however waiting for jline to publish this feature I really need https://github.com/jline/jline3/commit/bfcc415b5b2dd77e99d62eadf11b6df27ef14592

elect86 commented 2 years ago

thanks for the update