SpecFlowOSS / SpecFlow.Rider

SpecFlow support for both ReSharper and Rider
MIT License
29 stars 18 forks source link

Rider 2023.1 not working Code completion for feature files #196

Closed ShinKaiRyuu closed 1 year ago

ShinKaiRyuu commented 1 year ago

Code completion for feature files stop working after update to Rider 2023.1 (plugin's version 1.16) image Everything is working fine ( well , not as expected, have some issues, but have suggestions in feature files for steps) in Rider 2022.3 plugin version 1.15.3 image image

STNBRT commented 1 year ago

Same here. Code completion is not working in Rider 2023.1 and also I get a specflow plugin error while starting rider. Here is the log:


com.intellij.diagnostic.PluginException: com.jetbrains.rdclient.completion.ProtocolCompletionContributor PluginClassLoader(plugin=PluginDescriptor(name=SpecFlow for Rider, id=com.settler.rider.specflow, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\Rider2023.1\plugins\specflowriderplugin, version=1.16.0, package=null, isBundled=false), packagePrefix=null, instanceId=27, state=active)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:1059)
    at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:55)
    at com.intellij.serviceContainer.LazyExtensionInstance.getInstance(LazyExtensionInstance.java:44)
    at com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance(BaseKeyedLazyInstance.java:38)
    at com.intellij.openapi.util.KeyedExtensionCollector.instantiate(KeyedExtensionCollector.java:177)
    at com.intellij.openapi.util.KeyedExtensionCollector.buildExtensionsFromExtensionPoint(KeyedExtensionCollector.java:164)
    at com.intellij.openapi.util.KeyedExtensionCollector.buildExtensions(KeyedExtensionCollector.java:195)
    at com.intellij.codeInsight.completion.CompletionExtension.buildExtensions(CompletionExtension.java:23)
    at com.intellij.codeInsight.completion.CompletionExtension.buildExtensions(CompletionExtension.java:14)
    at com.intellij.openapi.util.KeyedExtensionCollector.forKey(KeyedExtensionCollector.java:111)
    at com.intellij.codeInsight.completion.CompletionContributor.forLanguage(CompletionContributor.java:238)
    at com.jetbrains.rider.completion.ClientCompletionSupport.backendCompletionEnabledInFile(ClientCompletionSupport.kt:77)
    at com.jetbrains.rider.editors.TextControlUtilsKt.hasAnyBackendFeature(TextControlUtils.kt:191)
    at com.jetbrains.rider.editors.FeatureBasedTextControlBindingPolicy.shouldBind(TextControlUtils.kt:181)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost$shouldBind$1.invoke(FrontendTextControlHost.kt:399)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost$shouldBind$1.invoke(FrontendTextControlHost.kt:398)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost.D(FrontendTextControlHost.kt:398)
    at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.findFirstSafe$lambda$0(ExtensionProcessingHelper.kt:47)
    at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.computeSafeIfAny(ExtensionProcessingHelper.kt:57)
    at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.findFirstSafe(ExtensionProcessingHelper.kt:47)
    at com.intellij.openapi.extensions.ExtensionPointName.findFirstSafe(ExtensionPointName.kt:53)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost.shouldBind(FrontendTextControlHost.kt:398)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost.bindEditor(FrontendTextControlHost.kt:380)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost.editorCreated(FrontendTextControlHost.kt:189)
    at com.jetbrains.rider.editors.RiderTextControlHost.access$editorCreated$s-1824192346(RiderTextControlHost.kt:45)
    at com.jetbrains.rider.editors.RiderTextControlHost$editorCreated$action$1.invoke(RiderTextControlHost.kt:152)
    at com.jetbrains.rider.editors.RiderTextControlHost$editorCreated$action$1.invoke(RiderTextControlHost.kt:147)
    at com.jetbrains.rider.editors.RiderTextControlHost.editorCreated(RiderTextControlHost.kt:159)
    at com.jetbrains.rdclient.editors.FrontendTextControlHost$MyEditorFactoryListener.editorCreated(FrontendTextControlHost.kt:150)
    at com.intellij.openapi.editor.impl.EditorFactoryImpl.lambda$postEditorCreation$2(EditorFactoryImpl.java:232)
    at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.forEachExtensionSafe(ExtensionProcessingHelper.kt:32)
    at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:49)
    at com.intellij.openapi.editor.impl.EditorFactoryImpl.postEditorCreation(EditorFactoryImpl.java:232)
    at com.intellij.openapi.editor.impl.EditorFactoryImpl.createMainEditor(EditorFactoryImpl.java:222)
    at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.createEditor(TextEditorImpl.java:242)
    at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.<init>(TextEditorImpl.java:48)
    at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.<init>(PsiAwareTextEditorImpl.java:42)
    at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.createEditor(PsiAwareTextEditorProvider.java:29)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.createComposite(FileEditorManagerImpl.kt:1139)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.doOpenInEdtImpl(FileEditorManagerImpl.kt:1048)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.access$doOpenInEdtImpl(FileEditorManagerImpl.kt:119)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$openFileOnStartup$opened$1.invokeSuspend(FileEditorManagerImpl.kt:2025)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at com.intellij.openapi.application.impl.DispatchedRunnable.run(DispatchedRunnable.kt:35)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:456)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:758)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:666)
    at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:570)
    at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1446)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:570)
    at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
    at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:994)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:994)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassNotFoundException: com.jetbrains.rdclient.completion.ProtocolCompletionContributor PluginClassLoader(plugin=PluginDescriptor(name=SpecFlow for Rider, id=com.settler.rider.specflow, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\Rider2023.1\plugins\specflowriderplugin, version=1.16.0, package=null, isBundled=false), packagePrefix=null, instanceId=27, state=active)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1629)
    at com.intellij.serviceContainer.ComponentManagerImplKt.access$doLoadClass(ComponentManagerImpl.kt:1)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:1051)
    ... 81 more
fredluetkemeier commented 1 year ago

Same issue here.

Socolin commented 1 year ago

I can reproduce the error, I'll ask help from the jetbrains team to know what cause it.

briand-quentin commented 1 year ago

Same issue here (Rider 2023.1 plugin's version 1.16)

Socolin commented 1 year ago

Should be fixed in the next version

https://github.com/SpecFlowOSS/SpecFlow.Rider/suites/12287852957/artifacts/650994864

briand-quentin commented 1 year ago

Should be fixed in the next version

https://github.com/SpecFlowOSS/SpecFlow.Rider/suites/12287852957/artifacts/650994864

Yes it is (1.16.1) Thanks a lot !

Socolin commented 1 year ago

It's now available on the marketplace