-
Notifications
You must be signed in to change notification settings - Fork 835
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
VSCode (with jedi) can't suggest imports beyond base level of package #1457
Comments
Hi @xxkennyxu, thanks for writing in. This seems to be a limitation on the lang server integration with VS Code. If this project add all possible module names into If you need a more intelligent code editor, one great option would be PyCharm IDE: https://www.jetbrains.com/pycharm/ I've been a PyCharm user for a long time, and it does not have the issue you mentioned here. PyCharm Professional requires a paid license, but when you don't use it for work, the community edition (free) is also available. I hope this helps. |
Hi Kaz! As a heavy user of VS Code, I wanted to jump in and provide a bit of info. First, let me just say I’m not a fan of the The problem stems from the fact that Python doesn't have keywords like I recently saw redundant imports in dilib if you want to see an example. All that being said, adding and maintaining all the appropriate redundant imports would still be significant! |
I can't think of any projects where I've seen both redundant imports and |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
I'm trying to import classes defined in the SDK but for some reason it won't suggest imports beyond:
WebClient
WebhookClient
The imports I am looking for are
SlackResponse
, any of the Block classes (SectionBlock
, ...) . If I manually import them they work fine and if I runpip list
,slack-sdk
shows up correctly.Any ideas?
The Slack SDK version
slack-bolt==1.18.1
slack-sdk==3.26.1
slack-webhook==1.0.3
Python runtime version
Python 3.8.13
ProductName: macOS
ProductVersion: 13.1
BuildVersion: 22C65
Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
Steps to reproduce:
Expected result:
I'd expect the SectionBlock suggestion to show up.
Actual result:
See previous screenshots
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: