Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 18 07:02
    ligee commented #239
  • Feb 17 11:47
    holgerbrandl commented #238
  • Feb 17 11:44
    holgerbrandl commented #239
  • Feb 16 17:54
    CLOVIS-AI commented #239
  • Feb 16 17:53
    CLOVIS-AI commented #239
  • Feb 11 18:24
    andrealexandre commented #238
  • Feb 03 21:57
    holgerbrandl commented #163
  • Feb 03 21:55
    holgerbrandl labeled #239
  • Feb 03 21:54
    holgerbrandl labeled #239
  • Feb 03 21:54
    holgerbrandl commented #239
  • Jan 30 18:36
    Danilo-Araujo-Silva closed #256
  • Jan 30 18:36
    Danilo-Araujo-Silva commented #256
  • Jan 29 08:25
    holgerbrandl commented #239
  • Jan 29 08:23
    holgerbrandl commented #233
  • Jan 29 08:22
    holgerbrandl commented #233
  • Jan 29 08:13
    holgerbrandl commented #239
  • Jan 29 08:03
    holgerbrandl commented #256
  • Jan 29 07:02
    holgerbrandl commented #238
  • Jan 27 12:32
    jakubgwozdz commented #233
  • Jan 26 02:15
    Danilo-Araujo-Silva edited #256
Holger Brandl
@holgerbrandl
Hi there
Ilan Pillemer
@ilanpillemer
Hi
Ilan Pillemer
@ilanpillemer
@holgerbrandl so how should kscript deal with package declarations?
Holger Brandl
@holgerbrandl
Actually is a bit messy conceptually.
:-)
But just when using annotations for script-configuration, which should become the default somewhen.
Holger Brandl
@holgerbrandl
see holgerbrandl/kscript#80
However, apart from that, scripts can have package declarations when using kscript. At least from version v2.3+ onwards.
Nikhil Chaudhari
@CuriousNikhil
Hi Holgar, Will jetbrains include this type of scripting support to the actual kotlin production upcoming releases?
This kscript library is brilliant idea because we all like scripting and kotlin's current REPL is not that good.
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.