Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kscript is not running correctly when using cygwin #39

Closed
holgerbrandl opened this issue Sep 5, 2017 · 1 comment
Closed

kscript is not running correctly when using cygwin #39

holgerbrandl opened this issue Sep 5, 2017 · 1 comment
Assignees
Labels

Comments

@holgerbrandl
Copy link
Collaborator

holgerbrandl commented Sep 5, 2017

The initial failure looked like:

$ kscript 
which: no javac in (./C:\jdk8u131-64/bin) 
[ERROR] Could not locate 'C:\jdk8u131-64/bin/javac' 

There is, of course, a javac in that directory.

After reading the source, I tried setting JAVAC_CMD, but that produced the same error.
So I unset JAVA_HOME & re-ran and then got

$ kscript 
kscript - Enhanced scripting support for Kotlin on *nix-based systems. 

Usage     : kscript <scriptfile, script-url, - for stdin, some kotlin code> [<script_args>]* 
Usage     : kscript --clear-cache     # wipe cached script jars and urls 
Usage     : kscript -i                # interactive shell with DEPS as declared in script 

Copyright : 2017 Holger Brandl 
License   : MIT 
Version   : v1.6.0 
Website   : https://github.com/holgerbrandl/kscript 
md5sum: /dev/fd/63: No such file or directory 
error: source file or directory not found: /cygdrive/c/Users/ngalarneau/.kscript/scriptarg_cache_.kts 
[ERROR] compilation of '/cygdrive/c/Users/ngalarneau/.kscript/scriptarg_cache_.kts' failed 
@holgerbrandl holgerbrandl self-assigned this Sep 5, 2017
@holgerbrandl
Copy link
Collaborator Author

Fixed with v2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant