kotlin-interactive-shell icon indicating copy to clipboard operation
kotlin-interactive-shell copied to clipboard

Missing Autocompletion on enums

Open elect86 opened this issue 4 years ago • 2 comments

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

elect86 avatar Sep 16 '21 16:09 elect86

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

bshtv avatar Jan 18 '22 13:01 bshtv

thanks for the update

elect86 avatar Jan 19 '22 09:01 elect86