From 0159b1cf7f0314448be0e87cb7db6fbc48b5a01a Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 12 Oct 2018 23:04:12 +0300 Subject: [PATCH] Fixed an issue with broken includes when generating ``.clang_complete`` and space is used in path // Issue #1873 --- HISTORY.rst | 4 ++++ platformio/ide/tpls/atom/.clang_complete.tpl | 4 ++-- platformio/ide/tpls/emacs/.clang_complete.tpl | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 37e9edd5..0e692fe1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -26,6 +26,10 @@ PlatformIO 3.0 * Fixed an issue when ``pio run -t monitor`` always uses first ``monitor_port`` even with multiple environments (`issue #1841 `_) +* Fixed an issue with broken includes when generating ``.clang_complete`` and + space is used in path + (`issue #1873 `_) + 3.6.0 (2018-08-06) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/ide/tpls/atom/.clang_complete.tpl b/platformio/ide/tpls/atom/.clang_complete.tpl index bc09ec0d..c00763c8 100644 --- a/platformio/ide/tpls/atom/.clang_complete.tpl +++ b/platformio/ide/tpls/atom/.clang_complete.tpl @@ -1,6 +1,6 @@ % for include in includes: --I{{include}} +-I"{{include}}" % end % for define in defines: -D{{!define}} -% end \ No newline at end of file +% end diff --git a/platformio/ide/tpls/emacs/.clang_complete.tpl b/platformio/ide/tpls/emacs/.clang_complete.tpl index bc09ec0d..c00763c8 100644 --- a/platformio/ide/tpls/emacs/.clang_complete.tpl +++ b/platformio/ide/tpls/emacs/.clang_complete.tpl @@ -1,6 +1,6 @@ % for include in includes: --I{{include}} +-I"{{include}}" % end % for define in defines: -D{{!define}} -% end \ No newline at end of file +% end