René's URL Explorer Experiment


Title: CompletionItemKind of 0 (None) causes language server clients to fail · Issue #1531 · microsoft/python-language-server · GitHub

Open Graph Title: CompletionItemKind of 0 (None) causes language server clients to fail · Issue #1531 · microsoft/python-language-server

X Title: CompletionItemKind of 0 (None) causes language server clients to fail · Issue #1531 · microsoft/python-language-server

Description: Environment data Language Server version: master branch (last compiled on 51b2532ddc0161aecadda182b33f1b15ed6093b0 OS and version: MacOS 10.14.6 Python version (& distribution if applicable, e.g. Anaconda): 3.7.4 Expected behaviour Pytho...

Open Graph Description: Environment data Language Server version: master branch (last compiled on 51b2532ddc0161aecadda182b33f1b15ed6093b0 OS and version: MacOS 10.14.6 Python version (& distribution if applicable, e.g. A...

X Description: Environment data Language Server version: master branch (last compiled on 51b2532ddc0161aecadda182b33f1b15ed6093b0 OS and version: MacOS 10.14.6 Python version (& distribution if applicable, e....

Opengraph URL: https://github.com/microsoft/python-language-server/issues/1531

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CompletionItemKind of 0 (None) causes language server clients to fail","articleBody":"\u003c!-- \r\nRead the guidelines for filing an issue first. \r\n\r\nhttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue\r\n-->\r\n\r\n## Environment data\r\n\u003c!--\r\nTo find your version: \r\n\r\nSelect \"View: Toggle Output\" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select \"Python\" in the dropdown on the right (\"Python Language Server\" if running Insiders build of VS Code). Look for the line Microsoft Python Language Server version X in the console.\r\n-->\r\n\r\n- Language Server version: `master` branch (last compiled on `51b2532ddc0161aecadda182b33f1b15ed6093b0`\r\n- OS and version: MacOS 10.14.6\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.7.4\r\n\r\n## Expected behaviour\r\n\r\nPython Language Server emits valid completion items.\r\n\r\n## Actual behaviour\r\n\r\nPython Language Server emits completion items with `kind` value of `0` as described in https://github.com/autozimu/LanguageClient-neovim/issues/633#issuecomment-515240338\r\n\r\nZero is not a valid `CompletionItemKind` according to the Language Server specification\r\nhttps://microsoft.github.io/language-server-protocol/specification\r\n\r\n>```\r\n>/**\r\n> * The kind of a completion entry.\r\n> */\r\n>namespace CompletionItemKind {\r\n>\texport const Text = 1;\r\n>\texport const Method = 2;\r\n>\texport const Function = 3;\r\n>\texport const Constructor = 4;\r\n>\texport const Field = 5;\r\n>\texport const Variable = 6;\r\n>\texport const Class = 7;\r\n>\texport const Interface = 8;\r\n>\texport const Module = 9;\r\n>\texport const Property = 10;\r\n>\texport const Unit = 11;\r\n>\texport const Value = 12;\r\n>\texport const Enum = 13;\r\n>\texport const Keyword = 14;\r\n>\texport const Snippet = 15;\r\n>\texport const Color = 16;\r\n>\texport const File = 17;\r\n>\texport const Reference = 18;\r\n>\texport const Folder = 19;\r\n>\texport const EnumMember = 20;\r\n>\texport const Constant = 21;\r\n>\texport const Struct = 22;\r\n>\texport const Event = 23;\r\n>\texport const Operator = 24;\r\n>\texport const TypeParameter = 25;\r\n>}\r\n>```\r\n\r\nThe result of Python Language Server emitting completion items with `\"kind\":0` breaks completion for language clients, like LanguageClient-neovim, that are set up to handle the Language Client spec.\r\n\r\n## Logs\r\n\r\nN/A\r\n\r\n## Code Snippet / Additional lnformation\r\n\r\n\u003c!--\r\nNote: If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\nThe example I gave in https://github.com/autozimu/LanguageClient-neovim/issues/633#issuecomment-515240338 was\r\n\r\n```python\r\nimport logging\r\n\r\nlogging.getLogge\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/gotgenes","@type":"Person","name":"gotgenes"},"datePublished":"2019-09-10T03:43:01Z","url":"https://github.com/microsoft/python-language-server/issues/1531"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8713ce9b-3eaa-762b-12f5-5804fbb73205
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC28:37D9F:350764:47C058:6AFE526C
html-safe-nonce6406871516a3f0a8a4956a5e13aa4009be41c64ee33ff9604b62766592ba7328
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzI4OjM3RDlGOjM1MDc2NDo0N0MwNTg6NkFGRTUyNkMiLCJ2aXNpdG9yX2lkIjoiNzYyOTk5NjYyMDI5MTk3OTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb36c5d7417c41de1dd3ddc29c0fb14a7937da7167bcbc10504ce0004623c08d5
hovercard-subject-tagissue:491433029
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1531/issue_layout
twitter:imagehttps://opengraph.githubassets.com/85418a79a1a7a914389d044a9b10f8c01feb3765dd6a464b8f4eae7a0dc5111c/microsoft/python-language-server/issues/1531
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85418a79a1a7a914389d044a9b10f8c01feb3765dd6a464b8f4eae7a0dc5111c/microsoft/python-language-server/issues/1531
og:image:altEnvironment data Language Server version: master branch (last compiled on 51b2532ddc0161aecadda182b33f1b15ed6093b0 OS and version: MacOS 10.14.6 Python version (& distribution if applicable, e.g. A...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegotgenes
hostnamegithub.com
expected-hostnamegithub.com
None3ad2b58e42f481583284b895305360b61b0223636c9dde6d696b575347163a26
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8df44dbe1c8091b38c3e0165c05a1e5c1563762e
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1531#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1531
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1531
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/1531
Reloadhttps://github.com/microsoft/python-language-server/issues/1531
Reloadhttps://github.com/microsoft/python-language-server/issues/1531
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
#1482https://github.com/microsoft/python-language-server/pull/1482
CompletionItemKind of 0 (None) causes language server clients to failhttps://github.com/microsoft/python-language-server/issues/1531#top
#1482https://github.com/microsoft/python-language-server/pull/1482
https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
protocolLSP compliancehttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22protocol%22
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
https://github.com/gotgenes
Chris Lasher (gotgenes)https://github.com/gotgenes
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issue-491433029
autozimu/LanguageClient-neovim#633 (comment)https://github.com/autozimu/LanguageClient-neovim/issues/633#issuecomment-515240338
https://microsoft.github.io/language-server-protocol/specificationhttps://microsoft.github.io/language-server-protocol/specification
autozimu/LanguageClient-neovim#633 (comment)https://github.com/autozimu/LanguageClient-neovim/issues/633#issuecomment-515240338
Jake Bailey (jakebailey)https://github.com/jakebailey
protocolLSP compliancehttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22protocol%22
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2620895461
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530024229
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530026778
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530027403
https://github.com/microsoft/vscode-languageserver-node/blob/5532367a530c4e8bea957fb10a09493468571ac4/client/src/protocolConverter.ts#L358-L364https://github.com/microsoft/vscode-languageserver-node/blob/5532367a530c4e8bea957fb10a09493468571ac4/client/src/protocolConverter.ts#L358-L364
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530029738
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2623107575
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2623107815
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2623108114
https://github.com/gotgenes
Chris Lasher (gotgenes)https://github.com/gotgenes
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530132078
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530137458
#1482https://github.com/microsoft/python-language-server/pull/1482
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530138609
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 10, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-530138627
https://github.com/gotgenes
Chris Lasher (gotgenes)https://github.com/gotgenes
on Sep 14, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-531444420
LanguageClient-neovimhttps://github.com/autozimu/LanguageClient-neovim/
lsp-typeshttps://crates.io/crates/lsp-types
has Option for the kind propertyhttps://docs.rs/lsp-types/0.60.0/lsp_types/struct.CompletionItem.html#structfield.kind
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 14, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-531451963
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 14, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2633966374
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 14, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2633966396
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1482https://github.com/microsoft/python-language-server/pull/1482
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1531#event-2637627158
https://github.com/gotgenes
Chris Lasher (gotgenes)https://github.com/gotgenes
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-531959522
8e3289c#diff-d1348423ac842b3fb8e33aaafe1b10dehttps://github.com/microsoft/python-language-server/commit/8e3289c45f2d45a9ba851cc6bf91e1cca9a8948f#diff-d1348423ac842b3fb8e33aaafe1b10de
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1531#issuecomment-531959753
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1531
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1531
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
protocolLSP compliancehttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22protocol%22
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.