Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] 源代码无修改本地执行./plugin-script/package_plugin.sh报错 #1159

Open
jingqingyun opened this issue Aug 22, 2024 · 3 comments
Labels
status: feedback required feedback required type: question&discussion Further information is requested

Comments

@jingqingyun
Copy link

jingqingyun commented Aug 22, 2024

报错信息

Problems found loading plugins:
The Android Design Tools (id=com.android.tools.design, path=/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3/plugins/design-tools) plugin Plugin 'Android Design Tools' cannot be loaded because it depends on plugin 'Android' which failed to load
The Android (id=org.jetbrains.android, path=
/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3/plugins/android) plugin Requires plugin 'org.intellij.groovy' to be enabled
The Gradle-Maven (id=org.jetbrains.plugins.gradle.maven, path=/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3/plugins/gradle-java-maven) plugin Requires plugin 'org.intellij.groovy' to be enabled
java.lang.Throwable: Problems found loading plugins:
The Android Design Tools (id=com.android.tools.design, path=
/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3/plugins/design-tools) plugin Plugin 'Android Design Tools' cannot be loaded because it depends on plugin 'Android' which failed to load
The Android (id=org.jetbrains.android, path=/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3/plugins/android) plugin Requires plugin 'org.intellij.groovy' to be enabled
The Gradle-Maven (id=org.jetbrains.plugins.gradle.maven, path=
/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3/plugins/gradle-java-maven) plugin Requires plugin 'org.intellij.groovy' to be enabled
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
at com.intellij.ide.plugins.PluginManagerCore.preparePluginErrors(PluginManagerCore.java:469)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:841)
at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins(PluginManagerCore.java:1064)
at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:397)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

环境
JDK: 17.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
OS: Mac OS X 14.4
CPU: Apple M3 Pro
IDE: IntelliJ IDEA 2024.1.4 (Community Edition) Build #IC-241.18034.62, built on June 21, 2024

@jingqingyun jingqingyun added the type: question&discussion Further information is requested label Aug 22, 2024
@tangcent
Copy link
Owner

为什么你这里显示'Android Design Tools'加载失败, easy-yapi里并没有用到这个。我在想有没有可能你尝试编译其他插件,也用到了/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3, 可以尝试清理一下?

@tangcent tangcent added the status: feedback required feedback required label Aug 24, 2024
@jingqingyun
Copy link
Author

jingqingyun commented Aug 28, 2024

我把/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3里面android这几个plugin删除之后就没有这个错误了,但是出现了别的错误:

2024-08-28 16:29:57,522 [ 5381] SEVERE - #c.i.u.u.EDT - Assert: must be called on EDT
java.lang.Throwable: Assert: must be called on EDT
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
at com.intellij.util.ui.EDT.assertIsEdt(EDT.java:68)
at com.intellij.ui.tabs.impl.JBTabsImpl.getTabs(JBTabsImpl.java:2015)
at com.intellij.ui.tabs.impl.JBTabsImpl.applyDecoration(JBTabsImpl.java:3436)
at com.intellij.ui.tabs.impl.JBTabsImpl.setUiDecorator(JBTabsImpl.java:3407)
at com.intellij.ui.tabs.impl.JBTabsImpl.(JBTabsImpl.java:265)
at com.intellij.ui.tabs.impl.JBEditorTabs.(JBEditorTabs.java:30)
at com.intellij.ui.tabs.JBTabsFactory.createEditorTabs(JBTabsFactory.kt:21)
at com.intellij.ui.JBTabsPaneImpl.(JBTabsPaneImpl.java:26)
at com.intellij.ui.TabbedPaneWrapper$JBTabsFactory.createTabbedPane(TabbedPaneWrapper.java:496)
at com.intellij.ui.TabbedPaneWrapper.createTabbedPane(TabbedPaneWrapper.java:130)
at com.intellij.ui.TabbedPaneWrapper.init(TabbedPaneWrapper.java:60)
at com.intellij.ui.TabbedPaneWrapper.(TabbedPaneWrapper.java:54)
at com.intellij.ui.TabbedPaneWrapper.(TabbedPaneWrapper.java:39)
at com.intellij.application.options.TabbedLanguageCodeStylePanel.ensureTabs(TabbedLanguageCodeStylePanel.java:151)
at com.intellij.application.options.TabbedLanguageCodeStylePanel.getPreviewText(TabbedLanguageCodeStylePanel.java:265)
at com.intellij.application.options.CodeStyleAbstractPanel.createEditor(CodeStyleAbstractPanel.java:144)
at com.intellij.application.options.CodeStyleAbstractPanel.(CodeStyleAbstractPanel.java:105)
at com.intellij.application.options.TabbedLanguageCodeStylePanel.(TabbedLanguageCodeStylePanel.java:67)
at com.intellij.application.options.JavaCodeStyleMainPanel.(JavaCodeStyleMainPanel.java:12)
at com.intellij.ide.JavaLanguageCodeStyleSettingsProvider$1.createPanel(JavaLanguageCodeStyleSettingsProvider.java:37)
at com.intellij.application.options.CodeStyleAbstractConfigurable.createComponent(CodeStyleAbstractConfigurable.java:38)
at com.intellij.application.options.codeStyle.NewCodeStyleSettingsPanel.(NewCodeStyleSettingsPanel.java:32)
at com.intellij.ConfigurableFactory$createCodeStyleConfigurable$codeStyleConfigurableWrapper$1.createPanel(ConfigurableFactory.kt:32)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.ensurePanel(CodeStyleMainPanel.java:251)
at com.intellij.application.options.codeStyle.CodeStyleMainPanel.getOptionIndexer(CodeStyleMainPanel.java:291)
at com.intellij.application.options.CodeStyleConfigurableWrapper.getOptionIndexer(CodeStyleConfigurableWrapper.java:151)
at com.intellij.application.options.CodeStyleConfigurableWrapper.processListOptions(CodeStyleConfigurableWrapper.java:138)
at com.intellij.ide.ui.search.TraverseUIStarter.processOptionsContainingConfigurable(TraverseUIStarter.java:247)
at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:144)
at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:90)
at com.intellij.idea.ApplicationLoader.initApplicationImpl$lambda$4(ApplicationLoader.kt:196)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

@tangcent
Copy link
Owner

如果网络没问题的话,就把/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.3/4e0a4eba55b0959c8406c9be8c38a4937fc99bd1/ideaIC-2023.1.3整个删掉,重新下载试试吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback required feedback required type: question&discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants