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.

No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE)

See original GitHub issue

Describe the bug All lines in build.gradle.kts have this error:

No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE)

Extension version 0.2.11

Additional context gradle 0.6.1 kotlin jvm plugin 1.3.61 Used through Remote SSH on a remote Linux server gradle run from the command line on the server runs the app fine

Let me know what additional info I should provide to help troubleshooting.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:18

github_iconTop GitHub Comments

3reactions
eivacommented, Oct 15, 2020

Anybody found solution?

1reaction
tekumaracommented, Mar 18, 2022

This can happen when your project’s classpath doesn’t contain the kotlin-script-runtime jar.

In my case, my project’s pom.xml was incorrect and it didn’t resolve and so the jar was missing from the dependency tree.

Once I fixed pom.xml it became visible in the Maven window:

Screen Shot 2022-03-18 at 3 46 09 pm

I then went to Command Palette - Kotlin: Restart the Language Server to resolve the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No script runtime was found in the classpath: class 'kotlin ...
templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE) # ...
Read more >
Unable to run Kotlin scratch file - intellij idea - Stack Overflow
no script runtime was found in the classpath: class kotline.script.templat.standard.scriptTemplatewithArgs not fpund. please add kotling.script, ...
Read more >
Build Project fails on gradle buildSrc script plugin, no runtime ...
templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies. IntelliJ IDEA 2020.3 (Ultimate Edition)
Read more >
Possible kts bug - Support - Kotlin Discussions
Error:(3, 1) Kotlin: Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath ...
Read more >
No script runtime was found in the classpath - Bountysource
ScriptTemplateWithArgs ' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE)
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 Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found