anaconda
anaconda copied to clipboard
Jump to symbol jumps to import before jumping to actual declaration
Expected Behaviour
When I use jump to symbol, I want to see the actual declaration of the object, instead of seeing the import line first.
Actual Behaviour
It jumps to the import line first. It only jumps to the actual definition on the second 'jump to symbol' command, hence screwing up my jump history.
Steps to Reproduce
ctrl-shift-g on any import use in a file.
ST3, Anaconda and OS versions
latest-greatest st3-dev on linux
ST3 Console Logs
First jump, to the import line:
INFO:root:client requests: goto
Received method: goto, handler: jedi
<class 'handlers.jedi_handler.JediHandler'> handler retrieved from registry
{'success': True, 'result': [('booking.utils.seats.Seater', '/home/karolyi/Work/stoertebeker/ticketshop/backend/ticketshop/booking/api/v1/views/base.py', 17, 29)], 'uid': 'be6be97dd1b841a0ae320d4de1c3838b'}
About push back to ST3: b'{"success": true, "result": [["booking.utils.seats.Seater", "/home/karolyi/Work/stoertebeker/ticketshop/backend/ticketshop/booking/api/v1/views/base.py", 17, 29]], "uid": "be6be97dd1b841a0ae320d4de1c3838b"}\r\n'
INFO:root:About push back to ST3: b'{"success": true, "result": [["booking.utils.seats.Seater", "/home/karolyi/Work/stoertebeker/ticketshop/backend/ticketshop/booking/api/v1/views/base.py", 17, 29]], "uid": "be6be97dd1b841a0ae320d4de1c3838b"}\r\n'
Second jump, to the actual definition:
INFO:root:client requests: goto
Received method: goto, handler: jedi
<class 'handlers.jedi_handler.JediHandler'> handler retrieved from registry
{'success': True, 'result': [('booking.utils.seats.Seater', '/home/karolyi/Work/stoertebeker/ticketshop/backend/ticketshop/booking/utils/seats.py', 138, 7)], 'uid': '85760fe643c247989d6ae42da2d61745'}
About push back to ST3: b'{"success": true, "result": [["booking.utils.seats.Seater", "/home/karolyi/Work/stoertebeker/ticketshop/backend/ticketshop/booking/utils/seats.py", 138, 7]], "uid": "85760fe643c247989d6ae42da2d61745"}\r\n'
INFO:root:About push back to ST3: b'{"success": true, "result": [["booking.utils.seats.Seater", "/home/karolyi/Work/stoertebeker/ticketshop/backend/ticketshop/booking/utils/seats.py", 138, 7]], "uid": "85760fe643c247989d6ae42da2d61745"}\r\n'
INFO:root:client requests: lint
Received method: lint, handler: python_linter
<class 'handlers.python_lint_handler.PythonLintHandler'> handler retrieved from registry
{'success': True, 'errors': [], 'uid': 'fe5c246c9fb54ced8440fca2d8846ddd', 'vid': 34}
About push back to ST3: b'{"success": true, "errors": [], "uid": "fe5c246c9fb54ced8440fca2d8846ddd", "vid": 34}\r\n'
INFO:root:About push back to ST3: b'{"success": true, "errors": [], "uid": "fe5c246c9fb54ced8440fca2d8846ddd", "vid": 34}\r\n'
Same issue here. Together with #768 makes the goto experience broken and unreliable.