HotCommands
HotCommands copied to clipboard
Exception when opening C# Interactive
It tells me an exception happened and that I should see the log to know what happened:
<entry> <record>1135</record> <time>2018/09/13 13:36:18.108</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.NullReferenceException: Object reference not set to an instance of an object.
 at HotCommands.LastEditHandler.GetCurrentFilePath() in C:\Projects\HotCommands\HotCommands\Listeners\LastEditTextViewCreationListener.cs:line 54
 at HotCommands.LastEditHandler.RecordLastEdit(Object sender, EventArgs e) in C:\Projects\HotCommands\HotCommands\Listeners\LastEditTextViewCreationListener.cs:line 45
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description> </entry>
I just got the same exception. Any idea what's causing this?
Um. Not sure. What version of Visual Studio are you experiencing this with?
I also get it. I'm on latest 2017 (15.8.7). HotCommands version is 2.1.5. The "demangled" exception trace is:
System.NullReferenceException: Object reference not set to an instance of an object.\r
at HotCommands.LastEditHandler.GetCurrentFilePath() in C:\Projects\HotCommands\HotCommands\Listeners\LastEditTextViewCreationListener.cs:line 54\r
at HotCommands.LastEditHandler.RecordLastEdit(Object sender, EventArgs e) in C:\Projects\HotCommands\HotCommands\Listeners\LastEditTextViewCreationListener.cs:line 45\r
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)\r
--- End of stack trace from previous location where exception was thrown ---\r
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
In my case I use:
- VS Professional 2017 version 15.7.6
- HotCommands version 2.1.5