We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44efb34 commit 3fd6158Copy full SHA for 3fd6158
1 file changed
java/kotlin-extractor/kotlin_plugin_versions.py
@@ -31,7 +31,7 @@ def get_single_version(fakeVersionOutput = None):
31
kotlinc = shutil.which('kotlinc')
32
if kotlinc is None:
33
raise KotlincNotFoundException()
34
- versionOutput = subprocess.run(['kotlinc', '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stderr if fakeVersionOutput is None else fakeVersionOutput
+ versionOutput = subprocess.run([kotlinc, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stderr if fakeVersionOutput is None else fakeVersionOutput
35
m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+) .*', versionOutput)
36
if m is None:
37
raise Exception('Cannot detect version of kotlinc (got ' + str(versionOutput) + ')')
0 commit comments