Describe the bug
Whenever I restart my PyCharm IDE, I encounter an error that states "java.lang.Throwable: LspServerManager doesn't know the server that it is asked to stop: RuffLspServerDescriptor@pythonProject(STOPPED;0)". Full stack trace of error has been provided below in additional context.
To Reproduce
Steps to reproduce the behavior:
Start PyCharm IDE.
Work normally then restart the PyCharm IDE.
On restart, the mentioned error shows up.
Expected behavior
The PyCharm IDE should restart without encountering any issues and show no errors on startup.
Screenshots
Environments (please complete the following information):
IDE: PyCharm 2023.3.4, Professional Edition
OS: macOS Sonoma (aarch64)
Ruff Version: 0.3.4
Plugin version: 0.0.30
Additional context
I activated two experimental options in ruff plugin config:
use ruff-lsp (experimental) for pycharm pro or IDEA Ultimate
use ruff format (experimental) for version 0.0.289 or later
Here's the full stack trace for the encountered error:
java.lang.Throwable: LspServerManager doesn't know the server that it is asked to stop: RuffLspServerDescriptor@pythonProject(STOPPED;0)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
at com.intellij.platform.lsp.impl.LspServerManagerImpl.a(LspServerManagerImpl.java:195)
at com.intellij.platform.lsp.impl.LspServerManagerImpl.stopServers(LspServerManagerImpl.java:188)
at com.intellij.platform.lsp.impl.LspServerManagerImpl.stopAndRestartIfNeeded(LspServerManagerImpl.java:206)
at com.koxudaxi.ruff.RuffPackageManagerListener.packagesRefreshed(RuffPackageManagerListener.kt:20)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:700)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:664)
at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:423)
at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:402)
at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:461)
at jdk.proxy9/jdk.proxy9.$Proxy181.packagesRefreshed(Unknown Source)
at com.jetbrains.python.packaging.PyPackageManagerImplBase.refreshAndGetPackages(PyPackageManagerImplBase.java:208)
at com.intellij.packageChecker.python.PyPIProjectDependenciesModel.getAllImported(PyPIProjectDependenciesModel.kt:86)
at com.intellij.packageChecker.python.PyPIProjectDependenciesModel.getAllModules(PyPIProjectDependenciesModel.kt:70)
at com.intellij.packageChecker.model.impl.ProjectDependenciesModelBase$init$1$1.emit(ProjectDependenciesModelBase.kt:88)
at com.intellij.packageChecker.model.impl.ProjectDependenciesModelBase$init$1$1.emit(ProjectDependenciesModelBase.kt:86)
at kotlinx.coroutines.flow.FlowKtChannelsKt.emitAllImpl$FlowKtChannelsKt(Channels.kt:37)
at kotlinx.coroutines.flow.FlowKtChannelsKt.access$emitAllImpl$FlowKtChannelsKt(Channels.kt:1)
at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
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)
Describe the bug Whenever I restart my PyCharm IDE, I encounter an error that states "java.lang.Throwable: LspServerManager doesn't know the server that it is asked to stop: RuffLspServerDescriptor@pythonProject(STOPPED;0)". Full stack trace of error has been provided below in additional context.
To Reproduce Steps to reproduce the behavior:
Expected behavior The PyCharm IDE should restart without encountering any issues and show no errors on startup.
Screenshots
Environments (please complete the following information):
Additional context I activated two experimental options in ruff plugin config:
Here's the full stack trace for the encountered error:
java.lang.Throwable: LspServerManager doesn't know the server that it is asked to stop: RuffLspServerDescriptor@pythonProject(STOPPED;0) at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376) at com.intellij.platform.lsp.impl.LspServerManagerImpl.a(LspServerManagerImpl.java:195) at com.intellij.platform.lsp.impl.LspServerManagerImpl.stopServers(LspServerManagerImpl.java:188) at com.intellij.platform.lsp.impl.LspServerManagerImpl.stopAndRestartIfNeeded(LspServerManagerImpl.java:206) at com.koxudaxi.ruff.RuffPackageManagerListener.packagesRefreshed(RuffPackageManagerListener.kt:20) at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:700) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:664) at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:423) at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:402) at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1) at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:461) at jdk.proxy9/jdk.proxy9.$Proxy181.packagesRefreshed(Unknown Source) at com.jetbrains.python.packaging.PyPackageManagerImplBase.refreshAndGetPackages(PyPackageManagerImplBase.java:208) at com.intellij.packageChecker.python.PyPIProjectDependenciesModel.getAllImported(PyPIProjectDependenciesModel.kt:86) at com.intellij.packageChecker.python.PyPIProjectDependenciesModel.getAllModules(PyPIProjectDependenciesModel.kt:70) at com.intellij.packageChecker.model.impl.ProjectDependenciesModelBase$init$1$1.emit(ProjectDependenciesModelBase.kt:88) at com.intellij.packageChecker.model.impl.ProjectDependenciesModelBase$init$1$1.emit(ProjectDependenciesModelBase.kt:86) at kotlinx.coroutines.flow.FlowKtChannelsKt.emitAllImpl$FlowKtChannelsKt(Channels.kt:37) at kotlinx.coroutines.flow.FlowKtChannelsKt.access$emitAllImpl$FlowKtChannelsKt(Channels.kt:1) at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) 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)