full-analysis: auto-instantiate environments and cache detection results#337
Merged
full-analysis: auto-instantiate environments and cache detection results#337
Conversation
Add automatic `Pkg.instantiate()` for environments that have not been instantiated yet (e.g., freshly cloned repositories or new project directories). This allows full analysis to work immediately upon opening files in such environments, whether they are package source files, test files, or scripts with their own Project.toml. Also add caching for environment detection results to avoid redundant `Pkg.instantiate()` calls and `Base.identify_package_env` lookups for the same environment. The behavior is controlled by `full_analysis.auto_instantiate` config option (default: `true`).
b07d6d3 to
ff1955e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #337 +/- ##
==========================================
- Coverage 66.24% 66.19% -0.06%
==========================================
Files 40 40
Lines 4050 4076 +26
==========================================
+ Hits 2683 2698 +15
- Misses 1367 1378 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add automatic
Pkg.instantiate()for environments that have not been instantiated yet (e.g., freshly cloned repositories or new project directories). This allows full analysis to work immediately upon opening files in such environments, whether they are package source files, test files, or scripts with their own Project.toml.Also add caching for environment detection results to avoid redundant
Pkg.instantiate()calls andBase.identify_package_envlookups for the same environment.The behavior is controlled by
full_analysis.auto_instantiateconfig option (default:true).