question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Analyzer dependencies showing as unresolved full paths

See original GitHub issue

Steps to reproduce:

  1. Create a new .NET Core Console App
  2. Add a package reference to xunit.analyzers
  3. Build the solution
  4. Close the solution
  5. Re-open the solution
  6. Expand the project’s dependencies node
  7. Notice there is no Analyzers node
  8. Modify whitespace in the project file and save it (triggering a design-time build)
  9. Notice an Analyzers node appears with unresolved child, which is a full path rather than the analyzer’s name image
  10. Close and reopen the solution and the analyzers appear correctly
  11. Modify the project file again (stays resolved)
  12. Close and re-open the solution (stays resolved)
  13. Build from VS then close/re-open solution and notice Analyzers node is missing again

Open questions:

  • Why is the Analyzers node not initially present? This seems to happen if the build before opening the solution happened within VS.
  • Why are analyzers appearing as paths and in unresolved state?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

16reactions
drewnoakescommented, Jan 28, 2020

This has been fixed and will be released in 16.5.

4reactions
drewnoakescommented, Jan 10, 2020

This can be reproduced more easily by:

  1. New ASP.NET Core Web Application (empty)
  2. Close solution
  3. Reopen solution

Deleting the .dtbcache file in the .vs folder between steps 2 and 3 fixes the problem, so the DTB caching in ProjectServices is looking like the culprit here.


EDIT The above worked for me five times in a row, but no longer does. It doesn’t seem that deterministic. Running VS in the debugger makes it fail more often. Right now I’m Ctrl+F5’ing and can’t repro it at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UNRESOLVED DEPENDENCIES org.scallatest ...
Show activity on this post. Replace with this: libraryDependencies += "org.scalatest" % "scalatest_2.11" % "3.0.1" % "test".
Read more >
Unable to resolve dependency when scanning in java11 ...
The problem is that in this parent pom.xml, the path to the dependency is relative to java.home environment variable. As soon as you...
Read more >
IntelliJ not resolving Maven dependencies
Hi everybody ! I'm having a problem with IntelliJ. It's not resolving Maven dependencies (the External Libraries remains empty and all ...
Read more >
Maven dependencies | IntelliJ IDEA Documentation
Dependency analyzer tool window reference ; Show Conflicts Only. Click the Conflicts icon to see only unresolved or conflicted dependencies.
Read more >
Check Dependency Results and Resolve Problems
Under Apps, click Dependency Analyzer. When you run a dependency analysis, the Dependency Analyzer identifies problems, such as missing files, files not in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found