Current filter:
                                You should refresh the page.
                                  • As already explained, I've recently started properly using CodeRush for Roslyn and have started encountering edge cases, or cases whereby I wouldn't expect them to be flagged. In this particular case it is an event handler but that is attached elsewhere within the code (doesn't contain a handles statement at the end):

                                    [VB.NET]
                                    Private Async Sub TimelineMenuRouteItemClick(ByVal sender As Object, ByVal e As EventArgs)

                                    Would you expect this to be flagged that the e parameter is never used (it follows the event handler signature)?

                                Show all comments
                                • Alex Eg (DevExpress) 10.18.2017

                                  Mark,
                                  I have reproduced the issue. Our team are working on it. Thank you for your patience.

                                • Alex Eg (DevExpress) 10.19.2017

                                  Mark,
                                  Can you please clarify how you attach the event handler to the event? Ideally, it would be great if you can send us a complete sample with the event handler and the event subscription code.

                                • Mark Hopper 10.20.2017

                                  Hmm... it appears as if I can't reproduce this in a sample project. I will keep trying and if I manage to I'll attach it for your reference.

                                • Alex Eg (DevExpress) 10.20.2017

                                  Mark,
                                  Thank you for the information. Please update this ticket if the issue is reproducible.

                                • Mark Hopper 11.14.2017

                                  Alex, I've managed to get this to happen on an ASP.net WebForms based project. Within my global.asax file I have a number of event handlers such as Application_AcquireRequestState or Application_AuthenticateRequest.

                                  These methods are being flagged for CRR0026 saying that either the sender or e are unused and can be deleted, after which would invalidate the signature if you performed such action.

                                • Alex Eg (DevExpress) 11.14.2017

                                  Mark,
                                  Thank you for the update. I can see the issue now, please give us some time to research it.

                                • Mark Hopper 11.14.2017

                                  Of course Alex

                                • William Besancenez 12.17.2017

                                  Hopefully this is being fixed but I wanted to show what I am experiencing. I'm getting CRR0026 when a "Handles" clause is included:

                                  Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                                  End Sub

                                  Both "sender" and "e" are tagged as not used and offers to delete them.

                                  In the case of "Handles", "Implements" or "Overrides", there should be no warning generated. These parameters must be there and cannot be deleted.

                                • Alexander K (DevExpress) 12.18.2017

                                  Hi William,

                                  Thank you for pointing out this issue. We were informed that this issue appears in the 17.2.4 version and have solved it. Please install the following hotfix and let us know whether it solves the issue on your side: DevExpress.CodeRush.Roslyn-17.2.4.17352.vsix.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:

                                • wolfgang hauer 12.13.2017

                                  In 17.2.4 the problem occours on some forms in vb.net all with a handles clause

                                • Alex Eg (DevExpress) 12.14.2017

                                  Hi Wolfgang,
                                  I have reproduced the issue, please give us some time to research it.