slackapi / slackapi/python-slack-sdk
VSCode (with jedi) can't suggest imports beyond base level of package
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 4k
- Forks
- 857
- Ø Merge
- 22 Std. 21 Min.
- Gemergte PRs (30 T.)
- 16
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Importvorschläge in VSCode mit Jedi unter Verwendung der aufgeführten Python- und Slack SDK-Versionen zu reproduzieren, und prüfe, ob WebClient und WebhookClient erscheinen, während SlackResponse und SectionBlock nicht erscheinen. Untersuche die Importstruktur des Pakets und Jedis Auflösungsverhalten; abgeschlossen, wenn die Ursache identifiziert ist und die erwarteten Vorschläge funktionieren oder das Problem auf Jedi eingegrenzt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100