HotCommands icon indicating copy to clipboard operation
HotCommands copied to clipboard

Exception when opening C# Interactive

Open MScudeller opened this issue 6 years ago • 4 comments

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.&#x000D;&#x000A; at HotCommands.LastEditHandler.GetCurrentFilePath() in C:\Projects\HotCommands\HotCommands\Listeners\LastEditTextViewCreationListener.cs:line 54&#x000D;&#x000A; at HotCommands.LastEditHandler.RecordLastEdit(Object sender, EventArgs e) in C:\Projects\HotCommands\HotCommands\Listeners\LastEditTextViewCreationListener.cs:line 45&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description> </entry>

MScudeller avatar Sep 13 '18 13:09 MScudeller

I just got the same exception. Any idea what's causing this?

RobertBernstein avatar Oct 13 '18 01:10 RobertBernstein

Um. Not sure. What version of Visual Studio are you experiencing this with?

justcla avatar Oct 15 '18 05:10 justcla

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)

tiesmaster avatar Oct 15 '18 08:10 tiesmaster

In my case I use:

  • VS Professional 2017 version 15.7.6
  • HotCommands version 2.1.5

MScudeller avatar Oct 15 '18 15:10 MScudeller