What is the PATH for the ada_language_server binary in FreeBSD?

I’m trying a text editor called “Kate”. I have a warning in a bottom window:

[12:54:48 PATH Info] /usr/local/gnat12/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/user/bin

[13:04:46 LSP Client Warning] Failed to find server binary: ada_language_server

Please check your PATH for the binary

See also https://github.com/AdaCore/ada_language_server for installation or details

What is the PATH for the ada_language_server binary in FreeBSD?

Add it to your ~/bin? :slight_smile:

EDIT: Also, make sure it’s executable.

Where did you unpack it?

I checked and found the gnat12 and gprbuild packages installed. I looked in the directories and did not see anything that seemed associated with the ada_language_server. I see only the /usr/local/gnat12/bin that seems to have everything. I’m new to FreeBSD and also Ada and don’t know if I had to install ada_language_server or if it is automatically installed. If I have to install it, can you send me a link with the exact package? I know how to set the path.

The ada_language_server is its own program and needs to be installed separately, it does not come with the compiler nor the builder (gprbuild). Also, it seems you installed a fairly old compiler (v12), there are much newer ones. Check this thread with updated information: GitHub - hodong-kim/gcc15-ada: This port is unofficial and maintained separately from the FreeBSD Ports Collection. It is based on modifications to `/usr/ports/lang/gcc15` to enable Ada support. On top of this, I would also recommend you check out Full Ada programming toolchain now on FreeBSD | The FreeBSD Forums Here you can find a compiled version of Alire for FreeBSD, which is the package manager for Ada programs and you should be able to easily install the language server using it.

Best regards,
Fer

1 Like

Thank you all so far for the replies. Before I posted here, I tried the hodong-kim/gcc15-ada build and it did not go well for me. Alire is also not working. I get a .toml error when I try any command as well. When I tried just the gnatmake or gprbuild commands, all works until the linker step. This gives me an error involving the /ld directory. My version of FreeBSD (GhostBSD) will update on the 16th of this month to FreeBSD 15. I have a spare computer and will try to build a main stream FreeBSD and try that. If that does not work, I’ll try NetBSD. Thanks for the help so far!

1 Like