Open ramsayleung opened 6 years ago
Have you added the location to your "libclang.dll" into the %PATH% variable?
i have the same problem: ")) (:temp-file "d:/Personal/Temp/irony-unsaved-qEjeeK" :buffer-state #s(irony--buffer-state "d:/dev/temp/Cpp-Demo-Project-For-Emacs-master/Cpp-Demo-Project-For-Emacs-master/src/main.cpp" t t 51)) #s(irony-iotask-packaged-task (:start (lambda (file line column compile-options) (apply #'irony--server-send-command "complete" file line column "--" compile-options)) :update irony--server-command-update) ("d:/dev/temp/Cpp-Demo-Project-For-Emacs-master/Cpp-Demo-Project-For-Emacs-master/src/main.cpp" 8 3 ("-x" "c++")) #s(irony-iotask-result nil nil nil nil) nil #s(irony-iotask-packaged-task (:start (lambda (prefix style) (irony--server-send-command "candidates" prefix (cl-case style (case-insensitive "case-insensitive") (smart-case "smart-case") (t "exact")))) :update irony--server-query-update) ("h" exact) #s(irony-iotask-result nil nil nil nil) nil nil))) "(error . (file-read-error \"failed to read unsaved buffer\" \"d:/dev/temp/Cpp-Demo-Project-For-Emacs-master/Cpp-Demo-Project-For-Emacs-master/src/main.cpp\" \"d:/Personal/Temp/irony-unsaved-qEjeeK \")
and with M-x shell i run the irony-server --version ,it's ok: irony-server --version irony-server version 1.4.0 clang version 12.0.0
the libclang.dll is in the path variable.
finally, i solve the problem: it's the msys2 environment which causes the issue. i install the irony-server by hand step 1,entering msys2 shell ,make sure the /mingw64/bin in the very beginning of the $PATH, use "echo $PATH" to check ,and "export PATH=/mingw64/bin:$PATH" to set it. step 2,downlod irony source from github, unzip it, then enter irony's server directory,"mkdir build",then "cd build" step 3,"/usr/bin/cmake .." step 4,install irony-server by hand by using this methon ,the binary irony-server.exe is different to M-x irony-install-server's build, and with the latter , it fails on runtime.
Hey Guillaume, I have read wiki page and I have successfully installed irony-server, but I could not get it work as expected
emacs-version
:irony-server --version
output:this is error message:
the value of
PATH
environment value:output of
which clang
:my configuration about
irony-mode
:I have tried my best to fix this error, but get nothing, Could you help me out :) ?