Skip to content

fix(lsp): exclude the real pub cache from analysis - #538

Merged
sidlatau merged 1 commit into
mainfrom
fix/pub-cache-exclusion
Sep 25, 2026
Merged

sidlatau merged 1 commit into
mainfrom
fix/pub-cache-exclusion

Conversation

@sidlatau

Copy link
Copy Markdown
Collaborator
  • Default analysisExcludedFolders now includes the actual pub cache: $PUB_CACHE, falling back to ~/.pub-cache (%LOCALAPPDATA%\Pub\Cache on Windows). The existing <sdk>/.pub-cache entry normally does not exist.
  • Resolve symlinks in the SDK path before building the exclusions (mise/asdf via flutter_lookup_cmd).
  • Drop the README note telling Windows users to add the pub cache manually.

Fixes #533

The default excluded `<sdk>/.pub-cache`, which normally does not exist.
Also exclude `$PUB_CACHE` (falling back to `~/.pub-cache` or
`%LOCALAPPDATA%\Pub\Cache`), and resolve symlinks in the SDK path.

Fixes #533
@sidlatau
sidlatau merged commit c9a9802 into main Sep 25, 2026
7 checks passed
@sidlatau
sidlatau deleted the fix/pub-cache-exclusion branch September 25, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Default analysisExcludedFolders points at a path that does not exist

1 participant