# Setting up the Ada Language Server in VIM

**URL:** <https://forum.ada-lang.io/t/setting-up-the-ada-language-server-in-vim/1861>\
**Category:** General\
**Created:** [March 6, 2025, 10:59am UTC](https://forum.ada-lang.io/t/setting-up-the-ada-language-server-in-vim/1861 "2025-03-06T10:59:50Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![fatso83](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/fatso83/32/624_2.png) [@fatso83](https://forum.ada-lang.io/u/fatso83)\
**Post date:** [March 10, 2025, 1:18pm UTC](https://forum.ada-lang.io/t/setting-up-the-ada-language-server-in-vim/1861/9 "2025-03-10T13:18:08Z")

</div>

@mgrojo Thanks for the tutorial link. Since I was not using VS Code, I did not follow the tutorial, although that does not seem to matter all that much. I looked through the steps, and I could see nothing relevant there that I did not already do. Basically, all it says is to make sure the GNAT tooling is available on the PATH. Which it is:

```ada
❯ which gprbuild ; which gcc
/opt/gprbuild-x86_64-linux-24.0.0-2/bin/gprbuild
/opt/gnat-x86_64-linux-14.2.0-1/bin/gcc

```

I did make one interesting find, though: the Ada Language Server in Ubuntu _is working_, but only in parts of the source tree?!

For instance, trying a rename of `Do_Something` in [testsuite/ada\_lsp/completion.invisible.insert\_with\_clause.renamed\_units/bar.ads](https://github.com/AdaCore/ada_language_server/blob/5fa261b0f4904293bd096b89d4cc5b1f0cee1b46/testsuite/ada_lsp/completion.invisible.insert_with_clause.renamed_units/bar.ads) will fail with the above error about ` raised CONSTRAINT_ERROR : gpr2-project-tree.ads:501 access check failed`, but renaming in [source/ada/lsp-search.adb](https://github.com/AdaCore/ada_language_server/blob/5fa261b0f4904293bd096b89d4cc5b1f0cee1b46/source/ada/lsp-search.adb) works fine.

Even stranger is that both of these files work fine (-ish - loads of other errors) with ALS on my macOS , using the same setup?! I have even compared `pwd` output to see if this mattered, but even when identical I still have issues with the files in `testsuite/**`.

@nerd_type That’s pretty much [my config](https://github.com/fatso83/dotfiles/blob/afde07c02458c5048786fcba0a546b540e96b58d/common-setup/vim/dotvim/coc-settings.json#L19) already 🙂

---

_[View the full topic](https://forum.ada-lang.io/t/setting-up-the-ada-language-server-in-vim/1861)._
