我正在使用IntelliJ(v2018.3)创建Dart项目。当我在“新建项目”对话框中选择一个Dart项目时,IntelliJ似乎卡住了“加载Dart项目模板”。
我检查了idea.log文件。显然,Dart插件中的某些内容导致以下失败:
2018-11-25 23:27:54,132 [ 41721] ERROR - plication.impl.ApplicationImpl - com/intellij/javascript/debugger/execution/JavascriptDebugConfigurationType
java.lang.NoClassDefFoundError: com/intellij/javascript/debugger/execution/JavascriptDebugConfigurationType
at com.jetbrains.lang.dart.projectWizard.DartGeneratorPeer.lambda$startLoadingTemplates$2(DartGeneratorPeer.java:108)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.intellij.javascript.debugger.execution.JavascriptDebugConfigurationType PluginClassLoader[Dart, 183.4284.122] com.intellij.ide.plugins.cl.PluginClassLoader@2308abea
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:49)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
2018-11-25 23:27:54,136 [ 41725] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2018.3 Build #IC-183.4284.148
2018-11-25 23:27:54,136 [ 41725] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2018-11-25 23:27:54,136 [ 41725] ERROR - plication.impl.ApplicationImpl - OS: Windows 10
2018-11-25 23:27:54,142 [ 41731] ERROR - plication.impl.ApplicationImpl - Plugin to blame: Dart version: 183.4284.122
2018-11-25 23:27:54,142 [ 41731] ERROR - plication.impl.ApplicationImpl - Last Action: WelcomeScreen.CreateNewProject
很明显,插件中出现故障。安装中缺少某些东西吗?
有人知道我如何能够解决此问题吗?
答案 0 :(得分:1)
该问题记录为https://youtrack.jetbrains.com/issue/WEB-35995。
作为解决方法,单击“下一步”创建一个空的Dart项目,然后在Terminal中手动使用stagehand工具生成示例项目内容(https://pub.dartlang.org/packages/stagehand)。