Title: Language server goto definition issue · Issue #1274 · microsoft/python-language-server · GitHub
Open Graph Title: Language server goto definition issue · Issue #1274 · microsoft/python-language-server
X Title: Language server goto definition issue · Issue #1274 · microsoft/python-language-server
Description: Issue Type: Bug Create a Python file with the following code: from django.test import TestCase class MyTestCase(TestCase): def test_example(self): with self.assertRaises(ZeroDivisionError): value = 1 / 0 self.assertNotEqual(value, 1) Rig...
Open Graph Description: Issue Type: Bug Create a Python file with the following code: from django.test import TestCase class MyTestCase(TestCase): def test_example(self): with self.assertRaises(ZeroDivisionError): value =...
X Description: Issue Type: Bug Create a Python file with the following code: from django.test import TestCase class MyTestCase(TestCase): def test_example(self): with self.assertRaises(ZeroDivisionError): value =...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1274
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Language server goto definition issue","articleBody":"Issue Type: \u003cb>Bug\u003c/b>\r\n\r\nCreate a Python file with the following code:\r\n\r\n```python\r\nfrom django.test import TestCase\r\n\r\n\r\nclass MyTestCase(TestCase):\r\n\tdef test_example(self):\r\n\t\twith self.assertRaises(ZeroDivisionError):\r\n\t\t\tvalue = 1 / 0\r\n\t\tself.assertNotEqual(value, 1)\r\n```\r\n\r\nRight-click on `assertRaises` and select 'Go to Definition'. A message will appear saying \"No definition found for 'assertRaises'\".\r\n\r\nI have attached the output from the language server.\r\n\r\n[langserver_output.log](https://github.com/microsoft/vscode-python/files/3355169/langserver_output.log)\r\n\r\nThis issue does not occur when using jedi. I also encountered this issue using Visual Studio Code on MacOS.\r\n\r\nExtension version: 2019.6.22090\r\nVS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:27:31.086Z)\r\nOS version: Linux x64 4.15.0-54-generic snap\r\n\r\n\u003cdetails>\r\n\u003csummary>System Info\u003c/summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz (4 x 2061)|\r\n|GPU Status|2d_canvas: disabled_software\u003cbr>checker_imaging: disabled_off\u003cbr>flash_3d: disabled_software\u003cbr>flash_stage3d: disabled_software\u003cbr>flash_stage3d_baseline: disabled_software\u003cbr>gpu_compositing: disabled_software\u003cbr>multiple_raster_threads: disabled_off\u003cbr>native_gpu_memory_buffers: disabled_software\u003cbr>rasterization: disabled_software\u003cbr>surface_synchronization: disabled_off\u003cbr>video_decode: disabled_software\u003cbr>webgl: disabled_off\u003cbr>webgl2: disabled_off|\r\n|Load (avg)|2, 2, 1|\r\n|Memory (System)|7.68GB (3.01GB free)|\r\n|Process Argv||\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\u003c/details>\r\n\u003c!-- generated by issue reporter -->","author":{"url":"https://github.com/OutOfFocus4","@type":"Person","name":"OutOfFocus4"},"datePublished":"2019-07-03T13:33:14Z","url":"https://github.com/microsoft/python-language-server/issues/1274"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f2609429-11cf-0950-26ff-88d0c84d9c13 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5F0:2D7C1E:368950:499FA4:6AFE5312 |
| html-safe-nonce | 745efd664e1d7cdbeeed43e8f578f699528db51bf7f0e42650fc422032a5e6f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUYwOjJEN0MxRTozNjg5NTA6NDk5RkE0OjZBRkU1MzEyIiwidmlzaXRvcl9pZCI6IjI3ODgwMTM4MjUxMTcyNzg5OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2ae0589ec9d872ae6a7c07aac042b4cb816ada74617278533274183ab61c594c |
| hovercard-subject-tag | issue:463875352 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1274/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c580b85f929a8c33d3c022b75b99a37bfe555352ced508210a5545c44e87404a/microsoft/python-language-server/issues/1274 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c580b85f929a8c33d3c022b75b99a37bfe555352ced508210a5545c44e87404a/microsoft/python-language-server/issues/1274 |
| og:image:alt | Issue Type: Bug Create a Python file with the following code: from django.test import TestCase class MyTestCase(TestCase): def test_example(self): with self.assertRaises(ZeroDivisionError): value =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OutOfFocus4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ad2b58e42f481583284b895305360b61b0223636c9dde6d696b575347163a26 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8df44dbe1c8091b38c3e0165c05a1e5c1563762e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width