Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
901 stars 98 forks source link

Irony CDB: error in compilation database (irony-server is broken with status 127) #535

Open ueberschall opened 5 years ago

ueberschall commented 5 years ago

Hello together,

I want to use Irony as completion backend for my daily C++-editing. I have configured the Irony package in my Emacs config according to the Readme. However as soon as I open an C++ file and enter irony mode I get the following error message:

Irony CDB: error in compilation database: (irony-server-error "irony-server is broken! /home/zufall/.emacs.d/irony/bin/irony-server exited with status 127")

I checked the value of of the 'irony-cdb-json--project-alist' variable. It refers to the correct directory and the correct json file. Also when I start irony-server via shell it works.

So what could be the reason that in Emacs it doesn't works.

Best regards

sakopzon commented 4 years ago

make sure cmake executable path is correct. M-x customize RET search for cmake