-
Notifications
You must be signed in to change notification settings - Fork 328
Remove unused imports #13216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Remove unused imports #13216
Conversation
With `enso --no-compile-dependencies --no-global-cache --no-ir-caches --vm.D enso.compiler.removeUnusedImports --compile distribution/lib/Standard/Base/0.0.0-dev/`
✨ GUI Checks ResultsSummary
See individual check results for more details. |
Which imports Standard.Base library.
What to do with extension method imports that are reported as unused?Extension methods can be imported in various ways. Having module
it can be imported from other module via The "plain" import
the import will be reported as unused. There is not much we can do about it at this moment. The algorithm for unused import reporting uses The commit that adds back some imports that are used only for extension methods (and therefore were previously reported as unused) is at 4ea0982 SolutionRule of a thumb will be: use |
# Conflicts: # distribution/lib/Standard/Google_Api/0.0.0-dev/src/Google_Analytics.enso # distribution/lib/Standard/Microsoft/0.0.0-dev/src/Connection/SQLServer_Details.enso # distribution/lib/Standard/Table/0.0.0-dev/src/Generate_Rows_Range.enso # distribution/lib/Standard/Table/0.0.0-dev/src/Simple_Expression.enso
This is necessary because Runtime is not a synthetic module, and so there are no synthetic exports for it created.
# Conflicts: # distribution/lib/Standard/Database/0.0.0-dev/src/DB_Column.enso # distribution/lib/Standard/Table/0.0.0-dev/src/In_Memory_Column.enso # distribution/lib/Standard/Visualization/0.0.0-dev/src/Table/Visualization.enso
The unused import compiler pass is pretty slow. Making sure it is enabled only if |
TODO [note to myself]: First integrate all the changes to *.enso files in a separate PR - once the Enso Lint CI job passes on this PR. |
Follow-up of #13017
Pull Request Description
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.