Skip to content

Unhandled System.ArgumentException in LoadCachedAnalysis #508

@rkavalap

Description

@rkavalap
<entry>
    <record>96225</record>
    <time>2015/10/05 18:02:16.567</time>
    <type>Error</type>
    <source>Node.js Tools for Visual Studio</source>
    <description>
    Unhandled exception in LoadCachedAnalysis (F:\72\src\Nodejs\Product\Nodejs\Intellisense\VsProjectAnalyzer.cs:1404);
    System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower;   
    at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable);   
    at Microsoft.NodejsTools.Analysis.Deque`1.GrowArray();   
    at Microsoft.NodejsTools.Analysis.Deque`1.Append(T x);   
    at Microsoft.NodejsTools.Analysis.AnalysisLog.Add(String Event, Object[] Args);   
    at Microsoft.NodejsTools.Analysis.AnalysisLog.NewUnit(AnalysisUnit unit);   
    at Microsoft.NodejsTools.Analysis.AnalysisUnit..ctor(Statement ast, JsAst tree, EnvironmentRecord environment);   
    at Microsoft.NodejsTools.Analysis.JsAnalyzer.&lt;&gt;c__DisplayClass30_1.&lt;AddPackageJson&gt;b__0(String dependency);   
    at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext();   
    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection);   
    at Microsoft.NodejsTools.Analysis.JsAnalyzer.AddPackageJson(String filePath, String entryPoint, List`1 dependencies);   
    at Microsoft.NodejsTools.Intellisense.VsProjectAnalyzer.AddPackageJson(String path, String mainFile, List`1 dependencies);   
    at Microsoft.NodejsTools.Intellisense.VsProjectAnalyzer.&lt;&gt;c__DisplayClass55_0.&lt;AddPackageJson&gt;b__0();   
    at Microsoft.NodejsTools.Intellisense.VsProjectAnalyzer.&lt;&gt;c__DisplayClass108_2.&lt;LoadCachedAnalysis&gt;b__0();   
    at System.Threading.Tasks.Task.InnerInvoke();   
    at System.Threading.Tasks.Task.Execute();
    --- End of stack trace from previous location where exception was thrown ---;   
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task);   
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task);   
    at Microsoft.VisualStudioTools.VsTaskExtensions.&lt;HandleAllExceptions&gt;d__4.MoveNext()
    </description>
  </entry>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions