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
report "no organize imports action available" error in the editor area, but
isort output:
[Error - 9:02:40 AM] Syntax error in code: Traceback (most recent call last):
File "c:\Users\User\.vscode\extensions\ms-python.isort-2022.8.0\bundled\tool\server.py", line 291, in is_python
ast.parse(code)
File "c:\Program Files\Python311\Lib\ast.py", line 50, in parse
return compile(source, filename, mode, flags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<unknown>", line 78
if r != '':
IndentationError: unexpected indent
[Warn - 9:02:40 AM] Skipping non python code: c:\test.py
[Error - 9:02:40 AM] Request textDocument/codeAction failed.
Message: AttributeError: 'NoneType' object has no attribute 'stdout'
Code: -32602
isort should only process the import ... part since it will not move the imports in methods to the head of the file anyway,
or isort should report the error correctly.
The text was updated successfully, but these errors were encountered:
Currently we use this check as a workaround to detect python code vs other code in cells. Cells appear like individual documents to isort server currently. This is because the underlying package pygls has not yet fully implemented .ipynb support. Once that is done, we will no longer need to have this this workaround. Until then this is a limitation.
report "no organize imports action available" error in the editor area, but
isort output:
isort should only process the
import ...
part since it will not move the imports in methods to the head of the file anyway,or isort should report the error correctly.
The text was updated successfully, but these errors were encountered: