Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: NullReferenceException in interactive window [513]

$
0
0
VS2013 only.

I was typing a for loop in the REPL while debugging:

```
for (var i = 0; i < 5; i++) { }
```
and I hit enter after typing the open brace (the close brace appeared automatically).

I got a msgbox with the activity log path. Here's the callstack from the activity log:
```
System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.JSLS.BraceCompletion.FormatOnEnterBraceCompletionContext.ShouldFormatOnEnter() at Microsoft.VisualStudio.JSLS.BraceCompletion.FormatOnEnterBraceCompletionContext.OnReturn(IBraceCompletionSession session) at Microsoft.VisualStudio.Text.BraceCompletion.Implementation.BraceCompletionDefaultSession.PostReturn() at Microsoft.VisualStudio.Text.BraceCompletion.Implementation.BraceCompletionManager.<PostReturn>b__25() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
```


Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>