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 analyzes files in ignored directories/other projects if you open them, and doesn't stop when they're closed

See original GitHub issue

Repro:

  1. Open the Flutter repo in VSCode
  2. Navigate to the definition of something in dart:ui or the Dart SDK (i.e. a file under the bin/cache/** folder)
  3. Problems window starts showing analysis issues in that folder based on current analysis options, even though analysis_options.yaml excludes it.
  4. Close the file (or even VSCode as a whole), but the problems still persist.

It seems to go away if I rm -rf ~/.dartServer with VSCode closed and then re-launch.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Feb 28, 2019

BTW to repro it, do a Ctrl/Cmd + Click on String in any dart file. It will open up string.dart from the SDK, which doesn’t follow Flutter’s analysis rules. Once it’s there, it won’t disappear until you clear your .dartServer and restart VS code

Aha, right. I see now. I believe this is the issue described in a comment at https://github.com/dart-lang/sdk/issues/25551#issuecomment-418437599. However I don’t think it has its own issue, so I’ll open one for better visibility so it doesn’t get missed.

0reactions
dnfieldcommented, Feb 27, 2019

I can kind of work around this by adding a filter to the problems window like !bin/cache/**, but it sztill suggests there’s a ton of problems even though they’re filtered out from view.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble un-ignoring previously ignored files in Git repo
The problem is that Git won't stop ignoring that directory. I have removed the lines from .gitignore that specify this directory and it...
Read more >
Ignoring files, folders, or code - Semgrep
This documents various methods to skip or ignore files, folders, or code that are not relevant to a Semgrep scan.
Read more >
Frequently Asked Questions - SAS Support
Frequently asked questions about SAS OnDemand for Academics - a service that enables instructors and students to access the power of SAS over...
Read more >
The Java Plugin - Gradle User Manual
The Java plugin adds Java compilation along with testing and bundling capabilities to a project. It serves as the basis for many of...
Read more >
Yocto Project Reference Manual
Sometimes it can be hard to see why BitBake wants to build other packages before building a given package you have specified. The...
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