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

Language server goto definition issue #1274

Closed
@OutOfFocus4

Description

@OutOfFocus4

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%

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions