Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 23 10:45
    binkley commented #239
  • Mar 23 10:44
    binkley commented #239
  • Mar 22 18:40
    martinbonnin commented #239
  • Mar 22 17:53
    binkley commented #239
  • Mar 19 15:57
    holgerbrandl closed #261
  • Mar 19 15:57
    holgerbrandl commented #261
  • Mar 19 15:56
    holgerbrandl commented #262
  • Mar 19 15:56

    holgerbrandl on master

    Add maven repo credentials buil… (compare)

  • Mar 19 15:56
    holgerbrandl closed #262
  • Mar 19 15:54
    holgerbrandl commented #261
  • Mar 19 15:54
    holgerbrandl labeled #261
  • Mar 18 12:19
    jiraguha edited #262
  • Mar 18 09:13
    jiraguha synchronize #262
  • Mar 18 09:09
    jiraguha synchronize #262
  • Mar 18 08:59
    jiraguha opened #262
  • Mar 18 08:37
    jiraguha opened #261
  • Mar 09 22:31
    holgerbrandl commented #238
  • Mar 07 22:49
    mirceanis commented #238
  • Mar 07 21:31
    JDFind commented #238
  • Mar 06 11:47
    mirceanis commented #238
Holger Brandl
@holgerbrandl
@CuriousNikhil They are working on an improvement api to support scripting in general, but afaik there are no immediate plans to build a kscript like solution. Kscript is not really about a repl. For an improved repl see sparkling from khud which works much better for me
Err sparklin.
Nikhil Chaudhari
@CuriousNikhil
Okay. Sure. How are you planning to enhance Kscript more? What is your prime focus to build Kscript for ?
Holger Brandl
@holgerbrandl
At the moment the development process is mainly request driven. The only major aspect from my end, would be an intellij plugin to run run kscriptlets directly with internal dependency resolution.
Moisés
@moisesvs
Hi everybody, How could I execute a command with kscript?
Moisés
@moisesvs
A command like as: echo $ANDROID_HOME
Holger Brandl
@holgerbrandl
You can use the jdk ProcessBuilder API:
  var pb = ProcessBuilder("/bin/bash", "-c", cmd) //.inheritIO();
        pb.directory(File("."));
        var p = pb.start();
Franco Meloni
@f-meloni
Hi @holgerbrandl,
Could you please release a new version of kscript with the gradle 5 fix in it?
Thank you very much :)
Holger Brandl
@holgerbrandl
It's on is way.
Holger Brandl
@holgerbrandl
Done. It's my first release done on windows, so fingers crossed that I did not mess it up entirely.
Franco Meloni
@f-meloni
Amazing! Thank you :)
Gianluca Zuddas
@gianluz

@holgerbrandl Hello!! we have a particular problem.. running the CI with the latest version 2.7.1 on kscript, with gradle 5 or 4.10 (doesn't really matters the gradle version) launching the command kscript --package OurKtsFile.kts while evaluating the dependencies we have this exception:

[kscript] Resolving dependencies...
[kscript]     Resolving com.danger:danger-kotlin-library:0.1.0...
Exception in thread "main" 
java.lang.NoClassDefFoundError: org/ietf/jgss/GSSException

this library is our library uploaded to mavenLocal. locally there is no problem, but on the CI doesn't work.. do you have any idea what the reason? maybe something wrong on our side?

Gianluca Zuddas
@gianluz
i forgot to say only on macOS
Holger Brandl
@holgerbrandl
No clue. But feel welcome to share a more reproducible example via a github ticket.
We dramatically changed depedency resolution in 2.7 to get rid of maven. Now we use aether for dependeny resolution. So it may well be that a few use-cases slipped through our resgression tests.
Philipp Hanslovsky
@hanslovsky
Just here to say that this is really cool stuff ;)
Holger Brandl
@holgerbrandl
Thanks @hanslovsky . Feel welcome if you experience any issues
Gianluca Zuddas
@gianluz
@holgerbrandl i'll try to investigate, thanks :)
Franco Meloni
@f-meloni
Schermata 2019-03-10 alle 15.58.45.png
Hi @holgerbrandl :), I was having a look at the problem @gianluz posted, and yes it related to Aether as you were suggesting.
I was then trying to understand what was happening on Aether, but i then saw that the project is been archived http://www.eclipse.org/aether/
:(
Holger Brandl
@holgerbrandl
I know that it is currently not under active development, but it has found its way in so many products, that someone/someorg will pick it up if there are major issues with it.
richard-gibson
@richard-gibson
Hi, just took a first look at kscript. It looks a great tool. I was wondering is it possible to run by using ‘java’ cmd with a kscript jar in the class path?
Holger Brandl
@holgerbrandl
Hello @richard-gibson It runs on the JVM because that's the target platform. However, it runs via kotlin. kscript is just a pre-processor for now, so in theory it could be run with java (and did so in the very early versions).
dilettanteCoder
@dilettanteCoder
Hi. Is it possible to use kscript on Windows 10?
Holger Brandl
@holgerbrandl
@dilettanteCoder Yep, but just in a bash environment (such as git-bash). Feel welcome to file a ticket if there are any issues.