Irony server is not installing
Attempting to install the irony server through M-x irony-install server returns the following
-*- mode: compilation; default-directory: "/tmp/build-irony-server-1.3.1/" -*-
Compilation started at Sun Sep 1 21:51:00
cmake -DCMAKE_INSTALL_PREFIX\=/home/kaetahr/.emacs.d/irony/ /home/kaetahr/.emacs.d/elpa/irony-20190703.1732/server && cmake --build . --use-stderr --config Release --target install
CMake Error: The source "/home/kaetahr/.emacs.d/elpa/irony-20190703.1732/server/CMakeLists.txt" does not match the source "/home/kaetahr/.emacs.d/elpa/irony-20190125.1234/server/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
Compilation exited abnormally with code 1 at Sun Sep 1 21:51:00
Running
sudo cmake -DCMAKE_INSTALL_REFIX\=/home/kaetahr/.emacs.d/irony/ /home/kaetahr/.emacs.d/elpa/irony-20190703.1732/server && cmake --build . --use-stderr --config Release --target install
manually ultimately returns
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_INSTALL_REFIX
-- Build files have been written to: /home/kaetahr/Documents/Uni/Estructura/partial_1/hw_3
Scanning dependencies of target irony-server
CMake Error: Cannot open file for write: /home/kaetahr/Documents/Uni/Estructura/partial_1/hw_3/src/CMakeFiles/irony-server.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
gmake[2]: *** [src/CMakeFiles/irony-server.dir/build.make:187: src/CMakeFiles/irony-server.dir/depend] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:1052: src/CMakeFiles/irony-server.dir/all] Error 2
gmake: *** [Makefile:141: all] Error 2
My Cmake version is 3.14.6 My emacs version is 26.2
Not sure if it helps, but I'm running Gentoo Linux.
does it work better if you rm -r /tmp/build-irony-server-1.3.1/, and then try the install again?
does it work better if you
rm -r /tmp/build-irony-server-1.3.1/, and then try the install again?
Yes, thank you very much. Apparently the error occurred when another user installed the irony server on their user, and the files in /tmp had not been deleted yet.
Right, maybe the temporary folder should be created per-user.
Right, maybe the temporary folder should be created per-user.
+1. While I don't imagine Windows or MacOS implement $XDG_CACHE_HOME (usually $HOME/.cache/name-of-application) that's the location I'd generally expect to be used, and AFAIK ~/.emacs.d wouldn't be the right place.
@Sarcasm, it would also be nice to see this issue resolved in the next tagged version ;-)