question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kscript doesn't work if DependsOn is not on a single line

See original GitHub issue

The following example - autoformatted by intellij does not work using kscript because the DependsOn block is not parsed correctly. Tested on latest commit c2d1e4707e3a2ced4418facfe4331a77dbe19e53

#!/usr/bin/env kscript
@file:DependsOn(
  "com.beust:jcommander:1.71",
  "org.apache.commons:commons-exec:1.3",
  "com.android.tools:sdk-common:26.3.0-beta02"
)
@file:MavenRepository("google", "https://dl.google.com/dl/android/maven2")


import com.android.ide.common.vectordrawable.Svg2Vector
import com.beust.jcommander.JCommander
import com.beust.jcommander.Parameter
import org.apache.commons.exec.CommandLine
import org.apache.commons.exec.DefaultExecutor
import java.io.File
import java.io.IOException

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

1reaction
holgerbrandlcommented, Feb 24, 2021

Cool, just let me know once the PR is ready

1reaction
thecodencommented, Feb 21, 2021

I cloned our fork of the project and added a test with a multiline version of the dependency annotation, but the test succeeds somehow, so I’m looking into the differences between that and running it via an actual script.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support local jar references in @file:DependsOn #302 - GitHub
I'm struggling to understand how I'm supposed to get access to my local libraries in kscript. I have simple file : #! /usr/bin/env...
Read more >
azure devops - Conditional dependson for multiple stage YAML
I have a YAML pipeline which contains some template files. Within my pipeline, there are 4 stages that run ...
Read more >
kscript - Bountysource
The following example - autoformatted by intellij does not work using kscript because the DependsOn block is not parsed correctly.
Read more >
kscript - JetBrains
A separate gradle/maven file even more. kotlinc means recompile, so little scriptlets run slow. How to keep track of required JVM/runtime options? More...
Read more >
Unable to define "dependsOn" with stage template
/Path/To/Pipeline.yaml (Line: 17, Col: 3): Unexpected value 'dependsOn' ... Sorry the insert code function seems not working correctly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found