Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Improve error reporting #132

Closed
bamboo opened this issue Sep 9, 2016 · 2 comments
Closed

Improve error reporting #132

bamboo opened this issue Sep 9, 2016 · 2 comments
Labels
Milestone

Comments

@bamboo
Copy link
Member

bamboo commented Sep 9, 2016

No description provided.

@bamboo bamboo added the epic label Sep 9, 2016
@tadaskay
Copy link

I guess this is related: when you apply from a non-existing file, it gives you a NPE rather than a proper message:
applyFrom("asdf.gradle.kts") ->

Caused by: kotlin.KotlinNullPointerException
        at org.gradle.script.lang.kotlin.provider.KotlinBuildScriptCompiler.<init>(KotlinBuildScriptCompiler.kt:49)
        at org.gradle.script.lang.kotlin.provider.KotlinScriptPluginFactory.compilerFor(KotlinScriptPluginFactory.kt:55)
        at org.gradle.script.lang.kotlin.provider.KotlinScriptPluginFactory.compile(KotlinScriptPluginFactory.kt:45)
        at org.gradle.script.lang.kotlin.provider.KotlinScriptPluginFactory.create(KotlinScriptPluginFactory.kt:38)
        at org.gradle.configuration.ScriptPluginFactorySelector.create(ScriptPluginFactorySelector.java:55)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyScript(DefaultObjectConfigurationAction.java:100)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$000(DefaultObjectConfigurationAction.java:36)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$1.run(DefaultObjectConfigurationAction.java:62)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:136)
        at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:38)
        at Build_gradle.<init>(build.gradle.kts:17)

@bamboo
Copy link
Member Author

bamboo commented Nov 17, 2016

It is. Thanks for the report @tadaskay!

@bamboo bamboo added this to the 1.0.0 milestone Feb 23, 2017
@bamboo bamboo closed this as completed Mar 6, 2017
@eskatos eskatos modified the milestones: 1.0.0, 0.8.0 Oct 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants