# Gnat Studio on Linux "Go To Declaration" doesn't always navigate to the right line

**URL:** https://forum.ada-lang.io/t/gnat-studio-on-linux-go-to-declaration-doesnt-always-navigate-to-the-right-line/4543
**Category:** General
**Created:** [July 3, 2026, 11:34am UTC](https://forum.ada-lang.io/t/gnat-studio-on-linux-go-to-declaration-doesnt-always-navigate-to-the-right-line/4543 "2026-07-03T11:34:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kevlar700](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/kevlar700/32/40_2.png) [@kevlar700](https://forum.ada-lang.io/u/kevlar700)
#### Post date: [July 3, 2026, 11:34am UTC](https://forum.ada-lang.io/t/gnat-studio-on-linux-go-to-declaration-doesnt-always-navigate-to-the-right-line/4543/1 "2026-07-03T11:34:50Z")

</div>

A percentage of the time “Go To Declaration” doesn’t actually land on the type but somewhere else in the file. A quick back and try again seems to work. Can anyone confirm that it’s the same for them?

---

<div class="post-metadata">

### Author: ![bjorn-lundin](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/bjorn-lundin/32/106_2.png) [@bjorn-lundin](https://forum.ada-lang.io/u/bjorn-lundin)
#### Post date: [July 3, 2026, 12:36pm UTC](https://forum.ada-lang.io/t/gnat-studio-on-linux-go-to-declaration-doesnt-always-navigate-to-the-right-line/4543/2 "2026-07-03T12:36:07Z")

</div>

what version?

I’ve seen it move to correct line, but that line being below visible area. but scrolling down 10 lines or so reveals it is on correct line. this is 2026.1 on rocky 8

---

<div class="post-metadata">

### Author: ![kevlar700](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/kevlar700/32/40_2.png) [@kevlar700](https://forum.ada-lang.io/u/kevlar700)
#### Post date: [July 3, 2026, 1:51pm UTC](https://forum.ada-lang.io/t/gnat-studio-on-linux-go-to-declaration-doesnt-always-navigate-to-the-right-line/4543/3 "2026-07-03T13:51:29Z")

</div>

Yes, you’re right. In fact instead of going back and trying again you can also just use an arrow key to correct the window focus. I’m using 2026.2 but I believe it is a long standing minor issue. If it’s just the focus and line number is right then it’s likely to be inconsequential too.
