AdaCore / ada_language_server

Server implementing the Microsoft Language Protocol for Ada and SPARK
GNU General Public License v3.0
226 stars 54 forks source link

noob question: support for multiple .gpr? #1065

Closed gantsevdenis closed 1 year ago

gantsevdenis commented 1 year ago

Hi there, I would like to know how I should organize my project to support multiple sub-project with each their own .gpr files. Is this even possible? For example: https://github.com/flyx/OpenGLAda has 5 different child-projects, each depending on opengl.

This is just an example: if you tell me I should organize differently, no problem: I just would love to have auto-completion in my tests, when with-ing the parent project

godunko commented 1 year ago

Ada Language Server doesn't restrict use of project files to some patterns. Any hierarchy of the project files are supported.

However, Ada Language Server (as well as GNAT Studio) requires to have single top level project. Such root project can depends from any number of other projects.

OpenGLAda provides good example of quite complex use of features of project files, you can use it as an example.