Rider doesn't show fix for empty Unity event functions?

I am using Rider for my Unity project, and I noticed that when I have empty Unity event functions such as Update, Rider correctly shows a warning for this, but it doesn't give me a quick fix to remove the empty function.

When I looked at the page of the link of "Why is Rider suggesting this?", it says that "This inspection also provides an Alt+Enter quick fix to remove the redundant event function."

However, I don't see any quick fix to remove the empty function (see the attached screenshot). Is it a bug in Rider, or is something wrong with my settings?

5 comments
Comment actions Permalink

Hello, there is an option to specify a severity for redundant Unity event function in Preferences | Editor | Inspection Settings | Inspection Severity | C# | Unity, then you should be able to the following quick fix:

Please check what is the current severity, change if required, let me know if that helps.

0
Comment actions Permalink

I checked the settings. The inspection severity is set to Warning, but I still don't get a quick fix.

Even when setting it to Error, I received no quick fix.

0
Comment actions Permalink

Shaia1112011, what Rider, Rider Unity package and Unity version are you using?

0
Comment actions Permalink

Rider version: 2020.2.4

Rider Unity Package version: 1.2.1

Unity version: 2020.1.9f1.4646 Personal

 

I have recently upgraded to this latest verion of Unity and the problem remains, so I don't think it's related to Unity.

Inform me if you need more information.

0
Comment actions Permalink

Shaia1112011, could you please try the latest Rider 20.3 EAP and update Rider Editor package to the latest version? Let me know if that helps.

0

Please sign in to leave a comment.