Kotlin / Kotlin/kotlin-interactive-shell
compiler options support
- Dominant language
- Java
- Stars
- 612
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Apparently it's not yet supported specifying custom compiler options, like in normal scripts
`@file:CompilerOptions("-Xopt-in=kotlin.RequiresOptIn")`
Loading that or running `compilerOptions -Xopt-in=kotlin.RequiresOptIn` leads to error, such as
`ERROR Unresolved reference: CompilerOptions (Line_1.kts:4:7)`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with the `@file:CompilerOptions("-Xopt-in=kotlin.RequiresOptIn")` directive and with `compilerOptions -Xopt-in=kotlin.RequiresOptIn`. Trace how the interactive shell loads scripts and handles compiler options; done means both forms are accepted without the unresolved-reference error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100