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

Commented Issue: Enter after unmatched curly brace causes exception [1386]

$
0
0
Hi,

Whenever I press enter after an unmatched opening curly brace I get an "Object reference not set to an instance of an object" error prompt.

Whenever I press enter after an unmatched closing curly brace I get an "Count must be positive and count must refer to a location within the string/array/collectionudio. Parameter name: count." error prompt.

For instance:

```
var func = function () {<enter here causes a "Object reference not set to an instance of an object>
```

Here's my setup:
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Node.js Tools 1.0.20905.00
Node.js Tools - Profiling 1.0.20905.00

Thanks
Comments: There does not seem to be any entry in the activity log related to this error (I've started Visual Studio with devenv.exe /log). When you try it, do you have brace auto-complete turned on? If so, try to delete the auto inserted closing curly brace before hitting enter. For instance: ```` var a = function () { (hit delete if the closing brace is generated automatically to remove it and then enter) ```` As @chrismwendt mentionned, it also happens without removing the closing curly brace when you do not specify the function arguments (opening and closing parenthesis). Thanks

Viewing all articles
Browse latest Browse all 4630

Trending Articles



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