slackapi / slackapi/python-slack-sdk
VSCode (with jedi) can't suggest imports beyond base level of package
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4k
- Forks
- 857
- Avg merge
- 22h 21m
- Merged PRs (30d)
- 16
Description
I'm trying to import classes defined in the SDK but for some reason it won't suggest imports beyond:
WebClientWebhookClient
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 run pip 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the import suggestions in VSCode with Jedi using the listed Python and Slack SDK versions, checking whether WebClient and WebhookClient appear while SlackResponse and SectionBlock do not. Inspect the package import structure and Jedi's resolution behavior; done when the cause is identified and the expected suggestions work or the issue is narrowed to Jedi.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100