Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Implement detection and reporting of unused imports #18

Closed
MikhailArkhipov opened this issue Aug 31, 2018 · 7 comments
Closed

Implement detection and reporting of unused imports #18

MikhailArkhipov opened this issue Aug 31, 2018 · 7 comments
Labels
enhancement New feature or request ptvs

Comments

@MikhailArkhipov
Copy link

microsoft/vscode-python#43
microsoft/PTVS#254

@MikhailArkhipov MikhailArkhipov added the enhancement New feature or request label Aug 31, 2018
@MikhailArkhipov MikhailArkhipov added this to the Oct 2018.1 milestone Sep 21, 2018
@MikhailArkhipov
Copy link
Author

Adding some estimate. @AlexanderSher - it needs further clarification.

@gramster gramster removed this from the Oct 2018.1 milestone Sep 26, 2018
@DonJayamanne
Copy link

Blocked by microsoft/language-server-protocol#500

@psarka
Copy link

psarka commented Sep 21, 2019

The issue microsoft/language-server-protocol#500 seems to be closed now, so should this be unblocked?

(Anxiously waiting for this feature!)

@jakebailey
Copy link
Member

Not until LSP 3.15 is released, and then not until there's a client implementation for the feature.

microsoft/language-server-protocol@4e17257

@micimize
Copy link

micimize commented Apr 7, 2022

Would this include optional removal of said imports? Currently I'm using autoflake as a task which I then trigger on save, but this results in some "content of the file is newer" complaints.

task.json#tasks entry
    {
      "type": "process",
      "label": "autoflake.removeUnusedImports",
      "command": "${command:python.interpreterPath}",
      "args": [
        "-m",
        "autoflake",
        "-i",
        "--remove-all-unused-imports",
        "${file}"
      ]
    },

@debonte
Copy link

debonte commented Apr 7, 2022

@micimize what language server are you using? If you're using Pylance, head over to Pylance's issue tracker at https://github.com/microsoft/pylance-release/issues

@judej
Copy link

judej commented Apr 13, 2022

Thank you for the report. This project is no longer active. If you are using the Python language server in VSCode, the language server you are using is Pylance and please the http://github.com/microsoft/pylance-release to report issues.

If you are using Visual Studio, then, please use http://github.com/microsoft/PTVS to report issues.

thank you

@judej judej closed this as completed Apr 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request ptvs
Projects
None yet
Development

Successfully merging a pull request may close this issue.