Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when opening C# Interactive #79

Open
MScudeller opened this issue Sep 13, 2018 · 4 comments
Open

Exception when opening C# Interactive #79

MScudeller opened this issue Sep 13, 2018 · 4 comments

Comments

@MScudeller
Copy link

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>

@RobertBernstein
Copy link

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

@justcla
Copy link
Owner

justcla commented Oct 15, 2018

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

@tiesmaster
Copy link
Contributor

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)

@MScudeller
Copy link
Author

MScudeller commented Oct 15, 2018

In my case I use:

  • VS Professional 2017 version 15.7.6
  • HotCommands version 2.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants