Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irony server is not installing #547

Open
KaeTahr opened this issue Sep 2, 2019 · 5 comments
Open

Irony server is not installing #547

KaeTahr opened this issue Sep 2, 2019 · 5 comments

Comments

@KaeTahr
Copy link

KaeTahr commented Sep 2, 2019

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.

@Sarcasm
Copy link
Owner

Sarcasm commented Sep 2, 2019

does it work better if you rm -r /tmp/build-irony-server-1.3.1/, and then try the install again?

@KaeTahr
Copy link
Author

KaeTahr commented Sep 2, 2019

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.

@Sarcasm
Copy link
Owner

Sarcasm commented Sep 2, 2019

Right, maybe the temporary folder should be created per-user.

@sten0
Copy link
Contributor

sten0 commented Sep 10, 2019

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.

@KaeTahr KaeTahr closed this as completed Oct 31, 2019
@KaeTahr KaeTahr reopened this Oct 31, 2019
@sten0
Copy link
Contributor

sten0 commented Jun 4, 2021

@Sarcasm, it would also be nice to see this issue resolved in the next tagged version ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants