You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
It seems that on Windows, at least when running Emacs/CMake within MSYS2, the flycheck-clang-* options fail to be set (They're all nil) because of issues with mixed path separators. The idb hash table contains keys using \\ separators, whereas the variable file-name in the function cide--idb-file-to-obj uses / separators.
As a quick-n-dirty solution for now, I've just put in a regex replace in that function and all seems to be working.
(defuncide--idb-file-to-obj (idbfile-name)
"Get object from IDB for FILE-NAME."
(car (gethash (replace-regexp-in-string"/""\\" file-name tt) idb)))
CMake ide version: 20180713.1513
Emacs version: 26.1 (From the mingw-w64-x86_64-emacs package from MSYS2)
Pile of configs courtesy of Spacemacs
Value of cmake-ide-cmake-opts: "-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
The text was updated successfully, but these errors were encountered:
CraftedCart
changed the title
Issues with path separators
Issues with path separators on Windows
Sep 17, 2018
Hello
It seems that on Windows, at least when running Emacs/CMake within MSYS2, the
flycheck-clang-*
options fail to be set (They're allnil
) because of issues with mixed path separators. Theidb
hash table contains keys using\\
separators, whereas the variablefile-name
in the functioncide--idb-file-to-obj
uses/
separators.As a quick-n-dirty solution for now, I've just put in a regex replace in that function and all seems to be working.
CMake ide version: 20180713.1513
Emacs version: 26.1 (From the mingw-w64-x86_64-emacs package from MSYS2)
Pile of configs courtesy of Spacemacs
Value of
cmake-ide-cmake-opts
:"-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
The text was updated successfully, but these errors were encountered: