question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Ship isort 5

See original GitHub issue

I was trying out

"python.sortImports.args": [
        "--profile",
        "black",
    ],

today, which promises better compatibility between isort and black. However, it seems that the extension ships with an older version of isort that does not support these flags.

user@host:~/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/isort> grep version __init__.py
__version__ = "4.3.21"

Even worse, adding these flags leads to endless “Saving xyz.py: Applying code action ‘Sort imports’.”

Shipping isort>=5 should solve this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
karrtikrcommented, Aug 13, 2020

Next release will have the new isort

1reaction
PeterJCLawcommented, Jul 31, 2020
  • Remove old workaround used with isort 4: In sortImports.py, remove the following change: fc34f9c isort5 expects stdin stream to be of type string, not byte. And the workaround converts stream to bytes, so we have an error when upgrading. From my understanding, the workaround was added because of timothycrosley/isort#1195 with isort4, but isort5 doesn’t have that issue, so we can remove it. cc @PeterJCLaw

Yup, that’s correct regarding the workaround. If isort>=5 has fixed the Windows stdin issue on its own then that workaround can be dropped. (I don’t tend to develop on Windows, so haven’t tested that). It was the vscode-python CI which originally found the issue, so if the CI is happy everything should be fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Requests: How to Collect Them and Engage Users in ...
Feature requests are an important window into your customers desires and priorities. ... 5 ways to prioritize feature requests.
Read more >
How to Track Feature Requests: Detailed Guide in 2022 (Free ...
Feature requests tracking & management is a five-step process that includes: Asking for feedback or having a way to collect incoming feedback ...
Read more >
Feature Requests - CircleCI Discuss
Topic Replies Views Activity About the Feature Requests category 1 3586 October 7, 2015 Windows support 2 7221 June 18, 2018 Sort the Projects list 2...
Read more >
How to Handle Customer Feature Requests [with Examples]
1. Identify your feature request sources · 2. Centralize your requests in a single place · 3. Respond personally and politely · 4....
Read more >
Throne Gifts
Welcome to Throne's feature request page! ... Folders or tabs to sort your wishlist items with (Collections!) Feature ... No shipping fees on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found