Sarcasm / irony-mode

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

error from irony-server-install after upgrading #243

Open ghost opened 9 years ago

ghost commented 9 years ago
cmake -DCMAKE_INSTALL_PREFIX\=~/.emacs.d/irony/ ~.emacs.d/elpa/irony-20151016.1420/server
 && cmake --build . --use-stderr --config Release --target install
CMake Error: The source "~/.emacs.d/elpa/irony-20151016.1420/server/CMakeLists.txt" does not 
match the source "~/.emacs.d/elpa/irony-20150831.144/server/CMakeLists.txt" used to generate
cache.  Re-run cmake with a different source directory.
Sarcasm commented 9 years ago

Hum I see,

I guess irony-install-server should be implemented differently, I'm wondering if there is a way to get the elpa version string easily.

Right now I create a build dir like this:

                        (file-name-as-directory (format "build-irony-server-%s" (irony-version)))

We would need irony-elpa-version or something like this.

Anyway, the fix is just to remove the build directory in /tmp.

ghost commented 9 years ago

Repro:

I don't know how the cache file got there after the install (I didn't try to build manually), but that was the problem.

Sarcasm commented 9 years ago

That's really weird, the MELPA package looks fine, will see if someone comes up with the same issue but I don't see how this can happen, except by editing the command in irony-install-server.

jojojames commented 8 years ago

Didn't delve too much into this but I reproduced by.

irony-server-install package-list-packages restart emacs irony-install-server -> errors out since cache directory is still there.

Sarcasm commented 8 years ago

Reopening.

Deanseo commented 5 years ago

I can confirm that this issue is still on-going.