Show Context Actions bulb (Alt+Enter) does not work

Hi, I am facing a very frustrating situation, the code suggestion that usually pops up when you press Alt+Enter is not working for me. As you can see in the image below, Rider correctly identified that idCounter does not need to be explicitly initialised to 0.

If I click on the yellow light bulb, I get these code suggestions:

 

I'm expecting the same suggestions to appear when I click on "Show Context Actions" or press Alt+Enter, but literally nothing happens.

 

Any ideas?

P.S: Settings -> Keymap -> "Show Context Actions" is bound to Alt+Enter

P.P.S: Settings -> Editor -> General -> Appearance -> "Show intention bulb" is ticked.

15 comments
Comment actions Permalink

Hi, 
Do I understand Right that the issue is in broken menu item (Show Context Actions) in the Editor context menu? If you perform the action "Remove redundant..." from the bulb menu it will expectedly change your code?
Could you please clarify your Rider version? Also, please turn on 'ActionsAndPopups' and 'Editors' category in the "Help->"Log Trace Scenarios" menu (it might slow down the app). And If you face it again, please share a whole log folder "Help | Compress Logs and Show in ...".

Here is a guide about how to upload files to JetBrains: https://resharper-support.jetbrains.com/hc/en-us/articles/207635255-Uploading-Large-Files-for-JetBrains-Support-Team.

0
Comment actions Permalink

Hi,

I'm encountering the same problem. To answer your questions:
If I perform actions in the bulb menu they are executed as expected.
I'm using Rider version 2019.3.3 (Build #RD-193.6494.30, built on February 20, 2020) on a Windows 10 machine.
I activated the log messages and have a log zip archive ready, but I can't add it in this comment here, as it seems.

0
Comment actions Permalink

Hi, 

Files under 10 MB in size can be attached right into the tracker issue (if you do not want the attachments to be publicly accessible, limit the attachment visibility to jetbrains-team user group only using the Visible to option under the comment field).

One can upload a file via https://uploads.services.jetbrains.com/ form and let us know the exact file name.

Also, please try Rider 2020.1 and check if the issue persists there.

 

Sofia.

 

0
Comment actions Permalink

The problem seems to be gone in rider 2020.1

0
Comment actions Permalink

Very odd. I didn't have the problem you described with the old version but after upgrading to 2020.1 (working mainly in Unity projects) ALT+ENTER an also calling Show Context Actions from the context menu started to fail for me. Anything special you did other than upgrading? Did you perform a clean install?

0
Comment actions Permalink

nope, just updated to 2020.1. It then worked for me in a Unity project. When it didn't work for me in 2019.3 it was a Blazor project.

0
Comment actions Permalink

Very odd. I'll maybe have to open my own bug report for this.

0
Comment actions Permalink

Hi @Gregor Beyerle,

Could you please try clearing caches via "File | Invalidate Caches / Restart | Invalidate and Restart"? Does the issue persist after that?

 

Sofia.

0
Comment actions Permalink

Hi Sofia Byzova,

this appears to fix the issue. Thanks so much! It was really driving me insane 😅 Would have been a shame if I had to revert to VS again - nothing beats Rider for Unity development. ❤

Cheers
Gregor

1
Comment actions Permalink

Having the same issue with 2020.1.3 (since 2020.1.2). I'm about to return to VS :(

For instance, I've created a Web Api project with the latest .net core SDK and ASP.NET Core 3.1.4.

I have tried invalidating rider caches & restart, already.

Context Actions dropdown menu just won't show up!

I only have bundled plugins installed.

2020-05-20 03:50:58,376 | DEBUG | RiderShowIntentionActionsHandler | Execute alt-enter action.
2020-05-20 03:50:58,376 | TRACE | ReSharperBulbMenuModelFactory | Requesting Alt-Enter popup, previous value is false
2020-05-20 03:50:58,378 | TRACE | ReSharperBulbMenuModelFactory | Received alt-enter model: RdPopupMenuModel (
expandSubmenu = RdProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.expandSubmenu` (14918961986750430547)(ver=0) [ <null> ]
timestamps = [
ContextPair (
key = TextControl
timestamp = 1
)
ContextPair (
key = Document
timestamp = 0
)
ContextPair (
key = Caret
timestamp = 7
)
... and 1 more
]
context = RdGutterMarkPopupWindowContext (
docOffset = 469
)
items = RdOptionalProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.items` (6389829257811429230)(ver=0) [ <not initialized> ]
executeItem = RdCall: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.executeItem` (12684454832495642966)
selectedItem = RdOptionalProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.selectedItem` (6176806286495194336)(ver=0) [ <not initialized> ]
toolbar = RdTitleModel (
caption = RdProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.toolbar.caption` (14498699273464440993)(ver=0) [ <null> ]
buttons = RdOptionalProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.toolbar.buttons` (14498699273153220156)(ver=0) [ <not initialized> ]
)
filter = RdFilterModel (
searchString = RdProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.filter.searchString` (8330080975520804285)(ver=0) [ <null> ]
isValid = RdOptionalProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.filter.isValid` (13835536272732013710)(ver=0) [ <not initialized> ]
)
footer = <null>
modal = true
useProtocolSearch = false
isPrepared = RdOptionalProperty: `fromEBS.SolutionModel.solutions.[1].altEnterModel.altEnterPopup.$.isPrepared` (3384558193669060761)(ver=0) [ <not initialized> ]
)
2020-05-20 03:50:58,379 | ERROR | RdDispatcher | Value for id InternId(value=25) has been removed
java.lang.IllegalArgumentException: Value for id InternId(value=25) has been removed
at com.jetbrains.rd.framework.impl.InternRoot.unIntern-vok6_f4(InternRoot.kt:63)
at com.jetbrains.rider.model.ImageSourceIconModel$Companion.read(ShellModel.Generated.kt:1200)
at com.jetbrains.rider.model.ImageSourceIconModel$Companion.read(ShellModel.Generated.kt:546)
at com.jetbrains.rd.framework.Serializers.readPolymorphicNullable(Serializers.kt:86)
at com.jetbrains.rd.framework.Serializers.readPolymorphic(Serializers.kt:98)
at com.jetbrains.ide.model.popups.RdPopupMenuModelItem$Companion.read(PopupInteractionModel.Generated.kt:1267)
at com.jetbrains.ide.model.popups.RdPopupMenuModelItems$Companion.read(PopupInteractionModel.Generated.kt:1385)
at com.jetbrains.ide.model.popups.RdPopupMenuModelItems$Companion.read(PopupInteractionModel.Generated.kt:1379)
at com.jetbrains.rd.framework.impl.RdPropertyBase.onWireReceived(RdProperty.kt:72)
at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:31)
at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:11)
at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:151)
at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:30)
at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:11)
at com.jetbrains.rdclient.protocol.RdDispatcher.pumpProtocolQueue(RdDispatcher.kt:70)
at com.jetbrains.rider.protocol.EarlyBackendStarter$switchingScheduler$1.pumpProtocolQueue(EarlyBackendStarter.kt:88)
at com.jetbrains.rdclient.protocol.IRdDispatcherKt.pumpProtocolQueue(IRdDispatcher.kt:28)
at com.jetbrains.rider.intentions.altEnter.ReSharperBulbMenuModelFactory.a(ReSharperBulbMenuModelFactory.kt:143)
at com.jetbrains.rider.intentions.altEnter.ReSharperBulbMenuModelFactory.access$processProtocolModel(ReSharperBulbMenuModelFactory.kt:33)
at com.jetbrains.rider.intentions.altEnter.ReSharperBulbMenuModelFactory$create$5.invoke(ReSharperBulbMenuModelFactory.kt:74)
at com.jetbrains.rider.intentions.altEnter.ReSharperBulbMenuModelFactory$create$5.invoke(ReSharperBulbMenuModelFactory.kt:33)
at com.jetbrains.rd.util.reactive.SourceExKt$adviseUntil$1$1.invoke(SourceEx.kt:27)
at com.jetbrains.rd.util.reactive.SourceExKt$adviseUntil$1$1.invoke(SourceEx.kt)
at com.jetbrains.rd.util.reactive.Signal.fire(Signal.kt:30)
at com.jetbrains.rd.util.reactive.Property.setValue(Property.kt:13)
at com.jetbrains.rd.util.reactive.Property.set(Property.kt:6)
at com.jetbrains.rd.framework.impl.RdPropertyBase.onWireReceived(RdProperty.kt:79)
at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:31)
at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:11)
at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:151)
at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:30)
at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:11)
at com.jetbrains.rdclient.protocol.RdDispatcher.a(RdDispatcher.kt:93)
at com.jetbrains.rdclient.protocol.RdDispatcher.access$flushAll(RdDispatcher.kt:17)
at com.jetbrains.rdclient.protocol.RdDispatcher$flushAllRunnable$1.run(RdDispatcher.kt:22)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-05-20 03:50:58,379 | ERROR | RdDispatcher | JetBrains Rider 2020.1.3 Build #RD-201.7846.1
2020-05-20 03:50:58,379 | ERROR | RdDispatcher | JDK: 11.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-05-20 03:50:58,379 | ERROR | RdDispatcher | OS: Windows 10
2020-05-20 03:50:58,379 | ERROR | RdDispatcher | Last Action: ShowIntentionActions
2020-05-20 03:50:58,379 | TRACE | ReSharperBulbMenuModelFactory | Backend bulb menu model is ready.
2020-05-20 03:50:58,384 | DEBUG | RiderShowIntentionActionsHandler | Show alt-enter popup.
0
Comment actions Permalink

Hello @Daniel,

Please accept my apologies for this bug. It is a known one, and here is an issue on our tracker: https://youtrack.jetbrains.com/issue/RIDER-44548.

Unfortunately, the chances the fix will be in 2020.1 are slim. We are expecting it in 2020.2.

 

Kind regards,

Sofia

0
Comment actions Permalink

Hi,

This bug is also bothering me. Is there some sort of workarround untill we wait for 2020.2?

0
Comment actions Permalink

Jonnekats,

Please turn on 'ActionsAndPopups' and 'Editors' category in the "Help | Diagnostic Tools | Choose Trace Scenarios" menu (it might slow down the app). And If you face it again, please collect a whole log folder via the menu item "Help | Collect Logs" and attache the archive to the issue https://youtrack.jetbrains.com/issue/RIDER-44548.
Do not forget disabling tracking after all.

0
Comment actions Permalink

Sofia Byzova Hi, thanks for your suggestion from https://rider-support.jetbrains.com/hc/en-us/community/posts/360007541299/comments/360001651079 , this has fixed my issue with Context Actions!

1
Comment actions Permalink

Just wanted to share that I ran into this issue in 2020.2.1.  I submitted my logs here: https://youtrack.jetbrains.com/issue/RIDER-44548?_ga=2.102366792.855826192.1599059253-548822088.1595516853.

0

Please sign in to leave a comment.