PyCharm更新后打开报错Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

在我安装新的Pycharm之后,打不开了,系统报错如下:

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

java.lang.RuntimeException: Cannot invoke (class=ao, method=appFrameCreated, topic=AppLifecycleListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:657)
    at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:415)
    at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:394)
    at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:454)
    at jdk.proxy1/jdk.proxy1.$Proxy56.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:70)
    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:89)
    at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
    at com.intellij.idea.IdeStarter.start$suspendImpl(IdeStarter.kt:67)
    at com.intellij.idea.IdeStarter.start(IdeStarter.kt)
    at com.intellij.idea.ApplicationLoader.initApplicationImpl(ApplicationLoader.kt:191)
    at com.intellij.idea.ApplicationLoader.access$initApplicationImpl(ApplicationLoader.kt:1)
    at com.intellij.idea.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: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)
Caused by: java.lang.NoClassDefFoundError: com/intellij/ide/util/PropertiesComponentImpl
    at fuck_you.an.a(Unknown Source)
    at fuck_you.ao.appFrameCreated(Unknown Source)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:680)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:644)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: com.intellij.ide.util.PropertiesComponentImpl PluginClassLoader(plugin=PluginDescriptor(name=BetterIntelliJ, id=org.example.BetterIntelliJ, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/PyCharm2023.1/plugins/BetterIntelliJ, version=1.16, package=null, isBundled=false), packagePrefix=null, instanceId=85, state=active)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:150)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
    ... 27 more

-----
Your JRE: 17.0.6+10-b829.5 x86_64 (JetBrains s.r.o.)
/Applications/PyCharm.app/Contents/jbr/Contents/Home

可能是由于一个名为 “BetterIntelliJ” 的插件引起的。这个插件可能与当前使用的 PyCharm 版本不兼容。为了解决这个问题,尝试以下步骤:
1.打开 Finder,然后按下 Cmd + Shift + G。
2.在弹出的“前往文件夹”窗口中,输入 ~/Library/Application Support/JetBrains/PyCharm2023.1/plugins/,然后点击 “前往”。
3.在打开的文件夹中找到 “BetterIntelliJ” 文件夹,并将其移动到桌面或其他位置(以便在需要时恢复它)。
4.重启 PyCharm。
由于是使用Mac系统,所以路径指令按照Mac来进行
接下来便解决了这个问题~

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
根据您提供的引用内容,以下是使用PyCharm生成爬取https://www.ddyueshu.com/30441_30441034/的代码的步骤: 1. 首先,确保您已经安装了PyCharm并成功配置了PyQt5包的国内镜像源。您可以按照引用中提供的步骤添加国内镜像源。 2. 打开PyCharm并创建一个新的Python项目。 3. 在PyCharm的项目结构中,右键单击项目名称,选择"New" -> "Python File"来创建一个新的Python文件。 4. 在新创建的Python文件中,导入所需的库和模块。在这种情况下,您需要导入requests和BeautifulSoup库。 5. 使用requests库发送HTTP请求来获取网页的内容。您可以使用以下代码示例: ```python import requests url = 'https://www.ddyueshu.com/30441_30441034/' response = requests.get(url) html_content = response.text ``` 6. 使用BeautifulSoup库解析网页的内容。您可以使用以下代码示例: ```python from bs4 import BeautifulSoup soup = BeautifulSoup(html_content, 'html.parser') ``` 7. 使用BeautifulSoup库提取您需要的数据。根据您提供的网页链接,您可能需要查找特定的HTML元素或CSS选择器来定位您需要的数据。以下是一个示例代码,假设您要提取所有的标题: ```python titles = soup.find_all('h1') for title in titles: print(title.text) ``` 8. 运行代码并查看结果。您可以在PyCharm中点击运行按钮或使用快捷键来运行您的代码。 请注意,根据您提供的引用内容,我无法直接访问https://www.ddyueshu.com/30441_30441034/网页,因此无法提供完整的代码示例。您可以根据上述步骤和您的具体需求进行相应的修改和调整。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值