Opened 7 years ago

Closed 7 years ago

#55806 closed defect (fixed)

kotlin's `-version` argument causes error.

Reported by: outis Owned by: breun (Nils Breunese)
Priority: Low Milestone:
Component: ports Version:
Keywords: Cc:
Port: kotlin

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Summary

kotlin @1.2.21_0 generates error when displaying version.

Description

Running kotlin with the -version argument:

$ kotlin -version

generates the message:

error: no build.txt was found at home=/opt/local/share/java/kotlin

While normally application run errors are the purview of the application developers, this appears to either be due to a missing file, which would be an installation issue.

System Info

  • OS X 10.12.6
  • Java 1.8.0_144

Change History (5)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to breun
Status: newassigned

comment:2 Changed 7 years ago by breun (Nils Breunese)

I'll look into it. Displaying the version does seem to work when invoking kotlinc:

$ kotlinc -version
info: kotlinc-jvm 1.2.21 (JRE 1.8.0_162-b12)

comment:3 Changed 7 years ago by breun (Nils Breunese)

The installation moves build.txt to ${prefix}/share/doc/kotlin/build.txt, but apparently the kotlin binary expects this file to be in ${prefix}/share/java/kotlin for displaying its version. I'll update the Portfile.

comment:4 Changed 7 years ago by breun (Nils Breunese)

I've created a pull request to fix this: https://github.com/macports/macports-ports/pull/1311

comment:5 Changed 7 years ago by breun (Nils Breunese)

Resolution: fixed
Status: assignedclosed

In 80119430a019f8c8a7788bfbac98e11b78928ac8/macports-ports:

kotlin: fix 'kotlin -version'

Leave build.txt in its default location, because 'kotlin -version'
expects it to be there.

Closes: #55806

Note: See TracTickets for help on using tickets.