From 2e5cc865abf0b9ad88375772c5140e37db3cc494 Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Mon, 22 Mar 2021 00:59:19 +0900 Subject: [PATCH 1/2] Remove checking poetry executable --- src/com/koxudaxi/poetry/PyAddNewPoetryPanel.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/com/koxudaxi/poetry/PyAddNewPoetryPanel.kt b/src/com/koxudaxi/poetry/PyAddNewPoetryPanel.kt index 9d7761f..8fe2039 100644 --- a/src/com/koxudaxi/poetry/PyAddNewPoetryPanel.kt +++ b/src/com/koxudaxi/poetry/PyAddNewPoetryPanel.kt @@ -168,16 +168,11 @@ class PyAddNewPoetryPanel(private val project: Project?, ?: return ValidationInfo("Poetry executable is not found") return when { !executable.exists() -> ValidationInfo(PyBundle.message("python.sdk.file.not.found", executable.absolutePath)) - !Files.isExecutable(executable.toPath()) || !executable.isFile || !testPoetryExecutable(executable) -> - ValidationInfo(PyBundle.message("python.sdk.cannot.execute", executable.absolutePath)) + !Files.isExecutable(executable.toPath()) || !executable.isFile -> ValidationInfo(PyBundle.message("python.sdk.cannot.execute", executable.absolutePath)) else -> null } } - private fun testPoetryExecutable(executable: File): Boolean = - syncRunCommand(executable.parent, executable.absolutePath, "--version", defaultResult = false) { true } - - /** * Checks if the poetry for the project hasn't been already added. */ From 3f73c60552bd398fc6c461456e17d8711bc972ee Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Wed, 24 Mar 2021 00:46:09 +0900 Subject: [PATCH 2/2] Update version --- resources/META-INF/plugin.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 93a921d..62109fa 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -1,9 +1,14 @@ com.koxudaxi.poetry Poetry - 1.0.7 + 1.0.8 Koudai Aono @koxudaxi version 1.0.8 +

Bug fixes

+
    +
  • Remove checking poetry executable [#201]
  • +

version 1.0.7

Bug fixes