Skip to content

ArgumentNullException in MSBuildInferredSchema #261

Description

@KirillOsenkov
<Project>

  <ItemGroup>
    <None Include="*.txt">
      <Link>Sub\%(Filename)%(Extension)</Link>
    </None>
  </ItemGroup>

</Project>

Hover over the word Filename

System.ArgumentNullException: Value cannot be null.
Parameter name: obj
   at int OrdinalComparer.GetHashCode(string obj)
   at int MonoDevelop.MSBuild.Language.MSBuildInferredSchema+MetadataTupleComparer.GetHashCode((string itemName, string name) obj) in C:/MonoDevelop.MSBuildEditor/MonoDevelop.MSBuild/Language/MSBuildInferredSchema.cs:line 74
   at int System.Collections.Generic.Dictionary<TKey, TValue>.FindEntry(TKey key)
   at bool System.Collections.Generic.Dictionary<TKey, TValue>.ContainsKey(TKey key)
   at bool MonoDevelop.MSBuild.Language.MSBuildInferredSchema.ContainsInfo(ISymbol info) in C:/MonoDevelop.MSBuildEditor/MonoDevelop.MSBuild/Language/MSBuildInferredSchema.cs:line 56
   at IEnumerable<string> MonoDevelop.MSBuild.Language.MSBuildDocument.GetDescendedDocumentsReferencingSymbol(ISymbol info) in C:/MonoDevelop.MSBuildEditor/MonoDevelop.MSBuild/Language/MSBuildDocument.cs:line 368
   at ContainerElement MonoDevelop.MSBuild.Editor.DisplayElementFactory.GetSeenInElement(ITextBuffer buffer, MSBuildResolveResult rr, ISymbol info, MSBuildRootDocument doc) in C:/MonoDevelop.MSBuildEditor/MonoDevelop.MSBuild.Editor/DisplayElementFactory.cs:line 200
   at async Task<object> MonoDevelop.MSBuild.Editor.DisplayElementFactory.GetInfoTooltipElement(ITextBuffer buffer, MSBuildRootDocument doc, ISymbol info, MSBuildResolveResult rr, bool includeDeprecationMessage, CancellationToken token) in C:/MonoDevelop.MSBuildEditor/MonoDevelop.MSBuild.Editor/DisplayElementFactory.cs:line 115
   at async Task<QuickInfoItem> MonoDevelop.MSBuild.Editor.QuickInfo.MSBuildQuickInfoSource.GetQuickInfoItemAsyncInternal(IAsyncQuickInfoSession session, CancellationToken cancellationToken) in C:/MonoDevelop.MSBuildEditor/MonoDevelop.MSBuild.Editor/QuickInfo/MSBuildQuickInfoSource.cs:line 78

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions