8000 kscript --interactive does not resolve the variables defined inside .kts file · Issue #401 · kscripting/kscript · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
kscript --interactive does not resolve the variables defined inside .kts file #401
Open
@namiq-tahmazli-epam

Description

@namiq-tahmazli-epam

I am trying to repl connect to .kts file which is defined such

#!/usr/bin/env kscript

val myName = "Namig"

and it can not resolve it.
Here is the logs:

kscript --interactive test.kts
[kscript] Creating REPL
Welcome to Kotlin version 1.8.21 (JRE 11.0.12+0)
Type :help for help, :quit for quit
println(myName)
error: unresolved reference: myName
println(myName)

I am thankful in advance for your efforts and creating such a beautiful project which makes
my life easier when writing script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels 35B6

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0