Kotlin / Kotlin/kotlin-interactive-shell

Missing Autocompletion on enums

Open
#87 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
612
Forks
40
PR merge metrics
No merged PRs in 30d

Description

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

```kotlin
[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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report in the Kotlin interactive shell with the shown State enum and completion inputs State. and State.A. Trace the shell's completion entry point for qualified enum references; done when State. suggests the enum entries and State.A no longer includes unrelated symbols.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.