Using CodeLite to build and debug Ada code?

General questions regarding the usage of CodeLite
neildarlow
CodeLite Enthusiast
Posts: 16
Joined: Wed Oct 31, 2018 2:16 pm
Genuine User: Yes
IDE Question: C++
Location: United Kingdom
Contact:

Using CodeLite to build and debug Ada code?

Post by neildarlow »

Hi,

I've been using CodeLite comfortably to build and debug C++ code. For another project I would like to use the GNU GNAT Ada tool suite.

Is this feasible, and if so, would I be better using a Makefile-based project or could I integrate the GNAT tools into the IDE settings. Actually, GNAT has an associated build tool called gprbuild which can manage all build stages of an Ada application.

I'm inclined to experiment and see what happens but any suggestions will be gratefully received. Yes, I know of AdaCore's GPS but I prefer CodeLite.

Regards,
Neil Darlow
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Using CodeLite to build and debug Ada code?

Post by eranif »

Hi Neil,
You could use the 'File System workspace' to work with Ada.
This type of workspace provide you a complete control on what to run and how to compile. ( I am not sure which version of CodeLite you are using)
You will need to add syntax highlight (IIRC, this is not supported atm)
For code completion, I guess that you can probably utilize CodeLite's Language Server Protocol plugin - which can hooks to any LSP.
Quick google showed this:
https://github.com/AdaCore/ada_language_server

For more information:
https://wiki.codelite.org/pmwiki.php/Ma ... uageServer
https://wiki.codelite.org/pmwiki.php/Ma ... mWorkspace

Eran
Make sure you have read the HOW TO POST thread
Post Reply