René's URL Explorer Experiment


Title: Symbols returned with wrong kind. · Issue #1 · microsoft/python-language-server · GitHub

Open Graph Title: Symbols returned with wrong kind. · Issue #1 · microsoft/python-language-server

X Title: Symbols returned with wrong kind. · Issue #1 · microsoft/python-language-server

Description: In the VS Code Python extension we are sending a textDocument/documentSymbol request and using the result to position code lenses. The data we get back is mostly correct. However, the "kind" (i.e. VS Code's SymbolKind) is consistently of...

Open Graph Description: In the VS Code Python extension we are sending a textDocument/documentSymbol request and using the result to position code lenses. The data we get back is mostly correct. However, the "kind" (i.e. ...

X Description: In the VS Code Python extension we are sending a textDocument/documentSymbol request and using the result to position code lenses. The data we get back is mostly correct. However, the "kind&qu...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Symbols returned with wrong kind.","articleBody":"In the VS Code Python extension we are sending a `textDocument/documentSymbol` request and using the result to position code lenses.  The data we get back is mostly correct.  However, the \"kind\" (i.e. VS Code's [SymbolKind](https://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind)) is consistently off by one.  For example, using the following Python code:\r\n\r\n```python\r\nimport unittest\r\n\r\nclass SpamTests(unittest.TestCase):\r\n    def test_all(self):\r\n        self.assertTrue(False)\r\n```\r\nI got the following JSON response from the language server (formatted for clarity):\r\n\r\n```json\r\n[{\r\n    \"name\":\"SpamTests\",\r\n    \"detail\":\"SpamTests\",\r\n    \"kind\":5,\r\n    \"deprecated\":false,\r\n    \"range\":{\r\n        \"start\":{\"line\":2,\"character\":6},\r\n        \"end\":{\"line\":2,\"character\":15}\r\n    },\r\n    \"selectionRange\":{\r\n        \"start\":{\"line\":2,\"character\":6},\r\n        \"end\":{\"line\":2,\"character\":15}\r\n    },\r\n    \"children\":[{\r\n        \"name\":\"test_all\",\r\n        \"detail\":\"test_all\",\r\n        \"kind\":12,\r\n        \"deprecated\":false,\r\n        \"range\":{\r\n            \"start\":{\"line\":3,\"character\":4},\r\n            \"end\":{\"line\":4,\"character\":30}\r\n         },\r\n         \"selectionRange\":{\r\n             \"start\":{\"line\":3,\"character\":4},\r\n             \"end\":{\"line\":4,\"character\":30}\r\n         },\r\n         \"children\":[{\r\n             \"name\":\"self\",\r\n             \"detail\":\"self\",\r\n             \"kind\":13,\r\n             \"deprecated\":false,\r\n             \"range\":{\r\n                 \"start\":{\"line\":3,\"character\":17},\r\n                 \"end\":{\"line\":3,\"character\":21}\r\n             },\r\n             \"selectionRange\":{\r\n                 \"start\":{\"line\":3,\"character\":17},\r\n                 \"end\":{\"line\":3,\"character\":21}\r\n             },\r\n            \"children\":[],\r\n            \"_functionKind\":\"\"\r\n        }],\r\n        \"_functionKind\":\"function\"\r\n    },\r\n    {\r\n        \"name\":\"assertTrue\",\r\n        \"detail\":\"assertTrue\",\r\n        \"kind\":13,\r\n        \"deprecated\":false,\r\n        \"range\":{\r\n            \"start\":{\"line\":0,\"character\":0},\r\n            \"end\":{\"line\":0,\"character\":0}\r\n        },\r\n        \"selectionRange\":{\r\n            \"start\":{\"line\":0,\"character\":0},\r\n            \"end\":{\"line\":0,\"character\":0}\r\n        },\r\n        \"children\":[],\r\n        \"_functionKind\":\"\"\r\n    }],\r\n    \"_functionKind\":\"class\"\r\n}]\r\n```\r\n\r\nEach of the `\"kind\"` fields is 1 more than it should be:\r\n\r\n`SpamTests` -> 5; should be 4 ([`SymbolKind.Class`](https://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind))\r\n`test_all` -> 12; should be 11 ([`SymbolKind.Function`](https://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind))\r\n`self` -> 13; should be 12 ([`SymbolKind.Variable`](https://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind))\r\n`assertTrue` -> 13; should be 12 ([`SymbolKind.Variable`](https://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind))\r\n\r\nFWIW, the Jedi-related code in the Python extension gets it right.","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2018-08-30T21:13:14Z","url":"https://github.com/microsoft/python-language-server/issues/1"}

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:7d2675a6-43ff-3f65-4cd6-fbc834fb79a6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAB0C:262F52:A9DC83:DD6429:6AFE802B
html-safe-nonce3f8b3633bb2370982a2ced4d122632ef429c7668917b668b6c5e920336cf58d8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjBDOjI2MkY1MjpBOURDODM6REQ2NDI5OjZBRkU4MDJCIiwidmlzaXRvcl9pZCI6IjM2MzQ0NDEzNzgyNDAyOTkwNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca8ebb3c32e75cfddc3f089dd9bcd5ab88a23272bdd456402623d5a5abd454ea1
hovercard-subject-tagissue:355756478
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/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8df773f0bfbfb76a4b63629964c8c0c65b2fe5aa91f5ad07dc792384b5274d6b/microsoft/python-language-server/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8df773f0bfbfb76a4b63629964c8c0c65b2fe5aa91f5ad07dc792384b5274d6b/microsoft/python-language-server/issues/1
og:image:altIn the VS Code Python extension we are sending a textDocument/documentSymbol request and using the result to position code lenses. The data we get back is mostly correct. However, the "kind" (i.e. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1
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%2F1
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/1
Reloadhttps://github.com/microsoft/python-language-server/issues/1
Reloadhttps://github.com/microsoft/python-language-server/issues/1
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
Symbols returned with wrong kind.https://github.com/microsoft/python-language-server/issues/1#top
https://github.com/ericsnowcurrently
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Aug 30, 2018https://github.com/microsoft/python-language-server/issues/1#issue-355756478
SymbolKindhttps://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind
SymbolKind.Classhttps://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind
SymbolKind.Functionhttps://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind
SymbolKind.Variablehttps://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind
SymbolKind.Variablehttps://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Aug 30, 2018https://github.com/microsoft/python-language-server/issues/1#issuecomment-417473040
https://microsoft.github.io/language-server-protocol/specificationhttps://microsoft.github.io/language-server-protocol/specification
https://github.com/ericsnowcurrently
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Aug 30, 2018https://github.com/microsoft/python-language-server/issues/1#issuecomment-417479606
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 30, 2018https://github.com/microsoft/python-language-server/issues/1#event-1819332213
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Aug 30, 2018https://github.com/microsoft/python-language-server/issues/1#issuecomment-417481500
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1#event-2638101658
Lint on no method argument, no self argument, no cls argument (#1510)https://github.com/microsoft/python-language-server/commit/3ccb213bbf4278720e59e6ef0efe8cb8be77fd37
#1510https://github.com/microsoft/python-language-server/pull/1510
3ccb213https://github.com/microsoft/python-language-server/commit/3ccb213bbf4278720e59e6ef0efe8cb8be77fd37
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1
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.