Skip to content

Unable to compile and run Kotlin files #1366

@Nearoo

Description

@Nearoo

Hi! I'm trying to setup Kotlin for the Atom Editor, but I'm failing.

I installed the Kotlin compiler as described here: Unzip files somewhere, add bin folder to Path. I then tried to create the example that is described on that very same page - a simple "Hello World" script, but I'm unable to.

When I execute the script in Atom using Script (Ctrl + Shift + B), I get the following output:

error: source file or directory not found: [C:PathTo]
error: source file or directory not found: [MyFile]
error: source file or directory not found: [SplitAcross]
error: source file or directory not found: [MultipleLines]
error: source file or directory not found: [WithoutSlashOrSpace]

There are obviously some "missing somewhere, I don't know where to add them though.

So I tried entering the command on my own by changing the run options. Just the way it's described on the website: kotlinc hello.kt -include-runtime -d hello.jar which also returns an error:

error: invalid argument: -c
info: use -help for more information

Compilation and execution works fine in the command line itself. Thanks for your time.

  • OS: Windows 10
  • Atom Version: 1.18.0
  • Script Version: 3.15.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions