Error from Gnatcoll_sql_conf.gpr restricts GNAT studio features

I’m having a Gnatcoll_sql dependency in a project using GNAT Studio 2026.2 and Alire.
Upon GNAT Studio startup, I’m getting errors:

gnatcoll_postgres_conf.gpr 29:4 value “Production” is illegal for typed string “Build”

Each of the packages shows the error:

1:1 No project tree currently loaded: some features might be imprecise (e.g: Find All References) or not available (e.g: Rename).

Line 29 in gnatcoll_postgres_conf.gpr is:

Build : Build_Type := External (“BUILD”, “PROD”);

So there seems to be a problem here. Is there any way to fix or work around this issue? While this doesn’t affect compiling and running Ada code, it is quite annoying as some GNAT studio features are not available.

It seems that somewhere in your setup you are passing “Production” instead of “PROD”. Search for “Production” in your project (with grep: grep -Ri production in your project root folder). Or search for “BUILD”. Since “PROD” is the default, you should not need to set “BUILD”, it will just be picked by default.

In alire/alire.lock I see:

XMLADA_BUILD_MODE = [
“distrib”,
“Debug”,
“Production”,
“profile”,
“coverage”,
“nochecks”,
]

So this seems to come from Xmlada? Xmlada 25.0 is one of the (indirect) dependencies.

Maybe it uses the same external variable and then gets picked up by gnatcoll? You would need to check that.