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

[Bug] Pylance doesn't show suggestions for functions and some types like NoneType. #214

Closed
byehack opened this issue Aug 7, 2020 · 6 comments
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@byehack
Copy link

byehack commented Aug 7, 2020

Environment data

  • Language Server version: 2020.8.0
  • OS and version: Version: 1.47.2 (user setup)
    Commit: 17299e413d5590b14ab0340ea477cdd86ff13daf
    Date: 2020-07-15T18:22:06.216Z
    Electron: 7.3.2
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Windows_NT x64 10.0.19041
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.7

Actualbehaviour

def x(): pass
x.

after i entered . the suggestion panel should open for x function. but it seems not working on pylance.
i tested with jedi and it worked.

@github-actions github-actions bot added the triage label Aug 7, 2020
@erictraut
Copy link
Contributor

What suggestions would you expect to see in your example above? x is a function, so what members would you expect it to have? Likewise, if x was None, what would you expect for suggestions?

@byehack
Copy link
Author

byehack commented Aug 8, 2020

look at jedi:

image

@erictraut
Copy link
Contributor

And you find this useful?

@byehack
Copy link
Author

byehack commented Aug 8, 2020

And you find this useful?

yes. like when we wanna use __doc__ of a function.

@erictraut
Copy link
Contributor

This will be addressed in the next version of Pylance.

@erictraut erictraut added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 8, 2020
@github-actions github-actions bot removed the triage label Aug 8, 2020
@jakebailey
Copy link
Member

This issue has been fixed in version 2020.8.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202081-13-august-2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants