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

Windows can't detect the include folder from the CMakeLists.txt file #758

Open
dortamiguel opened this issue Sep 23, 2021 · 5 comments
Open

Comments

@dortamiguel
Copy link

dortamiguel commented Sep 23, 2021

Create minimal example if you can

  • Add an include folder to CMakeLists.txt like this include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
  • Go to a source file that imports a header from the include folder
  • In macos will work just fine but windows will not find it

System info:

  • Sublime Text version: 4113
  • Which system are you on: Windows 10
  • Clang version:
clang version 12.0.1
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/mingw64/bin

What happens:

So detecting headers from CMakeLists.txt with include_directories will not work on Windows. The program compiles fine in the terminal so it must be a configuration issue.

In the end I made it work adding this to the plugin settings:

  "common_flags" : [
    "-isystem include",
  ],

Though I mac I don't need to do this

[ECC:DEBUG]:[settings_storage.py]:[need_reparse]:[MainThread]: settings complete
[ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[MainThread]: no settings for view 25. Reinitializing.
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[MainThread]: Overriding settings by project ones if needed:
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[MainThread]: Valid prefixes: ['ecc_', 'easy_clang_complete_']
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[MainThread]: Reading settings...
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[MainThread]: Settings sucessfully read...
[ECC:INFO]:[clang_utils.py]:[get_clang_version_str]:[MainThread]: Getting version from command: `clang++ -v`
[ECC:DEBUG]:[settings_storage.py]:[__populate_common_flags]:[MainThread]: Populating common_flags with current variables.
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '/usr/include' to '\usr\include'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '$project_base_path/src' to '['C:\\Users\\miguel\\src\\prototype\\src']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '/usr/lib/clang/$clang_version/include' to '\usr\lib\clang\12.0.1\include'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '$file_path' to '['C:\\Users\\miguel\\src\\prototype\\src']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '~/some_folder/*' to '['C:\\Users\\miguel\\some_folder\\*']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '/some/absolute/file.ext' to '['\\some\\absolute\\file.ext']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '$project_base_path/some/project/path/*' to '['C:\\Users\\miguel\\src\\prototype\\some\\project\\path\\*']'
[ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[MainThread]: settings initialized for view: 25
[ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[MainThread]: on_activated_async view id 25
[ECC:DEBUG]:[view_config_manager.py]:[load_for_view]:[Thread-8]: Generate new config for path: 25
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-8]: init completer based on libclang
[ECC:DEBUG]:[lib_complete.py]:[__init__]:[Thread-8]: using bundled cindex: EasyClangComplete.plugin.clang.cindex50
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: Platform: Windows, ('64bit', 'WindowsPE')
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: Python version: 3.3.6
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: User provided libclang_path: '<some_path_here>'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: Searching for: 'libclang.dll'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: Generating search folder
[ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[Dummy-4]: on_activated_async view id 25
[ECC:DEBUG]:[thread_pool.py]:[new_job]:[Dummy-4]: Cannot cancel job: 'job: 'Updating translation unit''
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: Libclang search output = 'C:/msys64/mingw64/bin/clang'
[ECC:DEBUG]:[clang_utils.py]:[dir_from_output]:[Thread-8]: Real output: C:/msys64/mingw64/bin/clang
[ECC:DEBUG]:[clang_utils.py]:[dir_from_output]:[Thread-8]: Architecture: ('64bit', 'WindowsPE')
[ECC:DEBUG]:[clang_utils.py]:[dir_from_output]:[Thread-8]: Folder to search: C:/msys64/mingw64/bin/clang\..
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-8]: Checking path: C:\msys64\mingw64\bin\libclang.dll
[ECC:INFO]:[clang_utils.py]:[find_libclang]:[Thread-8]: Found libclang library file: 'C:\msys64\mingw64\bin\libclang.dll'
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-8]: Folder c:\users\miguel\appdata\local\temp\EasyClangComplete exists.
[ECC:DEBUG]:[compiler_builtins.py]:[__init__]:[Thread-8]: Generating default flags from file 'ECC_temp_file.cpp' in folder 'c:\users\miguel\appdata\local\temp\EasyClangComplete'
[ECC:DEBUG]:[compiler_builtins.py]:[__generate_flags]:[Thread-8]: Generating new default flags with cmd: '['clang++', '-x', 'c++', '-std=c++11', '-c', 'ECC_temp_file.cpp', '-dM', '-v', '-E']'
[ECC:DEBUG]:[compiler_builtins.py]:[get_defines]:[Thread-8]: Got defines: ['-D_WIN32=1', '-D_WIN64=1', '-D__ATOMIC_ACQUIRE=2', '-D__ATOMIC_ACQ_REL=4', '-D__ATOMIC_CONSUME=1', '-D__ATOMIC_RELAXED=0', '-D__ATOMIC_RELEASE=3', '-D__ATOMIC_SEQ_CST=5', '-D__BIGGEST_ALIGNMENT__=16', '-D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__', '-D__CHAR16_TYPE__=unsigned short', '-D__CHAR32_TYPE__=unsigned int', '-D__CHAR_BIT__=8', '-D__CLANG_ATOMIC_BOOL_LOCK_FREE=2', '-D__CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2', '-D__CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2', '-D__CLANG_ATOMIC_CHAR_LOCK_FREE=2', '-D__CLANG_ATOMIC_INT_LOCK_FREE=2', '-D__CLANG_ATOMIC_LLONG_LOCK_FREE=2', '-D__CLANG_ATOMIC_LONG_LOCK_FREE=2', '-D__CLANG_ATOMIC_POINTER_LOCK_FREE=2', '-D__CLANG_ATOMIC_SHORT_LOCK_FREE=2', '-D__CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2', '-D__CONSTANT_CFSTRINGS__=1', '-D__DBL_DECIMAL_DIG__=17', '-D__DBL_DENORM_MIN__=4.9406564584124654e-324', '-D__DBL_DIG__=15', '-D__DBL_EPSILON__=2.2204460492503131e-16', '-D__DBL_HAS_DENORM__=1', '-D__DBL_HAS_INFINITY__=1', '-D__DBL_HAS_QUIET_NAN__=1', '-D__DBL_MANT_DIG__=53', '-D__DBL_MAX_10_EXP__=308', '-D__DBL_MAX_EXP__=1024', '-D__DBL_MAX__=1.7976931348623157e+308', '-D__DBL_MIN_10_EXP__=(-307)', '-D__DBL_MIN_EXP__=(-1021)', '-D__DBL_MIN__=2.2250738585072014e-308', '-D__DECIMAL_DIG__=__LDBL_DECIMAL_DIG__', '-D__DEPRECATED=1', '-D__EXCEPTIONS=1', '-D__FINITE_MATH_ONLY__=0', '-D__FLT_DECIMAL_DIG__=9', '-D__FLT_DENORM_MIN__=1.40129846e-45F', '-D__FLT_DIG__=6', '-D__FLT_EPSILON__=1.19209290e-7F', '-D__FLT_EVAL_METHOD__=0', '-D__FLT_HAS_DENORM__=1', '-D__FLT_HAS_INFINITY__=1', '-D__FLT_HAS_QUIET_NAN__=1', '-D__FLT_MANT_DIG__=24', '-D__FLT_MAX_10_EXP__=38', '-D__FLT_MAX_EXP__=128', '-D__FLT_MAX__=3.40282347e+38F', '-D__FLT_MIN_10_EXP__=(-37)', '-D__FLT_MIN_EXP__=(-125)', '-D__FLT_MIN__=1.17549435e-38F', '-D__FLT_RADIX__=2', '-D__FXSR__=1', '-D__GCC_ASM_FLAG_OUTPUTS__=1', '-D__GCC_ATOMIC_BOOL_LOCK_FREE=2', '-D__GCC_ATOMIC_CHAR16_T_LOCK_FREE=2', '-D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2', '-D__GCC_ATOMIC_CHAR_LOCK_FREE=2', '-D__GCC_ATOMIC_INT_LOCK_FREE=2', '-D__GCC_ATOMIC_LLONG_LOCK_FREE=2', '-D__GCC_ATOMIC_LONG_LOCK_FREE=2', '-D__GCC_ATOMIC_POINTER_LOCK_FREE=2', '-D__GCC_ATOMIC_SHORT_LOCK_FREE=2', '-D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1', '-D__GCC_ATOMIC_WCHAR_T_LOCK_FREE=2', '-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1', '-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1', '-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1', '-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1', '-D__GNUC_GNU_INLINE__=1', '-D__GNUC_MINOR__=2', '-D__GNUC_PATCHLEVEL__=1', '-D__GNUC__=4', '-D__GNUG__=4', '-D__GXX_ABI_VERSION=1002', '-D__GXX_EXPERIMENTAL_CXX0X__=1', '-D__GXX_RTTI=1', '-D__GXX_WEAK__=1', '-D__INT16_C_SUFFIX__', '-D__INT16_FMTd__="hd"', '-D__INT16_FMTi__="hi"', '-D__INT16_MAX__=32767', '-D__INT16_TYPE__=short', '-D__INT32_C_SUFFIX__', '-D__INT32_FMTd__="d"', '-D__INT32_FMTi__="i"', '-D__INT32_MAX__=2147483647', '-D__INT32_TYPE__=int', '-D__INT64_C_SUFFIX__=LL', '-D__INT64_FMTd__="lld"', '-D__INT64_FMTi__="lli"', '-D__INT64_MAX__=9223372036854775807LL', '-D__INT64_TYPE__=long long int', '-D__INT8_C_SUFFIX__', '-D__INT8_FMTd__="hhd"', '-D__INT8_FMTi__="hhi"', '-D__INT8_MAX__=127', '-D__INT8_TYPE__=signed char', '-D__INTMAX_C_SUFFIX__=LL', '-D__INTMAX_FMTd__="lld"', '-D__INTMAX_FMTi__="lli"', '-D__INTMAX_MAX__=9223372036854775807LL', '-D__INTMAX_TYPE__=long long int', '-D__INTMAX_WIDTH__=64', '-D__INTPTR_FMTd__="lld"', '-D__INTPTR_FMTi__="lli"', '-D__INTPTR_MAX__=9223372036854775807LL', '-D__INTPTR_TYPE__=long long int', '-D__INTPTR_WIDTH__=64', '-D__INT_FAST16_FMTd__="hd"', '-D__INT_FAST16_FMTi__="hi"', '-D__INT_FAST16_MAX__=32767', '-D__INT_FAST16_TYPE__=short', '-D__INT_FAST32_FMTd__="d"', '-D__INT_FAST32_FMTi__="i"', '-D__INT_FAST32_MAX__=2147483647', '-D__INT_FAST32_TYPE__=int', '-D__INT_FAST64_FMTd__="lld"', '-D__INT_FAST64_FMTi__="lli"', '-D__INT_FAST64_MAX__=9223372036854775807LL', '-D__INT_FAST64_TYPE__=long long int', '-D__INT_FAST8_FMTd__="hhd"', '-D__INT_FAST8_FMTi__="hhi"', '-D__INT_FAST8_MAX__=127', '-D__INT_FAST8_TYPE__=signed char', '-D__INT_LEAST16_FMTd__="hd"', '-D__INT_LEAST16_FMTi__="hi"', '-D__INT_LEAST16_MAX__=32767', '-D__INT_LEAST16_TYPE__=short', '-D__INT_LEAST32_FMTd__="d"', '-D__INT_LEAST32_FMTi__="i"', '-D__INT_LEAST32_MAX__=2147483647', '-D__INT_LEAST32_TYPE__=int', '-D__INT_LEAST64_FMTd__="lld"', '-D__INT_LEAST64_FMTi__="lli"', '-D__INT_LEAST64_MAX__=9223372036854775807LL', '-D__INT_LEAST64_TYPE__=long long int', '-D__INT_LEAST8_FMTd__="hhd"', '-D__INT_LEAST8_FMTi__="hhi"', '-D__INT_LEAST8_MAX__=127', '-D__INT_LEAST8_TYPE__=signed char', '-D__INT_MAX__=2147483647', '-D__LDBL_DECIMAL_DIG__=21', '-D__LDBL_DENORM_MIN__=3.64519953188247460253e-4951L', '-D__LDBL_DIG__=18', '-D__LDBL_EPSILON__=1.08420217248550443401e-19L', '-D__LDBL_HAS_DENORM__=1', '-D__LDBL_HAS_INFINITY__=1', '-D__LDBL_HAS_QUIET_NAN__=1', '-D__LDBL_MANT_DIG__=64', '-D__LDBL_MAX_10_EXP__=4932', '-D__LDBL_MAX_EXP__=16384', '-D__LDBL_MAX__=1.18973149535723176502e+4932L', '-D__LDBL_MIN_10_EXP__=(-4931)', '-D__LDBL_MIN_EXP__=(-16381)', '-D__LDBL_MIN__=3.36210314311209350626e-4932L', '-D__LITTLE_ENDIAN__=1', '-D__LONG_LONG_MAX__=9223372036854775807LL', '-D__LONG_MAX__=2147483647L', '-D__MINGW32__=1', '-D__MINGW64__=1', '-D__MMX__=1', '-D__MSVCRT__=1', '-D__NO_INLINE__=1', '-D__NO_MATH_INLINES=1', '-D__OBJC_BOOL_IS_BOOL=0', '-D__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3', '-D__OPENCL_MEMORY_SCOPE_DEVICE=2', '-D__OPENCL_MEMORY_SCOPE_SUB_GROUP=4', '-D__OPENCL_MEMORY_SCOPE_WORK_GROUP=1', '-D__OPENCL_MEMORY_SCOPE_WORK_ITEM=0', '-D__ORDER_BIG_ENDIAN__=4321', '-D__ORDER_LITTLE_ENDIAN__=1234', '-D__ORDER_PDP_ENDIAN__=3412', '-D__PIC__=2', '-D__POINTER_WIDTH__=64', '-D__PRAGMA_REDEFINE_EXTNAME=1', '-D__PTRDIFF_FMTd__="lld"', '-D__PTRDIFF_FMTi__="lli"', '-D__PTRDIFF_MAX__=9223372036854775807LL', '-D__PTRDIFF_TYPE__=long long int', '-D__PTRDIFF_WIDTH__=64', '-D__REGISTER_PREFIX__', '-D__SCHAR_MAX__=127', '-D__SEG_FS=1', '-D__SEG_GS=1', '-D__SEH__=1', '-D__SHRT_MAX__=32767', '-D__SIG_ATOMIC_MAX__=2147483647', '-D__SIG_ATOMIC_WIDTH__=32', '-D__SIZEOF_DOUBLE__=8', '-D__SIZEOF_FLOAT128__=16', '-D__SIZEOF_FLOAT__=4', '-D__SIZEOF_INT128__=16', '-D__SIZEOF_INT__=4', '-D__SIZEOF_LONG_DOUBLE__=16', '-D__SIZEOF_LONG_LONG__=8', '-D__SIZEOF_LONG__=4', '-D__SIZEOF_POINTER__=8', '-D__SIZEOF_PTRDIFF_T__=8', '-D__SIZEOF_SHORT__=2', '-D__SIZEOF_SIZE_T__=8', '-D__SIZEOF_WCHAR_T__=2', '-D__SIZEOF_WINT_T__=2', '-D__SIZE_FMTX__="llX"', '-D__SIZE_FMTo__="llo"', '-D__SIZE_FMTu__="llu"', '-D__SIZE_FMTx__="llx"', '-D__SIZE_MAX__=18446744073709551615ULL', '-D__SIZE_TYPE__=long long unsigned int', '-D__SIZE_WIDTH__=64', '-D__SSE2_MATH__=1', '-D__SSE2__=1', '-D__SSE_MATH__=1', '-D__SSE__=1', '-D__STDCPP_DEFAULT_NEW_ALIGNMENT__=16ULL', '-D__STDCPP_THREADS__=1', '-D__STDC_HOSTED__=1', '-D__STDC_UTF_16__=1', '-D__STDC_UTF_32__=1', '-D__STDC__=1', '-D__STRICT_ANSI__=1', '-D__UINT16_C_SUFFIX__', '-D__UINT16_FMTX__="hX"', '-D__UINT16_FMTo__="ho"', '-D__UINT16_FMTu__="hu"', '-D__UINT16_FMTx__="hx"', '-D__UINT16_MAX__=65535', '-D__UINT16_TYPE__=unsigned short', '-D__UINT32_C_SUFFIX__=U', '-D__UINT32_FMTX__="X"', '-D__UINT32_FMTo__="o"', '-D__UINT32_FMTu__="u"', '-D__UINT32_FMTx__="x"', '-D__UINT32_MAX__=4294967295U', '-D__UINT32_TYPE__=unsigned int', '-D__UINT64_C_SUFFIX__=ULL', '-D__UINT64_FMTX__="llX"', '-D__UINT64_FMTo__="llo"', '-D__UINT64_FMTu__="llu"', '-D__UINT64_FMTx__="llx"', '-D__UINT64_MAX__=18446744073709551615ULL', '-D__UINT64_TYPE__=long long unsigned int', '-D__UINT8_C_SUFFIX__', '-D__UINT8_FMTX__="hhX"', '-D__UINT8_FMTo__="hho"', '-D__UINT8_FMTu__="hhu"', '-D__UINT8_FMTx__="hhx"', '-D__UINT8_MAX__=255', '-D__UINT8_TYPE__=unsigned char', '-D__UINTMAX_C_SUFFIX__=ULL', '-D__UINTMAX_FMTX__="llX"', '-D__UINTMAX_FMTo__="llo"', '-D__UINTMAX_FMTu__="llu"', '-D__UINTMAX_FMTx__="llx"', '-D__UINTMAX_MAX__=18446744073709551615ULL', '-D__UINTMAX_TYPE__=long long unsigned int', '-D__UINTMAX_WIDTH__=64', '-D__UINTPTR_FMTX__="llX"', '-D__UINTPTR_FMTo__="llo"', '-D__UINTPTR_FMTu__="llu"', '-D__UINTPTR_FMTx__="llx"', '-D__UINTPTR_MAX__=18446744073709551615ULL', '-D__UINTPTR_TYPE__=long long unsigned int', '-D__UINTPTR_WIDTH__=64', '-D__UINT_FAST16_FMTX__="hX"', '-D__UINT_FAST16_FMTo__="ho"', '-D__UINT_FAST16_FMTu__="hu"', '-D__UINT_FAST16_FMTx__="hx"', '-D__UINT_FAST16_MAX__=65535', '-D__UINT_FAST16_TYPE__=unsigned short', '-D__UINT_FAST32_FMTX__="X"', '-D__UINT_FAST32_FMTo__="o"', '-D__UINT_FAST32_FMTu__="u"', '-D__UINT_FAST32_FMTx__="x"', '-D__UINT_FAST32_MAX__=4294967295U', '-D__UINT_FAST32_TYPE__=unsigned int', '-D__UINT_FAST64_FMTX__="llX"', '-D__UINT_FAST64_FMTo__="llo"', '-D__UINT_FAST64_FMTu__="llu"', '-D__UINT_FAST64_FMTx__="llx"', '-D__UINT_FAST64_MAX__=18446744073709551615ULL', '-D__UINT_FAST64_TYPE__=long long unsigned int', '-D__UINT_FAST8_FMTX__="hhX"', '-D__UINT_FAST8_FMTo__="hho"', '-D__UINT_FAST8_FMTu__="hhu"', '-D__UINT_FAST8_FMTx__="hhx"', '-D__UINT_FAST8_MAX__=255', '-D__UINT_FAST8_TYPE__=unsigned char', '-D__UINT_LEAST16_FMTX__="hX"', '-D__UINT_LEAST16_FMTo__="ho"', '-D__UINT_LEAST16_FMTu__="hu"', '-D__UINT_LEAST16_FMTx__="hx"', '-D__UINT_LEAST16_MAX__=65535', '-D__UINT_LEAST16_TYPE__=unsigned short', '-D__UINT_LEAST32_FMTX__="X"', '-D__UINT_LEAST32_FMTo__="o"', '-D__UINT_LEAST32_FMTu__="u"', '-D__UINT_LEAST32_FMTx__="x"', '-D__UINT_LEAST32_MAX__=4294967295U', '-D__UINT_LEAST32_TYPE__=unsigned int', '-D__UINT_LEAST64_FMTX__="llX"', '-D__UINT_LEAST64_FMTo__="llo"', '-D__UINT_LEAST64_FMTu__="llu"', '-D__UINT_LEAST64_FMTx__="llx"', '-D__UINT_LEAST64_MAX__=18446744073709551615ULL', '-D__UINT_LEAST64_TYPE__=long long unsigned int', '-D__UINT_LEAST8_FMTX__="hhX"', '-D__UINT_LEAST8_FMTo__="hho"', '-D__UINT_LEAST8_FMTu__="hhu"', '-D__UINT_LEAST8_FMTx__="hhx"', '-D__UINT_LEAST8_MAX__=255', '-D__UINT_LEAST8_TYPE__=unsigned char', '-D__USER_LABEL_PREFIX__', '-D__VERSION__="Clang 12.0.1"', '-D__WCHAR_MAX__=65535', '-D__WCHAR_TYPE__=unsigned short', '-D__WCHAR_UNSIGNED__=1', '-D__WCHAR_WIDTH__=16', '-D__WIN32=1', '-D__WIN32__=1', '-D__WIN64=1', '-D__WIN64__=1', '-D__WINNT=1', '-D__WINNT__=1', '-D__WINT_MAX__=65535', '-D__WINT_TYPE__=unsigned short', '-D__WINT_UNSIGNED__=1', '-D__WINT_WIDTH__=16', '-D__amd64=1', '-D__amd64__=1', '-D__cdecl=__attribute__((__cdecl__))', '-D__clang__=1', '-D__clang_major__=12', '-D__clang_minor__=0', '-D__clang_patchlevel__=1', '-D__clang_version__="12.0.1 "', '-D__code_model_small__=1', '-D__cplusplus=201103L', '-D__cpp_alias_templates=200704L', '-D__cpp_attributes=200809L', '-D__cpp_constexpr=200704', '-D__cpp_constexpr_in_decltype=201711L', '-D__cpp_decltype=200707L', '-D__cpp_delegating_constructors=200604L', '-D__cpp_exceptions=199711L', '-D__cpp_impl_destroying_delete=201806L', '-D__cpp_inheriting_constructors=201511L', '-D__cpp_initializer_lists=200806L', '-D__cpp_lambdas=200907L', '-D__cpp_nsdmi=200809L', '-D__cpp_range_based_for=200907', '-D__cpp_raw_strings=200710L', '-D__cpp_ref_qualifiers=200710L', '-D__cpp_rtti=199711L', '-D__cpp_rvalue_references=200610L', '-D__cpp_static_assert=200410', '-D__cpp_threadsafe_static_init=200806L', '-D__cpp_unicode_characters=200704L', '-D__cpp_unicode_literals=200710L', '-D__cpp_user_defined_literals=200809L', '-D__cpp_variadic_templates=200704L', '-D__declspec(a)=__attribute__((a))', '-D__fastcall=__attribute__((__fastcall__))', '-D__k8=1', '-D__k8__=1', '-D__llvm__=1', '-D__pascal=__attribute__((__pascal__))', '-D__pic__=2', '-D__private_extern__=extern', '-D__seg_fs=__attribute__((address_space(257)))', '-D__seg_gs=__attribute__((address_space(256)))', '-D__stdcall=__attribute__((__stdcall__))', '-D__thiscall=__attribute__((__thiscall__))', '-D__tune_k8__=1', '-D__x86_64=1', '-D__x86_64__=1', '-D_cdecl=__attribute__((__cdecl__))', '-D_fastcall=__attribute__((__fastcall__))', '-D_pascal=__attribute__((__pascal__))', '-D_stdcall=__attribute__((__stdcall__))', '-D_thiscall=__attribute__((__thiscall__))']
[ECC:DEBUG]:[view_config.py]:[__get_default_flags]:[Thread-8]: Tokeninzing default flags
[ECC:DEBUG]:[flag.py]:[tokenize_list]:[Thread-8]: Tokenizing: ['-x', 'c++', '-std=c++11', '-IC:\\msys64\\mingw64\\include\\c++\\10.3.0', '-IC:\\msys64\\mingw64\\include\\c++\\10.3.0\\x86_64-w64-mingw32', '-IC:\\msys64\\mingw64\\include\\c++\\10.3.0\\backward', '-IC:\\msys64\\mingw64\\lib\\clang\\12.0.1\\include', '-IC:\\msys64\\mingw64\\x86_64-w64-mingw32\\include', '-IC:\\msys64\\mingw64\\include']
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Common
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Source
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[get]: for file C:\Users\miguel\src\prototype\src\app.cpp
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Searching 'CMakeLists.txt' file in: SearchScope: from_folder: C:\Users\miguel\src\prototype\src, to_folder: C:\\Users\\miguel\\src\\prototype
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Found 'CMakeLists.txt' file: C:\Users\miguel\src\prototype\CMakeLists.txt
[ECC:DEBUG]:[file.py]:[contains]:[Thread-8]: found needed line: 'project(prototype) # TODO: Update name'
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[current]: 'C:\Users\miguel\src\prototype\CMakeLists.txt'
[ECC:DEBUG]:[catkinizer.py]:[catkinize_if_needed]:[Thread-8]: Auto-catkinize supports only Linux currently.
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[generate new db]
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-8]: Folder c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa exists.
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-8]: Prefix paths to prepend: []
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-8]: Prepended prefix paths: 
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-8]: Updated CMAKE_PREFIX_PATH: 
[ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-8]:  running command: ['cmake', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-G', 'Unix Makefiles', '-DCMAKE_C_COMPILER=clang', '-DCMAKE_CXX_COMPILER=clang++', 'C:\\Users\\miguel\\src\\prototype']
[ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-8]: Cmake produced output: 
C:/Users/miguel/AppData/Local/Temp/EasyClangComplete/cmake_builds/37e7e4c24f9d960ae290142015aa82aa/shaders
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/miguel/AppData/Local/Temp/EasyClangComplete/cmake_builds/37e7e4c24f9d960ae290142015aa82aa

[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeCache.txt'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/3.21.3/CMakeCCompiler.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/3.21.3/CMakeCXXCompiler.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/3.21.3/CMakeRCCompiler.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/3.21.3/CMakeSystem.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/VerifyGlobs.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/cmake.verify_globs'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/Users/miguel/src/prototype/CMakeLists.txt'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeCInformation.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeCXXInformation.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeCommonLanguageInclude.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeGenericSystem.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeInitializeConfigs.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeLanguageInformation.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeRCInformation.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeSystemSpecificInformation.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/CMakeSystemSpecificInitialize.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Compiler/CMakeCommonCompilerMacros.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Compiler/Clang-C.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Compiler/Clang-CXX.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Compiler/Clang.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Compiler/GNU.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-Clang-C.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-Clang-CXX.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-Clang.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-GNU-C-ABI.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-GNU-CXX-ABI.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-GNU.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows-windres.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/Windows.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:/msys64/mingw64/share/cmake-3.21/Modules/Platform/WindowsPaths.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/cmake.check_cache'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/CMakeDirectoryInformation.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/test.dir/DependInfo.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/prototype.dir/DependInfo.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/common.dir/DependInfo.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/include.dir/DependInfo.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\CMakeFiles/c_include.dir/DependInfo.cmake'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'C:\Users\miguel\src\prototype\CMakeLists.txt'
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Searching 'compile_commands.json' file in: SearchScope: from_folder: c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa, to_folder: C:\
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Found 'compile_commands.json' file: c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Nothing to search for in file so its ok.
[ECC:DEBUG]:[compilation_db.py]:[_get_db_path]:[Thread-8]: Current compilation db path: 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json'
[ECC:DEBUG]:[file.py]:[is_unchanged]:[Thread-8]: never seen file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json' before. Updating.
[ECC:DEBUG]:[compilation_db.py]:[_load_current_db]:[Thread-8]: Loading new compilation db.
[ECC:DEBUG]:[compilation_db.py]:[_load_current_db]:[Thread-8]: Putting new db into cache: 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json'
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json'
[ECC:DEBUG]:[flag.py]:[tokenize_list]:[Thread-8]: Tokenizing: ['C:/msys64/mingw64/bin/clang++.exe', '@CMakeFiles/common.dir/includes_CXX.rsp', '-O3', '-DNDEBUG', '-O2', '-Wno-everything', '-Wall', '-Wextra', '-Wno-deprecated-volatile', '-Wno-error=unused', '-Wno-error=unused-parameter', '-Wpedantic', '-Wdouble-promotion', '-Woverloaded-virtual', '-Wnull-dereference', '-Wformat=2', '-Wundef', '-Wconversion', '-Wfatal-errors', '-Wshadow', '-Wmissing-noreturn', '-Wunreachable-code', '-Wno-c99-extensions', '-Wno-gnu-zero-variadic-macro-arguments', '-Werror=return-type', '-Iinclude', '-fno-common', '-std=gnu++20', '-o', 'CMakeFiles/common.dir/src/app.cpp.obj', '-c', 'C:/Users/miguel/src/prototype/src/app.cpp']
[ECC:DEBUG]:[flag.py]:[indicates_flag]:[Thread-8]: 'C:/msys64/mingw64/bin/clang++.exe' doesn't start with any valid flag prefix: ['-', '/']
[ECC:DEBUG]:[flag.py]:[indicates_flag]:[Thread-8]: '@CMakeFiles/common.dir/includes_CXX.rsp' doesn't start with any valid flag prefix: ['-', '/']
[ECC:DEBUG]:[file.py]:[expand_all]:[Thread-8]: Populated 'include' to 'C:\Users\miguel\AppData\Local\Temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\include'
[ECC:DEBUG]:[flag.py]:[indicates_flag]:[Thread-8]: 'C:/Users/miguel/src/prototype/src/app.cpp' doesn't start with any valid flag prefix: ['-', '/']
[ECC:DEBUG]:[view_config.py]:[__load_source_flags]:[Thread-8]: flags generated from 'CMakeLists.txt'.
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Merge
[ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-8]: lang flags: [(-x c++), (-std=c++11), (-IC:\msys64\mingw64\include\c++\10.3.0), (-IC:\msys64\mingw64\include\c++\10.3.0\x86_64-w64-mingw32), (-IC:\msys64\mingw64\include\c++\10.3.0\backward), (-IC:\msys64\mingw64\lib\clang\12.0.1\include), (-IC:\msys64\mingw64\x86_64-w64-mingw32\include), (-IC:\msys64\mingw64\include)]
[ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-8]: Removing default std flag: '-std=c++11' in favor of: '-std=gnu++20'
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Appending and filtering flags with ignore patterns: ['some_flag_pattern*', '-W_other_pattern_$project_path*']
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: view is 25
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: translation unit does not exist. Creating.
[ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-8]: clang flags are: ['-c', '-fsyntax-only', '-x', 'c++', '-I', 'C:\\msys64\\mingw64\\include\\c++\\10.3.0', '-I', 'C:\\msys64\\mingw64\\include\\c++\\10.3.0\\x86_64-w64-mingw32', '-I', 'C:\\msys64\\mingw64\\include\\c++\\10.3.0\\backward', '-I', 'C:\\msys64\\mingw64\\lib\\clang\\12.0.1\\include', '-I', 'C:\\msys64\\mingw64\\x86_64-w64-mingw32\\include', '-I', 'C:\\msys64\\mingw64\\include', '-O3', '-DNDEBUG', '-O2', '-Wno-everything', '-Wall', '-Wextra', '-Wno-deprecated-volatile', '-Wno-error=unused', '-Wno-error=unused-parameter', '-Wpedantic', '-Wdouble-promotion', '-Woverloaded-virtual', '-Wnull-dereference', '-Wformat=2', '-Wundef', '-Wconversion', '-Wfatal-errors', '-Wshadow', '-Wmissing-noreturn', '-Wunreachable-code', '-Wno-c99-extensions', '-Wno-gnu-zero-variadic-macro-arguments', '-Werror=return-type', '-I', 'C:\\Users\\miguel\\AppData\\Local\\Temp\\EasyClangComplete\\cmake_builds\\37e7e4c24f9d960ae290142015aa82aa\\include', '-fno-common', '-std=gnu++20', '-o', 'CMakeFiles/common.dir/src/app.cpp.obj', '-I', '\\usr\\include', '-I', 'C:\\Users\\miguel\\src\\prototype\\src', '-I', '\\usr\\lib\\clang\\12.0.1\\include']
[ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-8]: compilation started for view id: 25
[ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-8]: compilation done in 0.5869321823120117 seconds
Package Control: Skipping automatic upgrade, last run at 2021-09-23 22:17:36, next run at 2021-09-23 23:17:36 or after
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: reparsing translation_unit for view 25
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: reparsed in 0.8458900451660156 seconds
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-8]: Generating error regions for view 25
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-8]: 1 error regions ready
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-8]: Showing error regions: [(735, 744)]
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-8]: Showing warning regions: []
[ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-8]: updated config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x00000236A0D86748>
[ECC:DEBUG]:[view_config_manager.py]:[load_for_view]:[Thread-8]: Config exists for path: 25
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-8]: init completer based on libclang
[ECC:DEBUG]:[lib_complete.py]:[__init__]:[Thread-8]: using bundled cindex: EasyClangComplete.plugin.clang.cindex50
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-8]: Folder c:\users\miguel\appdata\local\temp\EasyClangComplete exists.
[ECC:DEBUG]:[compiler_builtins.py]:[__init__]:[Thread-8]: Generating default flags from file 'ECC_temp_file.cpp' in folder 'c:\users\miguel\appdata\local\temp\EasyClangComplete'
[ECC:DEBUG]:[compiler_builtins.py]:[__generate_flags]:[Thread-8]: Using cached default flags.
[ECC:DEBUG]:[view_config.py]:[__get_default_flags]:[Thread-8]: Tokeninzing default flags
[ECC:DEBUG]:[flag.py]:[tokenize_list]:[Thread-8]: Tokenizing: ['-x', 'c++', '-std=c++11', '-IC:\\msys64\\mingw64\\include\\c++\\10.3.0', '-IC:\\msys64\\mingw64\\include\\c++\\10.3.0\\x86_64-w64-mingw32', '-IC:\\msys64\\mingw64\\include\\c++\\10.3.0\\backward', '-IC:\\msys64\\mingw64\\lib\\clang\\12.0.1\\include', '-IC:\\msys64\\mingw64\\x86_64-w64-mingw32\\include', '-IC:\\msys64\\mingw64\\include']
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Common
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Source
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[get]: for file C:\Users\miguel\src\prototype\src\app.cpp
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[cached]: 'C:\Users\miguel\src\prototype\CMakeLists.txt'
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Searching 'CMakeLists.txt' file in: SearchScope: from_folder: C:\Users\miguel\src\prototype\src, to_folder: C:\\Users\\miguel\\src\\prototype
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Found 'CMakeLists.txt' file: C:\Users\miguel\src\prototype\CMakeLists.txt
[ECC:DEBUG]:[file.py]:[contains]:[Thread-8]: found needed line: 'project(prototype) # TODO: Update name'
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[current]: 'C:\Users\miguel\src\prototype\CMakeLists.txt'
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]: found cached CMakeLists.txt.
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-8]: Folder c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa exists.
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-8]: [cmake]:[unchanged]: use existing db.
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Searching 'compile_commands.json' file in: SearchScope: from_folder: c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa, to_folder: C:\
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Found 'compile_commands.json' file: c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json
[ECC:DEBUG]:[file.py]:[search]:[Thread-8]: Nothing to search for in file so its ok.
[ECC:DEBUG]:[compilation_db.py]:[_get_db_path]:[Thread-8]: Current compilation db path: 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json'
[ECC:DEBUG]:[compilation_db.py]:[_load_current_db]:[Thread-8]: Loading cached compilation db.
[ECC:DEBUG]:[file.py]:[update_mod_time]:[Thread-8]: updating modification time for file 'c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json'
[ECC:DEBUG]:[view_config.py]:[__load_source_flags]:[Thread-8]: flags generated from 'CMakeLists.txt'.
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Merge
[ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-8]: lang flags: [(-x c++), (-std=c++11), (-IC:\msys64\mingw64\include\c++\10.3.0), (-IC:\msys64\mingw64\include\c++\10.3.0\x86_64-w64-mingw32), (-IC:\msys64\mingw64\include\c++\10.3.0\backward), (-IC:\msys64\mingw64\lib\clang\12.0.1\include), (-IC:\msys64\mingw64\x86_64-w64-mingw32\include), (-IC:\msys64\mingw64\include)]
[ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-8]: Removing default std flag: '-std=c++11' in favor of: '-std=gnu++20'
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-8]: Appending and filtering flags with ignore patterns: ['some_flag_pattern*', '-W_other_pattern_$project_path*']
[ECC:DEBUG]:[view_config.py]:[needs_update]:[Thread-8]: view config needs no update.
[ECC:DEBUG]:[file.py]:[is_unchanged]:[Thread-8]: never seen file 'C:\Users\miguel\src\prototype\src\app.cpp' before. Updating.
[ECC:DEBUG]:[view_config.py]:[update_if_needed]:[Thread-8]: config updates existing completer.
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: view is 25
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: reparsing translation_unit for view 25
[ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-8]: reparsed in 0.031265974044799805 seconds
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-8]: Generating error regions for view 25
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-8]: Removing old error regions
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-8]: 1 error regions ready
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-8]: Showing error regions: [(735, 744)]
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-8]: Showing warning regions: []
[ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-8]: updated config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x00000236A0D86748>
[ECC:DEBUG]:[view_config_manager.py]:[get_from_cache]:[Dummy-4]: config exists for view: 25
[ECC:DEBUG]:[view_config_manager.py]:[get_from_cache]:[Dummy-4]: config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x00000236A0D86748>
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-4]: view file_name is None
@niosus
Copy link
Owner

niosus commented Oct 2, 2021

Ok, the only weird thing I see is this:

[ECC:DEBUG]:[flag.py]:[indicates_flag]:[Thread-8]: '@CMakeFiles/common.dir/includes_CXX.rsp' doesn't start with any valid flag prefix: ['-', '/']

which points me to this: is there something different in how CMake generates a compilation database on Windows as opposed to Linux or mac?

Could you also provide a compilation database file that gets generated as the result?
The one for the build above is found here:

c:\users\miguel\appdata\local\temp\EasyClangComplete\cmake_builds\37e7e4c24f9d960ae290142015aa82aa\compile_commands.json

@dortamiguel
Copy link
Author

Uhm it could be, I found some small differences between clang from apple and clang from mingw.

I attached here the compile_commands.json file

compile_commands.zip

@niosus
Copy link
Owner

niosus commented Dec 5, 2021

Sorry for the long silence. Looking at the compile commands file, I don't understand where the flags that start with @ come from in it. Is it a windows-related thing with CMake? I would have to read up on this to understand how to handle these situations.

@niosus
Copy link
Owner

niosus commented Dec 5, 2021

Ok, after some googling, it seems it is a workaround on CMake side to avoid too many command flags on Windows. It packs them into the response files and then passes these files into the compilation. One solution, as seen in microsoft/vscode-cpptools#1718 (comment) is to parse that file and copy its contents as flags to the command that we construct within the plugin. It is not a trivial thing to do though, so it will take time.

If you could maybe create a simple reproducer for me, i.e., a smallest possible project in which this happens along with all the plugin settings used and the setup that you use to build this project, this would help me immensely. As I'm not a Windows person, I'm a bit lost in the setup there.

@dortamiguel
Copy link
Author

Sorry, I don't have a window machine anymore, I will in a couple of months

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