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

Edited Unassigned: Error Thrown When Opening package.json File. [1022]

$
0
0
EDIT: This looks like an issue with .json files in general, with VS2013 Update 2. See the following links for others with this issue:
https://nodejstools.codeplex.com/workitem/977
https://nodejstools.codeplex.com/workitem/911

This extension is a great idea, but am getting an error as soon as I open the package.json file (see below.) After this error is thrown, I can type into any of the .js files in the solution, but I cannot use backspace, delete, for any commands (copy, paste, etc.) I have produced this error on both 1.0-Beta and the latest Dev build. To reproduce this error, create new Nodejs Web Application, open package.json, attempt to manually add a dependency.

ActivityLog.xml Error:
```
<entry>
<record>907</record>
<time>2014/06/01 18:23:23.456</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>908</record>
<time>2014/06/01 18:23:23.457</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>909</record>
<time>2014/06/01 18:23:23.491</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>910</record>
<time>2014/06/01 18:23:24.187</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Web.Editor.WebProjectData.<GetAllPersistedPropertiesInternal>d__0.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Microsoft.VisualStudio.JSON.Package.Schema.DropdownMargin.JSONSchemaDropdown.PopulateDropdownEntries()
at Microsoft.VisualStudio.JSON.Package.Schema.DropdownMargin.JSONSchemaDropdown..ctor(ITextView textView)
at Microsoft.VisualStudio.JSON.Package.Schema.DropdownMargin.JSONSchemaDropdownMargin..ctor(IWpfTextView textView)
at Microsoft.VisualStudio.JSON.Package.Schema.DropdownMargin.JSONSchemaDropdownMarginProvider.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)
at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__2(IWpfTextViewMarginProvider mp)
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)</description>
</entry>
```

Viewing all articles
Browse latest Browse all 4630

Trending Articles



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