"Logging in Python" 使用 EduTools 插件:"Failed to launch checking"

"Logging in Python" with EduTools Plugin: "Failed to launch checking"

发生了什么事?

我正在尝试遵循 PyCharm 专业版中的 Logging in Python 教程。

我在本教程中使用 Virtualenv 环境和 Python 3.9.5。一切正常,但是当我在 Task Description 面板中按下“Check”按钮时,出现此错误:

Failed to launch checking. For more information, see the Troubleshooting guide.

但是当我切换到 运行 面板时,所有测试都通过了这些输出:

C:\Users\Dragon1573\Repos\EduTools\Logging_in_Python\.idea\VirtualEnvironment\Scripts\python.exe "C:\Users\Dragon1573\Repos\EduTools\Logging_in_Python\Basics\Log output\tests.py" "C:\Users\Dragon1573\Repos\EduTools\Logging_in_Python\Basics\Log output\log_output.py"
Testing started at 21:56 ...
#educational_plugin test_is_not_empty test OK
#educational_plugin test_answer_placeholders_text_deleted test OK
#educational_plugin test_file_importable test OK
#educational_plugin test_answer_placeholders test OK

Process is terminated,exit code is 0.

我访问了该指南,但它只拍摄了 Java & Kotlin & Scala。

环境版本?

错误日志?

以下内容由PyCharm自己记录在idea.log文件中。可能会有用。

2021-05-29 21:56:42,453 [15968661]  ERROR - intellij.openapi.progress.Task - Testing failed although no failed tests found 
java.lang.IllegalStateException: Testing failed although no failed tests found
    at com.jetbrains.edu.learning.checker.EduTaskCheckerBase.toCheckResult(EduTaskCheckerBase.kt:119)
    at com.jetbrains.edu.python.learning.checker.PyTaskChecker.areTestsFailedToRun(PyTaskChecker.kt:66)
    at com.jetbrains.edu.learning.checker.EduTaskCheckerBase.check(EduTaskCheckerBase.kt:98)
    at com.jetbrains.edu.python.learning.checker.PyTaskChecker.check(PyTaskChecker.kt:54)
    at com.jetbrains.edu.learning.actions.CheckAction$StudyCheckTask.localCheck(CheckAction.java:251)
    at com.jetbrains.edu.learning.actions.CheckAction$StudyCheckTask.run(CheckAction.java:228)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:998)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync(CoreProgressManager.java:497)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit(ProgressRunner.java:228)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess(CoreProgressManager.java:178)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit(ProgressRunner.java:228)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:834)
2021-05-29 21:56:42,454 [15968662]  ERROR - intellij.openapi.progress.Task - PyCharm 2021.1.1  Build #PY-211.7142.13 
2021-05-29 21:56:42,454 [15968662]  ERROR - intellij.openapi.progress.Task - JDK: 11.0.10; VM: Dynamic Code Evolution 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-05-29 21:56:42,454 [15968662]  ERROR - intellij.openapi.progress.Task - OS: Windows 10 
2021-05-29 21:56:42,455 [15968663]  ERROR - intellij.openapi.progress.Task - Plugin to blame: EduTools version: 2021.5-2021.1-713 
2021-05-29 21:56:42,455 [15968663]  ERROR - intellij.openapi.progress.Task - Last Action: ShowLog 

此问题与类似,但原因不同。

您的 PyCharm Professional 2021.1.1 是否启用了 Chinese ​(Simplified)​ Language Pack?如果是,请尝试禁用它并重新打开课程。

在 EduTools 插件中提到的语言包和 Python 课程之间存在 compatibility issue,开发人员目前正在调查它。

我建议将此问题添加到您的监视列表中,以 100% 确保您不会错过任何更新。