Right-click Go to Definition goes to a bad scroll position
I use the following Builder version:
3.33.3-21-g6513765c1
flatpak-nightly
Steps to reproduce the problem:
- Clone latest mesa from https://gitlab.freedesktop.org/mesa/mesa
- Start Builder
- Open the mesa folder
- Use the following meson configuration:
-Ddri-drivers= -Dgallium-drivers=radeonsi,swrast,iris -Dvulkan-drivers=intel,amd -Dgallium-nine=true -Dosmesa=gallium -Dtools=nir -Dbuildtype=debug
- Build the project
- Open
src/gallium/drivers/iris/iris_state.c
- Scroll down to the
upload_sysvals
function (line 2553 as of now) - Right click on the
iris_context
in the function argument list - Click Go to Definition
Expected outcome:
It should open iris_context.h
and scroll so that struct iris_context {
will be near the center of the editor.
Actual outcome:
Either of these two things will happen (I assume depending on whether it managed to index the file or not yet)
- It opens
iris_context.h
but it is scrolled to the very top (ie. it does not actually go to the definition), or - It opens
iris_context.h
and scrolls in such a way thatstruct iris_context {
is the very last line in the editor