jcansdale / TestDriven.Net-Issues

Issue tracking for TestDriven.Net
https://github.com/jcansdale/TestDriven.Net-Issues/issues
24 stars 2 forks source link

Can't target projects in solution #67

Open jcansdale opened 7 years ago

jcansdale commented 7 years ago

Here is DebugView log:

[16304] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Value does not fall within the expected range. 
[16304]    at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.AbstractCodeModelService.GetNodeKey(SyntaxNode node) 
[16304]    at Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel.CSharpCodeModelService.CreateInternalCodeElement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 
[16304]    at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.FileCodeModel.GetOrCreateCodeElement[T](SyntaxNode node) 
[16304]    at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.FileCodeModel.CodeElementFromPosition(Int32 position, vsCMElement scope) 
[16304]    at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.FileCodeModel.CodeElementFromPoint(TextPoint point, vsCMElement scope) 
[16304]    at EnvDTE.FileCodeModel.CodeElementFromPoint(TextPoint Point, vsCMElement Scope) 
[16304]    at MutantDesign.Xml.Documentation.CodeElementUtilities.GetCodeElementAt(FileCodeModel fileCodeModel, TextPoint textPoint, vsCMElement element) 
[16304]    at MutantDesign.Xml.Documentation.CodeElementUtilities.TryGetCodeElementAt(FileCodeModel fileCodeModel, TextPoint textPoint) 
[16304]    at TestDriven.Services.TestTargetService.findDocumentTestTarget(Document document) 
[16304]    at TestDriven.Services.TestTargetService.findDocumentTestTargets(DTE dte) 
[16304]    at TestDriven.Services.TestTargetService.findTestTargets(DTE dte, vsWindowType windowType) 
[16304]    at TestDriven.Services.TestTargetService.FindTestTargets(vsWindowType windowType) 
[16304]    at TestDriven.Services.TestRunner.VSTestRunner.execute() 
[16304]    at TestDriven.Services.TestRunner.VSTestRunner.ExecuteRunner.Run() 
[16304]    --- End of inner exception stack trace --- 
[16304]    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 
[16304]    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) 
[16304]    at System.Delegate.DynamicInvokeImpl(Object[] args) 
[16304]    at System.Delegate.DynamicInvoke(Object[] args) 
[16304]    at TestDriven.Services.TestRunner.VSTestRunner.ThreadRunner.run() 
jcansdale commented 7 years ago

Closing all documents and trying again seemed to fix it. Hmmm.