【求助】irony-mode更新后在windows下无法正常工作

之前还能正常工作,今天升级插件之后就突然出现了

irony-server-error complete-error “failed to perform code completion”

的错误

.clang_complete文件也有,irony-server之前工作正常

环境:

win102004,内部版本19041.572

emacs-26.2-x86_64

相关插件:company,company-irony,irony

试试开启 toggle debug on error

toggle-debug-on-error的结果如下

 Debugger entered--Lisp error: (irony-server-error complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9)
  signal(irony-server-error (complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9))
  irony-iotask-result-get(#s(irony-iotask-result :-tag error :-value nil :-error irony-server-error :-error-data (complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9)))
  #f(compiled-function (candidates-result) #<bytecode 0x431b849>)(#s(irony-iotask-result :-tag error :-value nil :-error irony-server-error :-error-data (complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9)))
  irony-iotask-ectx-call-callback(#s(irony-iotask-ectx :started t :packaged-task #s(irony-iotask-packaged-task :task (:start (lambda (file line column compile-options) (apply (function irony--server-send-command) "complete" file line column "--" compile-options)) :update irony--server-command-update) :args ("e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9 ("-x" "c++" "-working-directory" "e:/2017gdgzoi61/" "-DDEBUG" "-I \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\include\\\\c++\" \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\include\\\\c++\\\\x86_64-w64-mingw32\" \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\include\\\\c++\\\\backward\" \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\include\" \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\..\\\\..\\\\..\\\\..\\\\include\" \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\include-fixed\" \"C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\..\\\\lib\\\\gcc\\\\x86_64-w64-mingw32\\\\4.9.2\\\\..\\\\..\\\\..\\\\..\\\\x86_64-w64-mingw32\\\\include\"")) :result #s(irony-iotask-result :-tag error :-value nil :-error irony-server-error :-error-data (complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9)) :plist nil :continuation #s(irony-iotask-packaged-task :task (:start (lambda (prefix style) (irony--server-send-command "candidates" prefix (cl-case style ... ... ...))) :update irony--server-query-update) :args ("" exact) :result #s(irony-iotask-result :-tag nil :-value nil :-error nil :-error-data nil) :plist nil :continuation nil)) :callback #f(compiled-function (candidates-result) #<bytecode 0x431b849>) :schedule-buffer #<buffer kruskal重构树-Graph and Queries.cpp>) #s(irony-iotask-result :-tag error :-value nil :-error irony-server-error :-error-data (complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 12 9)))
  irony-iotask--check-result(#<process Irony>)
  irony-iotask-process-filter(#<process Irony> "(error . (complete-error \"failed to perform code completion\" \"e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp\" 12 9))\n\n;;EOT\n")
  sleep-for(0.03)
  company--force-sync(company-call-backend-raw (candidates "") (company-irony company-gtags))
  company-call-backend(candidates "")
  company--fetch-candidates("")
  company-calculate-candidates("" nil)
  company--begin-new()
  company--perform()
  company-auto-begin()
  company-manual-begin()
  company-complete()
  funcall-interactively(company-complete)
  call-interactively(company-complete nil nil)
  command-execute(company-complete)

当我在~/.emacs.d/irony/bin 下执行 >irony-server.exe complete “e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp” 80 10时输出如下:

execute: Command{action=Command::Complete, file='e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp', unsavedFile='', dir='', line=80, column=10, prefix='', caseStyle='exact', flags=[], opt=off}
(error . (complete-error "failed to perform code completion" "e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp" 80 10))

;;EOT
error: libclang couldn't parse 'e:/2017gdgzoi61/kruskal重构树-Graph and Queries.cpp'

但我在e:/2017gdgzoi61下是有文件.clang_complete的

现在它变得玄学

现在暂时用之前备份的配置,还可以正常工作

真的不知道出了什么问题(