You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked there are no open bugs referencing the same bug or problem
Description
I have installed the Sourcery plugin for VS Code. Furthermore I have set up the Sourcery CLI. Both of them are configured to use the same .sourcery.yaml config file.
Now VS Code reports some suggestions that the CLI does not report, e.g. the use-contextlib-suppress suggestion:
Even when I explicitly enable it on the command line, the CLI does not find any issues:
The same happens with extract-method and extract-duplicate-method.
Where does the difference in behavior come from? How can I configure VS Code and the CLI to report the same suggestions?
This is a known limitation in the Sourcery CLI - it cannot yet handle refactorings that add imports. The same limitation applies to both extract-method and extract-duplicate-method, as you mentioned. Enhancing the CLI to have those capabilities is already on our roadmap but may still take some time to be implemented.
Checklist
Description
I have installed the Sourcery plugin for VS Code. Furthermore I have set up the Sourcery CLI. Both of them are configured to use the same
.sourcery.yaml
config file.Now VS Code reports some suggestions that the CLI does not report, e.g. the
use-contextlib-suppress
suggestion:Even when I explicitly enable it on the command line, the CLI does not find any issues:
The same happens with
extract-method
andextract-duplicate-method
.Where does the difference in behavior come from? How can I configure VS Code and the CLI to report the same suggestions?
Code snippet that reproduces issue
Debug Information
IDE Version:
VSCode 1.81.1
Sourcery Version:
Sourcery 1.6.0
Operating system and Version:
Ubuntu 22.04 via WSL
The text was updated successfully, but these errors were encountered: