Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathvalidate: No suggestions #2518

Closed
chr7 opened this issue Mar 30, 2022 · 2 comments
Closed

pathvalidate: No suggestions #2518

chr7 opened this issue Mar 30, 2022 · 2 comments

Comments

@chr7
Copy link

chr7 commented Mar 30, 2022

Environment data

  • Language Server version: 2022.3.3
  • OS and version: Windows_NT x64 10.0.18363
  • Python version (and distribution if applicable, e.g. Anaconda): 3.10.3
  • python.analysis.indexing: null
  • python.analysis.typeCheckingMode: off

Expected behaviour

Getting suggestions, e.g. sanitize_filename

Actual behaviour

image

Logs

Python Language Server Log

[Info  - 18:51:13] (16756) SourceFile: Received fs event 'change' for path 'c:\Users\...\pylance-problem.py'
(16756) Background analysis message: markFilesDirty
(16756) Background analysis message: analyze
(16756) Background analysis message: getDiagnosticsForRange
(16756) Background analysis message: getDiagnosticsForRange
[Info  - 18:51:15] (16756) SourceFile: Received fs event 'change' for path 'c:\Users\...\pylance-problem.py'
(16756) Background analysis message: markFilesDirty
(16756) Background analysis message: analyze

Code Snippet / Additional information

Content of file pylance-problem.py:

import pathvalidate

a = pathvalidate.san
@judej judej added the needs investigation Could be an issue - needs investigation label Mar 30, 2022
@github-actions github-actions bot removed the triage label Mar 30, 2022
@judej judej added external bug and removed needs investigation Could be an issue - needs investigation labels Mar 30, 2022
@judej
Copy link
Contributor

judej commented Mar 30, 2022

The pathvalidate library needs to update the way it does the imports. See this link:
https://github.com/python/typing/blob/master/docs/source/libraries.rst#library-interface

This needs to be fixed by the library author.

@chr7
Copy link
Author

chr7 commented Apr 12, 2022

I changed the language server to Jedi and then I get suggestions:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants