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

Building Ada Language Server #1134

Closed jarmilaticha closed 1 year ago

jarmilaticha commented 1 year ago

Hello. I'm trying to build an ada language server on my computer. Would it be possible to advise what I am doing wrong? or what exact structure do I need? It is currently throwing me this error. ada_error

Thank you

reznikmm commented 1 year ago

ALS has a lot of dependencies. I would suggest you to use Alire to fetch and build them. The community index has a crate for ALS. If you need more recent ALS version then you can try my dedicated ALS Alire index.

https://github.com/reznikmm/als-alire-index/

jarmilaticha commented 1 year ago

I use your alire. I started alr build, see picture. but still nothing happened, should I put it somewhere else? alr_build now build in linux. then I would like to build it on Windows

jarmilaticha commented 1 year ago

I found the log here. can you give me a description so I should proceed? Thank you image

reznikmm commented 1 year ago

On Linux:

jarmilaticha commented 1 year ago

Thank you. build he asked. is there any other way to transform the build into *.exe format?

jarmilaticha commented 1 year ago

Thank you. FIle *.exe format I found. in the Make file it says to appear on this path cp -f $(ALS)$(EXE) integration/vscode/ada/$(PLATFORM). why doesn't it appear there?

jarmilaticha commented 1 year ago

Thank you. it is ok. please close ticket @reznikmm

reznikmm commented 1 year ago

Alire builds project by calling gprbuild <PROJECT_FILE> and doesn't use make and Makefile. You can try to run alr exec bash and run make under that shell.