JetBrains / JetBrains/gradle-python-envs

Ambiguious call when no directory set

Open
#32 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Groovy
Stars
54
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Given a basic `build.gradle.kts` (using the kotlin-dsl):

```
plugins {
base
idea
id("com.jetbrains.python.envs") version "0.0.30"
}

envs {
python("python35_64", "3.7.2", "64", listOf())
}
```

Running `./gradlew tasks --stacktrace` gives the following error:
```
* What went wrong:
Ambiguous method overloading for method java.io.File#.
Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
[class java.lang.String, class java.lang.String]
[class java.io.File, class java.lang.String]

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#.
Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
[class java.lang.String, class java.lang.String]
[class java.io.File, class java.lang.String]
at com.jetbrains.python.envs.Python.(PythonEnvsExtension.groovy:231)
at com.jetbrains.python.envs.Python.(PythonEnvsExtension.groovy)
at com.jetbrains.python.envs.PythonEnvsExtension.python(PythonEnvsExtension.groovy:41)
at Build_gradle$2.execute(build.gradle.kts:40)
at Build_gradle$2.execute(build.gradle.kts:3)
```

What I noticed is that when I change the `envs` block to include a `bootstrapDirectory`, I am able to successfully run `./gradlew tasks`, so it seems like this error has something to do with the null value being passed as the bootstrap dir?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.