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

Issues with path separators on Windows #178

Open
CraftedCart opened this issue Sep 17, 2018 · 1 comment
Open

Issues with path separators on Windows #178

CraftedCart opened this issue Sep 17, 2018 · 1 comment

Comments

@CraftedCart
Copy link

CraftedCart commented 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 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.

(defun cide--idb-file-to-obj (idb file-name)
  "Get object from IDB for FILE-NAME."
  (car (gethash (replace-regexp-in-string "/" "\\" file-name t t) 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++"

@CraftedCart CraftedCart changed the title Issues with path separators Issues with path separators on Windows Sep 17, 2018
@atilaneves
Copy link
Owner

I can't reproduce this since it would involve me setting up MSYS2.

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

No branches or pull requests

2 participants