René's URL Explorer Experiment


Title: IndexError in signature.py on textDocument/signatureHelp · Issue #459 · palantir/python-language-server · GitHub

Open Graph Title: IndexError in signature.py on textDocument/signatureHelp · Issue #459 · palantir/python-language-server

X Title: IndexError in signature.py on textDocument/signatureHelp · Issue #459 · palantir/python-language-server

Description: I'm using pyls via coc.nvim, and when it attempts to grab the signature of a class method, it's throwing an IndexError on this line: python-language-server/pyls/plugins/signature.py Line 24 in d7fb817 'label': s.docstring().splitlines()[...

Open Graph Description: I'm using pyls via coc.nvim, and when it attempts to grab the signature of a class method, it's throwing an IndexError on this line: python-language-server/pyls/plugins/signature.py Line 24 in d7fb...

X Description: I'm using pyls via coc.nvim, and when it attempts to grab the signature of a class method, it's throwing an IndexError on this line: python-language-server/pyls/plugins/signature.py Line 24...

Opengraph URL: https://github.com/palantir/python-language-server/issues/459

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IndexError in signature.py on textDocument/signatureHelp","articleBody":"I'm using pyls via [coc.nvim](https://github.com/neoclide/coc.nvim), and when it attempts to grab the signature of a class method, it's throwing an IndexError on this line:\r\n\r\nhttps://github.com/palantir/python-language-server/blob/d7fb817e8f992bd5c6a287f5afb5e999a1e29449/pyls/plugins/signature.py#L24\r\n\r\nIt looks like in this case `s.docstring()` is somehow not returning a string, which causes `splitlines()` to not return an array, and `[0]` causes the error.\r\n\r\nThis was easy to mitigate by just catching that error and returning returning `.splitlines()` without the index, but I wanted to flag it here in case your team might have a better idea for why/when that wouldn't return an array, and what the right way to mitigate it is.\r\n\r\n![image](https://user-images.githubusercontent.com/1016999/49701095-c0f90e00-fbb5-11e8-9868-1e1131a4f45c.png)\r\n","author":{"url":"https://github.com/mike-hearn","@type":"Person","name":"mike-hearn"},"datePublished":"2018-12-09T18:30:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/459/python-language-server/issues/459"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:eb95be69-48ac-f323-9519-aaf5bfc0e3f4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE494:1E1EE3:6CB3FF5:953F99E:6A5EA383
html-safe-nonceda2e21d4616c8ef1ed8ad96e6602d7134463c225c86250249bac479ad21c0a82
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDk0OjFFMUVFMzo2Q0IzRkY1Ojk1M0Y5OUU6NkE1RUEzODMiLCJ2aXNpdG9yX2lkIjoiODE2NjU1Nzk5NTAxMjg5MTUyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd4fa68ad19b01b411b2ffcd9625f1a4febed4f73f7696648b190335b62c598d0
hovercard-subject-tagissue:389050090
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/palantir/python-language-server/459/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c6e14a93ed38ca98585021240df5df64228f62573b7f919bd500bfbc417e204b/palantir/python-language-server/issues/459
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c6e14a93ed38ca98585021240df5df64228f62573b7f919bd500bfbc417e204b/palantir/python-language-server/issues/459
og:image:altI'm using pyls via coc.nvim, and when it attempts to grab the signature of a class method, it's throwing an IndexError on this line: python-language-server/pyls/plugins/signature.py Line 24 in d7fb...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemike-hearn
hostnamegithub.com
expected-hostnamegithub.com
None7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d
turbo-cache-controlno-preview
go-importgithub.com/palantir/python-language-server git https://github.com/palantir/python-language-server.git
octolytics-dimension-user_id303157
octolytics-dimension-user_loginpalantir
octolytics-dimension-repository_id78797564
octolytics-dimension-repository_nwopalantir/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id78797564
octolytics-dimension-repository_network_root_nwopalantir/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
release2d2ac9bdd71d5f53f2b731c9330677e38624e301
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/palantir/python-language-server/issues/459#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpalantir%2Fpython-language-server%2Fissues%2F459
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpalantir%2Fpython-language-server%2Fissues%2F459
Sign up https://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=palantir%2Fpython-language-server
Reloadhttps://github.com/palantir/python-language-server/issues/459
Reloadhttps://github.com/palantir/python-language-server/issues/459
Reloadhttps://github.com/palantir/python-language-server/issues/459
Please reload this pagehttps://github.com/palantir/python-language-server/issues/459
palantir https://github.com/palantir
python-language-serverhttps://github.com/palantir/python-language-server
Notifications https://github.com/login?return_to=%2Fpalantir%2Fpython-language-server
Fork 290 https://github.com/login?return_to=%2Fpalantir%2Fpython-language-server
Star 2.7k https://github.com/login?return_to=%2Fpalantir%2Fpython-language-server
Code https://github.com/palantir/python-language-server
Issues 160 https://github.com/palantir/python-language-server/issues
Pull requests 27 https://github.com/palantir/python-language-server/pulls
Actions https://github.com/palantir/python-language-server/actions
Security and quality 0 https://github.com/palantir/python-language-server/security
Insights https://github.com/palantir/python-language-server/pulse
Code https://github.com/palantir/python-language-server
Issues https://github.com/palantir/python-language-server/issues
Pull requests https://github.com/palantir/python-language-server/pulls
Actions https://github.com/palantir/python-language-server/actions
Security and quality https://github.com/palantir/python-language-server/security
Insights https://github.com/palantir/python-language-server/pulse
IndexError in signature.py on textDocument/signatureHelphttps://github.com/palantir/python-language-server/issues/459#top
https://github.com/mike-hearn
mike-hearnhttps://github.com/mike-hearn
on Dec 9, 2018https://github.com/palantir/python-language-server/issues/459#issue-389050090
coc.nvimhttps://github.com/neoclide/coc.nvim
python-language-server/pyls/plugins/signature.pyhttps://github.com/palantir/python-language-server/blob/d7fb817e8f992bd5c6a287f5afb5e999a1e29449/pyls/plugins/signature.py#L24
d7fb817https://github.com/palantir/python-language-server/commit/d7fb817e8f992bd5c6a287f5afb5e999a1e29449
https://user-images.githubusercontent.com/1016999/49701095-c0f90e00-fbb5-11e8-9868-1e1131a4f45c.png
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.