1
0
forked from VimPlug/jedi

Fix file name completions when file name is too long

This commit is contained in:
Dave Halter
2019-11-29 14:11:31 +01:00
parent 0e92be66db
commit 6e5e706288

View File

@@ -33,7 +33,8 @@ def file_name_completions(inference_state, module_context, start_leaf, string,
base_path = os.path.join(inference_state.project._path, string)
try:
listed = scandir(base_path)
except FileNotFoundError:
# OSError: [Errno 36] File name too long: '...'
except (FileNotFoundError, OSError):
return
for entry in listed:
name = entry.name