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
log_warning(f"Skipping standard library file: {document.path}")
returnNone
Output from python:
Python 3.11.4 (main, Jun 7 2023, 10:13:09) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_default_scheme()
'posix_local'
>>> sysconfig.get_paths()
{'stdlib': '/usr/lib/python3.11', 'platstdlib': '/usr/lib/python3.11', 'purelib': '/usr/local/lib/python3.11/dist-packages', 'platlib':
'/usr/local/lib/python3.11/dist-packages', 'include': '/usr/include/python3.11', 'platinclude': '/usr/include/python3.11', 'scripts':
'/usr/local/bin', 'data': '/usr/local'}
'data' : '/usr/local' is a directory for data files (doc), but here it is also a base folder for the user's home folder. So the source file, which in our example is /usr/local/home/username/code/foo.py, gets skipped. I believe data shouldn't be added to _site_paths.
The text was updated successfully, but these errors were encountered:
Symptoms: Trying to format a source with autopep8 v2023.6.0 doesn't do anything. The code is on a Debian-based system.
Output>autopep8:
Likely culprit is #103 -
_site_paths
were changed to include paths fromsysconfig
vscode-autopep8/bundled/tool/lsp_utils.py
Lines 32 to 39 in 96c1d85
These paths are then used as prefixes to detect standard library files.
vscode-autopep8/bundled/tool/lsp_utils.py
Lines 57 to 60 in 96c1d85
These files are skipped here:
vscode-autopep8/bundled/tool/lsp_server.py
Lines 349 to 351 in 96c1d85
Output from python:
'data' : '/usr/local'
is a directory for data files (doc), but here it is also a base folder for the user's home folder. So the source file, which in our example is/usr/local/home/username/code/foo.py
, gets skipped. I believedata
shouldn't be added to_site_paths
.The text was updated successfully, but these errors were encountered: