easy-yapi icon indicating copy to clipboard operation
easy-yapi copied to clipboard

[Bug] PyCharm启动失败

Open gzy1144 opened this issue 1 year ago • 13 comments

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.lang.RuntimeException: Cannot invoke (class=aq, method=appFrameCreated, topic=AppLifecycleListener) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:676) at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:422) at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:401) at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1) at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:460) at jdk.proxy2/jdk.proxy2.$Proxy51.appFrameCreated(Unknown Source) at com.intellij.idea.IdeStarter.openProjectIfNeeded$suspendImpl(IdeStarter.kt:89) at com.intellij.idea.IdeStarter.openProjectIfNeeded(IdeStarter.kt) at com.intellij.idea.IdeStarter$start$2.invokeSuspend(IdeStarter.kt:69) at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt) at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264) at com.intellij.idea.IdeStarter.start$suspendImpl(IdeStarter.kt:66) at com.intellij.idea.IdeStarter.start(IdeStarter.kt) at com.intellij.ide.bootstrap.ApplicationLoader.initApplicationImpl(ApplicationLoader.kt:90) at com.intellij.ide.bootstrap.ApplicationLoader$initApplicationImpl$1.invokeSuspend(ApplicationLoader.kt) 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:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Caused by: java.lang.NoClassDefFoundError: com/intellij/ide/util/PropertiesComponentImpl at fuck_you.ap.a(Unknown Source) at fuck_you.aq.appFrameCreated(Unknown Source) at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:699) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:663) ... 22 more Caused by: java.lang.ClassNotFoundException: com.intellij.ide.util.PropertiesComponentImpl at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:224) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 26 more


Your JRE: 17.0.9+7-b1000.46 amd64 (JetBrains s.r.o.) D:\jet-idea-pycharm\PyCharm Professional\jbr

gzy1144 avatar Dec 02 '23 03:12 gzy1144

Hi @gzy1144, easy-yapi does not support PyCharm, nor does it support parsing Python code to generate API documentation.

tangcent avatar Dec 02 '23 11:12 tangcent

Hi @gzy1144, easy-yapi does not support PyCharm, nor does it support parsing Python code to generate API documentation.

那我应该怎么做呢

gzy1144 avatar Dec 02 '23 13:12 gzy1144

Hi @gzy1144, easy-yapi does not support PyCharm, nor does it support parsing Python code to generate API documentation.

So what should I do?

gzy1144 avatar Dec 02 '23 13:12 gzy1144

If PyCharm cannot start due to the installation of easy-yapi, you can go to PyCharm's installation directory, find the plugins folder, and delete the easy-yapi plugin from there. After doing so, you should be able to start PyCharm.

tangcent avatar Dec 03 '23 00:12 tangcent

If PyCharm cannot start due to the installation of easy-yapi, you can go to PyCharm's installation directory, find the plugins folder, and delete the easy-yapi plugin from there. After doing so, you should be able to start PyCharm.

QQ图片20231203090539 There doesn't seem to be that plugin in there

gzy1144 avatar Dec 03 '23 01:12 gzy1144

Interesting. It appears that PyCharm uses a separate directory for user-installed plugins. On my device, these plugins are located at '~/Library/Application Support/JetBrains/PyCharm2023.2/plugins'. In Windows, the corresponding path may be 'C:\Users<YourUsername>\AppData\Roaming\JetBrains\PyCharm\plugins'.

tangcent avatar Dec 03 '23 01:12 tangcent

Interesting. It appears that PyCharm uses a separate directory for user-installed plugins. On my device, these plugins are located at '~/Library/Application Support/JetBrains/PyCharm2023.2/plugins'. In Windows, the corresponding path may be 'C:\Users<YourUsername>\AppData\Roaming\JetBrains\PyCharm\plugins'.

image There is still none

gzy1144 avatar Dec 03 '23 02:12 gzy1144

I tried installing the plugin on Windows, and I find it here: image

tangcent avatar Dec 03 '23 02:12 tangcent

I tried installing the plugin on Windows, and I find it here: image image Is it possible that there are other reasons why pycharm cannot be started?

gzy1144 avatar Dec 03 '23 02:12 gzy1144

I reported this error when the tool was launched on the right

gzy1144 avatar Dec 03 '23 02:12 gzy1144

  1. I'm unsure if easy-yapi is the only plugin you've installed recently. If you've added others, they could be causing compatibility issues, so consider disabling them to see if it solves the issue.
  2. Issues can sometimes arise from configuration files or caches. Consider resetting your PyCharm settings or clearing caches.

Alternatively, installing a different version of PyCharm could help determine if the issue lies within PyCharm itself. If no other solutions work, reinstalling PyCharm could resolve the issue, although this may result in the loss of some configurations.

tangcent avatar Dec 03 '23 03:12 tangcent

  1. I'm unsure if easy-yapi is the only plugin you've installed recently. If you've added others, they could be causing compatibility issues, so consider disabling them to see if it solves the issue.
  2. Issues can sometimes arise from configuration files or caches. Consider resetting your PyCharm settings or clearing caches.

Alternatively, installing a different version of PyCharm could help determine if the issue lies within PyCharm itself. If no other solutions work, reinstalling PyCharm could resolve the issue, although this may result in the loss of some configurations.

image I deleted the old version of the original, and then downloaded the latest version and it was ready to start

gzy1144 avatar Dec 03 '23 05:12 gzy1144

Thank you for your reply

gzy1144 avatar Dec 03 '23 05:12 gzy1144