Skip to content

MainCommandLineProcessor::pluginOptions accessed before thread local parameters have been set #301

Closed
@ileasile

Description

@ileasile

When I use a scripting compiler in my project, it possibly does not set thread local parameters (maybe because it's not configured via Gradle). In that case I'm getting this exception. Stacktrace is the following (caught inside debug session):
https://gist.github.com/ileasile/2035f523bdc14248e5ce84e7a40747fa

I suggest a simple solution here: just don't throw an exception, but return an empty collection, maybe with logging a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions