Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Language server goto definition issue #1274

Closed
OutOfFocus4 opened this issue Jul 3, 2019 · 1 comment
Closed

Language server goto definition issue #1274

OutOfFocus4 opened this issue Jul 3, 2019 · 1 comment
Assignees
Labels
bug Something isn't working feature: references

Comments

@OutOfFocus4
Copy link

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)

Right-click on assertRaises and select 'Go to Definition'. A message will appear saying "No definition found for 'assertRaises'".

I have attached the output from the language server.

langserver_output.log

This issue does not occur when using jedi. I also encountered this issue using Visual Studio Code on MacOS.

Extension version: 2019.6.22090
VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:27:31.086Z)
OS version: Linux x64 4.15.0-54-generic snap

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz (4 x 2061)
GPU Status 2d_canvas: disabled_software
checker_imaging: disabled_off
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
surface_synchronization: disabled_off
video_decode: disabled_software
webgl: disabled_off
webgl2: disabled_off
Load (avg) 2, 2, 1
Memory (System) 7.68GB (3.01GB free)
Process Argv
Screen Reader no
VM 0%
@brettcannon brettcannon transferred this issue from microsoft/vscode-python Jul 3, 2019
@MikhailArkhipov MikhailArkhipov self-assigned this Sep 6, 2019
@MikhailArkhipov MikhailArkhipov added bug Something isn't working feature: references labels Sep 6, 2019
@MikhailArkhipov MikhailArkhipov added this to the September 2019.1 milestone Sep 10, 2019
@MikhailArkhipov
Copy link

MikhailArkhipov commented Sep 16, 2019

#1482. 0.4.16+

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: references
Projects
None yet
Development

No branches or pull requests

2 participants