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.

Imports are incorrectly sorted and/or formatted.

See original GitHub issue

Type: Bug

Type:bug Imports are incorrectly sorted and/or formatted. I haven’t touch any code.

Extension version: 2022.17.12911022 VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Connection to ‘ssh-remote+3070’ could not be established Remote OS version: Linux x64 5.4.0-124-generic

System Info
Item Value
CPUs Intel® Core™ i5-8265U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 7.82GB (3.29GB free)
Process Argv –crash-reporter-id f334462b-f620-4a3a-8093-1188cfae587f
Screen Reader no
VM 0%

Connection to ‘ssh-remote+3070’ could not be established

Item Value
Remote SSH: Titan
OS Linux x64 5.4.0-124-generic
CPUs Intel® Core™ i9-10920X CPU @ 3.50GHz (24 x 4200)
Memory (System) 62.50GB (32.11GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2144e591:30553903
pyindex848:30577860
nodejswelcome1:30587005
40g7c324:30573242

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Oct 19, 2022

@ctwardy you should be able to see the output from isort in Output > isort panel.

1reaction
karthiknadigcommented, Oct 19, 2022

@ctwardy the warning is shown based on what is seen when you run isort --check on that file. I am adding a setting to disable warnings from isort --check the fix is in PR https://github.com/microsoft/vscode-isort/pull/125

Read more comments on GitHub >

github_iconTop Results From Across the Web

Imports are incorrectly sorted and/or formatted | VS Code
My guess is your linter is complaining about unused imports. Hover over the red underscored word and see what the message is. –...
Read more >
Imports are incorrectly sorted after isorting · Issue #1048
So I've run an isort -rc -y command and after that I isort -rc --check-only and I get to see that some of...
Read more >
What is isort and why does it think that it is a incorrect ...
It doesn't. It knows that you have incorrectly sorted your imports based on the isort config. You have three choices: Uninstall or disable ......
Read more >
isort
isort is a Python utility / library to sort imports alphabetically, ... Any files that contain incorrectly sorted and/or formatted imports will be...
Read more >
Sorting imports with isort — Perfect Python - YouTube
Welcome to Perfect Python, the series where I show you how to take your code to the next level — perfection.In this episode...
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