When using the Code Actions (Ctrl + .) shortcut and selecting the "Declare…" option using the arrow / Enter key the dialog displays briefly then closes unexpectedly.
See attached video demonstrating the problem.
This also happens when using the mouse to activate the Code Actions from the left hand side and selecting Declare…
I have managed to pick up the following from the CodeRush Logs folder:
2022.06.30 15:58:40.7838 Error: Message: Object reference not set to an instance of an object. 2022.06.30 15:58:40.7838 Error: Type: System.NullReferenceException 2022.06.30 15:58:40.7838 Error: HResult: 80004003 2022.06.30 15:58:40.7838 Error: Source: DevExpress.CodeRush.Intellisense.Dev17 2022.06.30 15:58:40.7838 Error: StackTrace: 2022.06.30 15:58:40.7838 Error: at DevExpress.CodeRush.Intellisense.SmartTag.UI.SmartTagMenuViewModel.<>c__DisplayClass115_0.<SetOptimalSize>b__2()
Hi,
I reproduced this issue and passed it to our developers for further research. Please bear with us.
As a workaround for now, use the Alt+Insert shortcut to open the "Declare" dialog.