niosus / EasyClangComplete

:boom: Robust C/C++ code completion for Sublime Text 3/4
https://niosus.github.io/EasyClangComplete/
MIT License
575 stars 78 forks source link

ECC dosent work when including hpp files. #683

Closed Glymse closed 4 years ago

Glymse commented 4 years ago

Hi, so im trying to get ECC to work, and it kinda is, but when i include header files with #include the program stops working, im using windows 10 with mingw and LLVM. (Im sorry if this is a configuration issue, but im relatively new to sublime)

System Sublime: 3.2.2 OS: Windows 10 Clang: 9.0.0

Examples: Without header: image

With header: image


Project settings: ` {

"settings": {
"libclang_path": "C:\\Program Files\\LLVM\\lib",
"ecc_verbose": true,
"ecc_use_libclang": true ,
"ecc_show_type_info": false,

},

"folders":
[

    {
        "path": "src/..",
        "file_exclude_patterns": ["*.sublime-project", "*.o"],
        "follow_symlinks": true,
    }
],
"build_systems":
[
    {
        "name": "Build Debug",
        "working_dir": "${project_path}",
        "cmd": "g++ -c src/*.cpp -std=c++14 -Wall -m64 -g -I include && g++ *.o -o bin/debug/main && start bin/debug/main",
        "selector": "source.c++",
        "shell": true
    },
    {
        "name": "Build Release",
        "working_dir": "${project_path}",
        "cmd": "g++ -c src/*.cpp -std=c++14 -m64 -O3 -I include && g++ *.o -o bin/release/main -s -mwindows && start/release/main",
        "selector": "source.c++",
        "shell": true
    },
    {
        "name": "Output Assebler Code",
        "working_dir": "${project_path}",
        "cmd": "g++ -S src/${file_base_name}.cpp -std=c++14 -m64 -g -I include -o asm/${file_base_name}.asm",
        "selector": "source.c++",
        "shell": true
    }

]

}`


ECC settings:

image


Log: ` [ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[MainThread]: view file_name is None [ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-5]: view file_name is None [ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[Dummy-5]: no settings for view 33. Reinitializing. [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: Overriding settings by project ones if needed: [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: Valid prefixes: ['ecc_', 'easy_clang_complete_'] [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: Reading settings... [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: show_type_info <-- 'False' [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: use_libclang <-- 'True' [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: Settings sucessfully read... [ECC:INFO]:[clang_utils.py]:[get_clang_version_str]:[Dummy-5]: Getting version from command:clang++ -v` [ECC:DEBUG]:[settings_storage.py]:[__populate_common_flags]:[Dummy-5]: Populating common_flags with current variables.

[ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[Dummy-5]: settings initialized for view: 33 [ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[Dummy-5]: on_activated_async view id 33 [ECC:DEBUG]:[view_config_manager.py]:[load_for_view]:[Thread-9]: Generate new config for path: 33 [ECC:INFO]:[view_config.py]:[init_completer]:[Thread-9]: init completer based on libclang [ECC:DEBUG]:[lib_complete.py]:[init__]:[Thread-9]: using bundled cindex: EasyClangComplete.plugin.clang.cindex50 [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: Platform: Windows, ('32bit', 'WindowsPE') [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: Python version: 3.3.6 [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: User provided libclang_path: 'C:\Program Files\LLVM\liblibclang.lib' [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: Searching for: 'libclang.dll' [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: Generating search folder [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: Libclang search output = 'C:\Program Files\LLVM\bin\clang' [ECC:DEBUG]:[clang_utils.py]:[dir_from_output]:[Thread-9]: Real output: C:\Program Files\LLVM\bin\clang

[ECC:DEBUG]:[clang_utils.py]:[dir_from_output]:[Thread-9]: Folder to search: C:\Program Files\LLVM\bin\clang.. [ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-9]: Checking path: C:\Program Files\LLVM\bin\libclang.dll [ECC:INFO]:[clang_utils.py]:[find_libclang]:[Thread-9]: Found libclang library file: 'C:\Program Files\LLVM\bin\libclang.dll' [ECC:ERROR]:[lib_complete.py]:[init]:[Thread-9]: error: [WinError 193] %1 er ikke et gyldigt Win32-program. To provide a path to libclang use Config.set_library_path() or Config.set_library_file(). [ECC:ERROR]:[view_config.py]:[init_completer]:[Thread-9]: cannot initialize completer with libclang. [ECC:INFO]:[view_config.py]:[init_completer]:[Thread-9]: falling back to using clang in a subprocess. [ECC:INFO]:[view_config.py]:[init_completer]:[Thread-9]: init completer based on clang from cmd [ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-9]: Folder c:\users\jonas\appdata\local\temp\EasyClangComplete exists. [ECC:DEBUG]:[compiler_builtins.py]:[init]:[Thread-9]: Generating default flags from file 'ECC_temp_file.cpp' in folder 'c:\users\jonas\appdata\local\temp\EasyClangComplete' [ECC:DEBUG]:[compiler_builtins.py]:[__generate_flags]:[Thread-9]: Generating new default flags with cmd: '['C:\Program Files\LLVM\bin\clang++', '-x', 'c++', '-std=c++17', '-c', 'ECC_temp_file.cpp', '-dM', '-v', '-E']' [ECC:DEBUG]:[compiler_builtins.py]:[get_defines]:[Thread-9]: Got defines: ['-D_CPPRTTI=1', '-D_CPPUNWIND=1', '-D_HAS_CHAR16_T_LANGUAGE_SUPPORT=1', '-D_INTEGRAL_MAX_BITS=64', '-D_MSC_BUILD=1', '-D_MSC_EXTENSIONS=1', '-D_MSC_FULL_VER=191100000', '-D_MSC_VER=1911', '-D_MSVC_LANG=201703L', '-D_M_AMD64=100', '-D_M_X64=100', '-D_NATIVE_NULLPTR_SUPPORTED=1', '-D_NATIVE_WCHAR_T_DEFINED=1', '-D_RVALUE_REFERENCES_SUPPORTED=1', '-D_RVALUE_REFERENCES_V2_SUPPORTED=1', '-D_WCHAR_T_DEFINED=1', '-D_WIN32=1', '-D_WIN64=1', '-DATOMIC_ACQUIRE=2', '-DATOMIC_ACQ_REL=4', '-DATOMIC_CONSUME=1', '-DATOMIC_RELAXED=0', '-D__ATOMIC_RELEASE=3', '-DATOMIC_SEQ_CST=5', '-DBIGGEST_ALIGNMENT=16', '-DBOOL_DEFINED=1', '-DBYTE_ORDER=ORDER_LITTLE_ENDIAN', '-DCHAR16_TYPE=unsigned short', '-DCHAR32_TYPE=unsigned int', '-DCHAR_BIT=8', '-DCLANG_ATOMIC_BOOL_LOCK_FREE=2', '-DCLANG_ATOMIC_CHAR16_T_LOCK_FREE=2', '-D__CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2', '-DCLANG_ATOMIC_CHAR_LOCK_FREE=2', '-DCLANG_ATOMIC_INT_LOCK_FREE=2', '-DCLANG_ATOMIC_LLONG_LOCK_FREE=2', '-DCLANG_ATOMIC_LONG_LOCK_FREE=2', '-DCLANG_ATOMIC_POINTER_LOCK_FREE=2', '-DCLANG_ATOMIC_SHORT_LOCK_FREE=2', '-DCLANG_ATOMIC_WCHAR_T_LOCK_FREE=2', '-DCONSTANT_CFSTRINGS=1', '-DDBL_DECIMAL_DIG=17', '-DDBL_DENORM_MIN=4.9406564584124654e-324', '-DDBL_DIG=15', '-DDBL_EPSILON=2.2204460492503131e-16', '-DDBL_HAS_DENORM=1', '-DDBL_HAS_INFINITY=1', '-DDBL_HAS_QUIET_NAN=1', '-DDBL_MANT_DIG=53', '-DDBL_MAX_10_EXP=308', '-DDBL_MAX_EXP=1024', '-DDBL_MAX=1.7976931348623157e+308', '-DDBL_MIN_10_EXP=(-307)', '-DDBL_MIN_EXP=(-1021)', '-DDBL_MIN=2.2250738585072014e-308', '-DDECIMAL_DIG=LDBL_DECIMAL_DIG', '-DDEPRECATED=1', '-DFINITE_MATH_ONLY=0', '-DFLT_DECIMAL_DIG=9', '-DFLT_DENORM_MIN=1.40129846e-45F', '-D__FLT_DIG=6', '-DFLT_EPSILON=1.19209290e-7F', '-DFLT_EVAL_METHOD=0', '-DFLT_HAS_DENORM=1', '-DFLT_HAS_INFINITY=1', '-DFLT_HAS_QUIET_NAN=1', '-DFLT_MANT_DIG=24', '-DFLT_MAX_10_EXP=38', '-DFLT_MAX_EXP=128', '-DFLT_MAX=3.40282347e+38F', '-DFLT_MIN_10_EXP=(-37)', '-DFLT_MIN_EXP=(-125)', '-DFLT_MIN=1.17549435e-38F', '-DFLT_RADIX=2', '-DFXSR=1', '-DGCC_ASM_FLAG_OUTPUTS=1', '-DGCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1', '-DGCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1', '-DGCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1', '-DGCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1', '-DINT16_C_SUFFIX', '-DINT16_FMTd="hd"', '-DINT16_FMTi="hi"', '-DINT16_MAX=32767', '-DINT16_TYPE=short', '-DINT32_C_SUFFIX', '-DINT32_FMTd="d"', '-DINT32_FMTi="i"', '-DINT32_MAX=2147483647', '-DINT32_TYPE=int', '-DINT64_C_SUFFIX=LL', '-DINT64_FMTd="lld"', '-DINT64_FMTi="lli"', '-DINT64_MAX=9223372036854775807LL', '-DINT64_TYPE=long long int', '-DINT8_C_SUFFIX', '-DINT8_FMTd="hhd"', '-DINT8_FMTi="hhi"', '-DINT8_MAX=127', '-DINT8_TYPE=signed char', '-DINTMAX_C_SUFFIX=LL', '-DINTMAX_FMTd="lld"', '-DINTMAX_FMTi="lli"', '-DINTMAX_MAX=9223372036854775807LL', '-DINTMAX_TYPE=long long int', '-DINTMAX_WIDTH=64', '-DINTPTR_FMTd="lld"', '-DINTPTR_FMTi="lli"', '-DINTPTR_MAX=9223372036854775807LL', '-DINTPTR_TYPE=long long int', '-DINTPTR_WIDTH=64', '-DINT_FAST16_FMTd="hd"', '-DINT_FAST16_FMTi="hi"', '-DINT_FAST16_MAX=32767', '-DINT_FAST16_TYPE=short', '-DINT_FAST32_FMTd="d"', '-DINT_FAST32_FMTi="i"', '-DINT_FAST32_MAX=2147483647', '-DINT_FAST32_TYPE=int', '-DINT_FAST64_FMTd="lld"', '-DINT_FAST64_FMTi="lli"', '-DINT_FAST64_MAX=9223372036854775807LL', '-DINT_FAST64_TYPE=long long int', '-DINT_FAST8_FMTd="hhd"', '-DINT_FAST8_FMTi="hhi"', '-DINT_FAST8_MAX=127', '-DINT_FAST8_TYPE=signed char', '-DINT_LEAST16_FMTd="hd"', '-DINT_LEAST16_FMTi="hi"', '-DINT_LEAST16_MAX=32767', '-DINT_LEAST16_TYPE=short', '-DINT_LEAST32_FMTd="d"', '-DINT_LEAST32_FMTi="i"', '-DINT_LEAST32_MAX=2147483647', '-DINT_LEAST32_TYPE=int', '-DINT_LEAST64_FMTd="lld"', '-DINT_LEAST64_FMTi="lli"', '-DINT_LEAST64_MAX=9223372036854775807LL', '-DINT_LEAST64_TYPE=long long int', '-DINT_LEAST8_FMTd="hhd"', '-DINT_LEAST8_FMTi="hhi"', '-DINT_LEAST8_MAX=127', '-DINT_LEAST8_TYPE=signed char', '-DINT_MAX=2147483647', '-DLDBL_DECIMAL_DIG=17', '-DLDBL_DENORM_MIN=4.9406564584124654e-324L', '-DLDBL_DIG=15', '-DLDBL_EPSILON=2.2204460492503131e-16L', '-DLDBL_HAS_DENORM=1', '-DLDBL_HAS_INFINITY=1', '-DLDBL_HAS_QUIET_NAN=1', '-DLDBL_MANT_DIG=53', '-DLDBL_MAX_10_EXP=308', '-DLDBL_MAX_EXP=1024', '-DLDBL_MAX=1.7976931348623157e+308L', '-DLDBL_MIN_10_EXP=(-307)', '-DLDBL_MIN_EXP=(-1021)', '-DLDBL_MIN=2.2250738585072014e-308L', '-DLITTLE_ENDIAN=1', '-DLONG_LONG_MAX=9223372036854775807LL', '-DLONG_MAX=2147483647L', '-DMMX=1', '-DNO_INLINE=1', '-DNO_MATH_INLINES=1', '-D__OBJC_BOOL_IS_BOOL=0', '-DOPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3', '-DOPENCL_MEMORY_SCOPE_DEVICE=2', '-DOPENCL_MEMORY_SCOPE_SUB_GROUP=4', '-DOPENCL_MEMORY_SCOPE_WORK_GROUP=1', '-DOPENCL_MEMORY_SCOPE_WORK_ITEM=0', '-DORDER_BIG_ENDIAN=4321', '-DORDER_LITTLE_ENDIAN=1234', '-DORDER_PDP_ENDIAN=3412', '-DPIC=2', '-DPOINTER_WIDTH=64', '-DPRAGMA_REDEFINE_EXTNAME=1', '-DPTRDIFF_FMTd="lld"', '-DPTRDIFF_FMTi="lli"', '-DPTRDIFF_MAX=9223372036854775807LL', '-DPTRDIFF_TYPE=long long int', '-DPTRDIFF_WIDTH=64', '-DREGISTER_PREFIX', '-DSCHAR_MAX=127', '-DSEG_FS=1', '-DSEG_GS=1', '-D__SHRT_MAX=32767', '-DSIG_ATOMIC_MAX=2147483647', '-DSIG_ATOMIC_WIDTH=32', '-DSIZEOF_DOUBLE=8', '-DSIZEOF_FLOAT=4', '-DSIZEOF_INT128=16', '-DSIZEOF_INT=4', '-DSIZEOF_LONG_DOUBLE=8', '-DSIZEOF_LONG_LONG=8', '-DSIZEOF_LONG=4', '-DSIZEOF_POINTER=8', '-DSIZEOF_PTRDIFF_T=8', '-DSIZEOF_SHORT=2', '-DSIZEOF_SIZE_T=8', '-DSIZEOF_WCHAR_T=2', '-DSIZEOF_WINT_T=2', '-DSIZE_FMTX="llX"', '-DSIZE_FMTo="llo"', '-DSIZE_FMTu="llu"', '-DSIZE_FMTx="llx"', '-DSIZE_MAX=18446744073709551615ULL', '-DSIZE_TYPE=long long unsigned int', '-DSIZE_WIDTH=64', '-DSSE2_MATH=1', '-DSSE2=1', '-DSSE_MATH=1', '-DSSE=1', '-DSTDCPP_DEFAULT_NEW_ALIGNMENT=16ULL', '-DSTDC_HOSTED=1', '-DSTDC_UTF_16=1', '-DSTDC_UTF_32=1', '-DUINT16_C_SUFFIX', '-DUINT16_FMTX="hX"', '-DUINT16_FMTo="ho"', '-DUINT16_FMTu="hu"', '-DUINT16_FMTx="hx"', '-DUINT16_MAX=65535', '-DUINT16_TYPE=unsigned short', '-DUINT32_C_SUFFIX=U', '-DUINT32_FMTX="X"', '-DUINT32_FMTo="o"', '-DUINT32_FMTu="u"', '-DUINT32_FMTx="x"', '-DUINT32_MAX=4294967295U', '-DUINT32_TYPE=unsigned int', '-DUINT64_C_SUFFIX=ULL', '-DUINT64_FMTX="llX"', '-DUINT64_FMTo="llo"', '-DUINT64_FMTu="llu"', '-DUINT64_FMTx="llx"', '-DUINT64_MAX=18446744073709551615ULL', '-DUINT64_TYPE=long long unsigned int', '-DUINT8_C_SUFFIX', '-DUINT8_FMTX="hhX"', '-DUINT8_FMTo="hho"', '-DUINT8_FMTu="hhu"', '-DUINT8_FMTx="hhx"', '-DUINT8_MAX=255', '-DUINT8_TYPE=unsigned char', '-DUINTMAX_C_SUFFIX=ULL', '-DUINTMAX_FMTX="llX"', '-DUINTMAX_FMTo="llo"', '-DUINTMAX_FMTu="llu"', '-DUINTMAX_FMTx="llx"', '-DUINTMAX_MAX=18446744073709551615ULL', '-DUINTMAX_TYPE=long long unsigned int', '-DUINTMAX_WIDTH=64', '-DUINTPTR_FMTX="llX"', '-DUINTPTR_FMTo="llo"', '-DUINTPTR_FMTu="llu"', '-DUINTPTR_FMTx="llx"', '-DUINTPTR_MAX=18446744073709551615ULL', '-DUINTPTR_TYPE=long long unsigned int', '-DUINTPTR_WIDTH=64', '-DUINT_FAST16_FMTX="hX"', '-DUINT_FAST16_FMTo="ho"', '-DUINT_FAST16_FMTu="hu"', '-DUINT_FAST16_FMTx="hx"', '-DUINT_FAST16_MAX=65535', '-DUINT_FAST16_TYPE=unsigned short', '-DUINT_FAST32_FMTX="X"', '-DUINT_FAST32_FMTo="o"', '-DUINT_FAST32_FMTu="u"', '-DUINT_FAST32_FMTx="x"', '-DUINT_FAST32_MAX=4294967295U', '-DUINT_FAST32_TYPE=unsigned int', '-DUINT_FAST64_FMTX="llX"', '-DUINT_FAST64_FMTo="llo"', '-DUINT_FAST64_FMTu="llu"', '-DUINT_FAST64_FMTx="llx"', '-DUINT_FAST64_MAX=18446744073709551615ULL', '-DUINT_FAST64_TYPE=long long unsigned int', '-DUINT_FAST8_FMTX="hhX"', '-DUINT_FAST8_FMTo="hho"', '-DUINT_FAST8_FMTu="hhu"', '-DUINT_FAST8_FMTx="hhx"', '-DUINT_FAST8_MAX=255', '-DUINT_FAST8_TYPE=unsigned char', '-DUINT_LEAST16_FMTX="hX"', '-DUINT_LEAST16_FMTo="ho"', '-DUINT_LEAST16_FMTu="hu"', '-DUINT_LEAST16_FMTx="hx"', '-DUINT_LEAST16_MAX=65535', '-DUINT_LEAST16_TYPE=unsigned short', '-DUINT_LEAST32_FMTX="X"', '-DUINT_LEAST32_FMTo="o"', '-DUINT_LEAST32_FMTu="u"', '-DUINT_LEAST32_FMTx="x"', '-DUINT_LEAST32_MAX=4294967295U', '-DUINT_LEAST32_TYPE=unsigned int', '-DUINT_LEAST64_FMTX="llX"', '-DUINT_LEAST64_FMTo="llo"', '-DUINT_LEAST64_FMTu="llu"', '-DUINT_LEAST64_FMTx="llx"', '-DUINT_LEAST64_MAX=18446744073709551615ULL', '-DUINT_LEAST64_TYPE=long long unsigned int', '-DUINT_LEAST8_FMTX="hhX"', '-DUINT_LEAST8_FMTo="hho"', '-DUINT_LEAST8_FMTu="hhu"', '-DUINT_LEAST8_FMTx="hhx"', '-DUINT_LEAST8_MAX=255', '-DUINT_LEAST8_TYPE=unsigned char', '-DUSER_LABEL_PREFIX', '-DVERSION="Clang 9.0.0 (tags/RELEASE_900/final)"', '-DWCHAR_MAX=65535', '-DWCHAR_TYPE=unsigned short', '-DWCHAR_UNSIGNED=1', '-DWCHAR_WIDTH=16', '-DWINT_MAX=65535', '-DWINT_TYPE=unsigned short', '-DWINT_UNSIGNED=1', '-DWINT_WIDTH=16', '-Damd64=1', '-Damd64=1', '-Dclang=1', '-Dclang_major=9', '-Dclang_minor=0', '-Dclang_patchlevel=0', '-Dclang_version="9.0.0 (tags/RELEASE_900/final)"', '-D__code_modelsmall=1', '-Dcplusplus=201703L', '-Dcpp_aggregate_bases=201603L', '-Dcpp_aggregate_nsdmi=201304L', '-Dcpp_alias_templates=200704L', '-Dcpp_aligned_new=201606L', '-Dcpp_attributes=200809L', '-Dcpp_binary_literals=201304L', '-Dcpp_capture_star_this=201603L', '-Dcpp_constexpr=201603L', '-Dcpp_decltype=200707L', '-Dcpp_decltype_auto=201304L', '-Dcpp_deduction_guides=201703L', '-Dcpp_delegating_constructors=200604L', '-Dcpp_digit_separators=201309L', '-Dcpp_enumerator_attributes=201411L', '-Dcpp_exceptions=199711L', '-Dcpp_fold_expressions=201603L', '-Dcpp_generic_lambdas=201304L', '-Dcpp_guaranteed_copy_elision=201606L', '-Dcpp_hex_float=201603L', '-Dcpp_if_constexpr=201606L', '-Dcpp_impl_destroying_delete=201806L', '-Dcpp_inheriting_constructors=201511L', '-Dcpp_init_captures=201304L', '-Dcpp_initializer_lists=200806L', '-Dcpp_inline_variables=201606L', '-D__cpp_lambdas=200907L', '-Dcpp_namespace_attributes=201411L', '-Dcpp_nested_namespace_definitions=201411L', '-D__cpp_noexcept_function_type=201510L', '-Dcpp_nontype_template_args=201411L', '-Dcpp_nontype_template_parameter_auto=201606L', '-Dcpp_nsdmi=200809L', '-Dcpp_range_based_for=201603L', '-Dcpp_raw_strings=200710L', '-Dcpp_ref_qualifiers=200710L', '-D__cpp_return_type_deduction=201304L', '-Dcpp_rtti=199711L', '-Dcpp_rvalue_references=200610L', '-Dcpp_static_assert=201411L', '-Dcpp_structured_bindings=201606L', '-Dcpp_template_auto=201606L', '-Dcpp_threadsafe_static_init=200806L', '-Dcpp_unicode_characters=200704L', '-Dcpp_unicode_literals=200710L', '-D__cpp_user_defined_literals=200809L', '-Dcpp_variable_templates=201304L', '-Dcpp_variadic_templates=200704L', '-Dcpp_variadic_using=201611L', '-Dk8=1', '-Dk8=1', '-Dllvm=1', '-Dpic=2', '-Dseg_fs=attribute((address_space(257)))', '-Dseg_gs=attribute((address_space(256)))', '-Dtune_k8=1', '-Dx86_64=1', '-Dx86_64__=1'] [ECC:DEBUG]:[view_config.py]:[get_default_flags]:[Thread-9]: Tokeninzing default flags [ECC:DEBUG]:[flag.py]:[tokenize_list]:[Thread-9]: Tokenizing: ['-x', 'c++', '-std=c++17', '-IC:\Program Files\LLVM\lib\clang\9.0.0\include']

[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-9]: [cmake]:[get]: for file D:\Programmering\C++\Sublime\First\src\main.cpp

[ECC:DEBUG]:[file.py]:[search]:[Thread-9]: Searching 'CMakeLists.txt' file in: SearchScope: from_folder: D:\Programmering\C++\Sublime\First\src, to_folder: D:\Programmering\C++\Sublime\First [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-9]: No CMakeLists.txt file with 'project' in it found. [ECC:DEBUG]:[file.py]:[search]:[Thread-9]: Searching 'compile_commands.json' file in: SearchScope: from_folder: D:\Programmering\C++\Sublime\First\src, to_folder: D:\Programmering\C++\Sublime\First [ECC:DEBUG]:[CppProperties.py]:[get_flags]:[Thread-9]: [CppProperties]:[get]: for file D:\Programmering\C++\Sublime\First\src\main.cpp

[ECC:DEBUG]:[file.py]:[search]:[Thread-9]: Searching 'CppProperties.json' file in: SearchScope: from_folder: D:\Programmering\C++\Sublime\First\src, to_folder: D:\Programmering\C++\Sublime\First [ECC:DEBUG]:[c_cpp_properties.py]:[get_flags]:[Thread-9]: [c_cpp_properties]:[get]: for file D:\Programmering\C++\Sublime\First\src\main.cpp

[ECC:DEBUG]:[file.py]:[search]:[Thread-9]: Searching 'c_cpp_properties.json' file in: SearchScope: from_folder: D:\Programmering\C++\Sublime\First\src, to_folder: D:\Programmering\C++\Sublime\First [ECC:DEBUG]:[flags_file.py]:[get_flags]:[Thread-9]: [clang_complete_file]:[get]: for file D:\Programmering\C++\Sublime\First\src\main.cpp

[ECC:DEBUG]:[file.py]:[search]:[Thread-9]: Searching '.clang_complete' file in: SearchScope: from_folder: D:\Programmering\C++\Sublime\First\src, to_folder: D:\Programmering\C++\Sublime\First

[ECC:DEBUG]:[view_config.py]:[merge_flags]:[Thread-9]: lang flags: [(-x c++), (-std=c++17), (-IC:\Program Files\LLVM\lib\clang\9.0.0\include)] [ECC:DEBUG]:[view_config.py]:[generate_essentials]:[Thread-9]: Appending and filtering flags with ignore patterns: ['some_flag_pattern', '-W_otherpattern$project_path'] [ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-9]: Folder c:\users\jonas\appdata\local\temp\EasyClangComplete\34d682678d691c38694ff08cd9e7fa89 exists. [ECC:DEBUG]:[bin_complete.py]:[run_clang_command]:[Thread-9]: clang command: 'clang++' '-c' '-fsyntax-only' '-x' 'c++' '-std=c++17' '-I' 'C:\Program Files\LLVM\lib\clang\9.0.0\include' '-I' 'D:\Programmering\C++\Sublime\First\include' '-I' 'C:\Program Files\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++' '-I' 'C:\Program Files\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++\backward' '-I' 'C:C:\Program Files\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++\bits' 'c:\users\jonas\appdata\local\temp\EasyClangComplete\34d682678d691c38694ff08cd9e7fa89\main.cpp' [ECC:DEBUG]:[tools.py]:[run_command]:[Thread-9]: Command finished with code: 1 [ECC:DEBUG]:[tools.py]:[run_command]:[Thread-9]: Command output: In file included from c:\users\jonas\appdata\local\temp\EasyClangComplete\34d682678d691c38694ff08cd9e7fa89\main.cpp:1:

C:\Program Files\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++\iostream:38:10: fatal error: 'bits/c++config.h' file not found

include <bits/c++config.h>

     ^~~~~~~~~~~~~~~~~~

1 error generated.

[ECC:DEBUG]:[bin_complete.py]:[update]:[Thread-9]: rebuilding done in 0.1386280059814453 seconds [ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-9]: Generating error regions for view 33 [ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-9]: 1 error regions ready [ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-9]: Showing error regions: [] [ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-9]: Showing warning regions: [] [ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-9]: updated config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x042A08B0> [ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-4]: Skip young config: Age 3.153017044067383 < 1800. View: 33.

``

niosus commented 4 years ago

Please reformat the issue in the format requested in here: https://github.com/niosus/EasyClangComplete/blob/master/.github/ISSUE_TEMPLATE.md

When this is done - feel free to reopen. Issues are an important source of information for the users. This is why I really want to keep them formatted in a proper way.