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

Does not support libclang in non-default directories on Windows #735

Open
pandasauce opened this issue Feb 2, 2021 · 3 comments
Open

Does not support libclang in non-default directories on Windows #735

pandasauce opened this issue Feb 2, 2021 · 3 comments

Comments

@pandasauce
Copy link

System info:

  • Sublime Text version: 3.2.2, Build 3211
  • Which system are you on: Windows 10
  • Clang version: 11

What happens:

I have both Visual Studio and MinGW installed, both in separate non-default directories, neither polluting the PATH variable - this is done for things to coexist as I work with countless different languages, SDKs and their versions, so my "root" environment is kept clean until I source a config file.

These are the settings I have set up for the plugin to work with my MinGW environment:

{
    "common_flags": ["-I$project_base_path"],
    "clang_binary": "D:/tools/msys64/mingw64/bin/clang++.exe",
    "cmake_binary": "D:/tools/msys64/mingw64/bin/cmake.exe",
    "libclang_path": "D:/tools/msys64/mingw64/bin/",
    "verbose": true,
    "target_compilers": {
        "C": "D:/tools/msys64/mingw64/bin/clang.exe",
        "CPP": "D:/tools/msys64/mingw64/bin/clang++.exe",
        "OBJECTIVE_C": null,
        "OBJECTIVE_CPP": null
    }
}

This is what I get when I open my project:

Popup console error
Error in file:
D:\projects\<sanitized-project-root-directory>\CMakeLists.txt

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
CMake Error at D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
    system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
      version "1.1.1i")
      Call Stack (most recent call first):
        D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
          D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindOpenSSL.cmake:536 (find_package_handle_standard_args)
            CMakeLists.txt:12 (find_package)


            -- Configuring incomplete, errors occurred!
            See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeOutput.log".
            See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeError.log".
Verbose sublime log
DPI mode: per-monitor v2
startup, version: 3211 windows x64 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Users/user/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/user/AppData/Roaming/Sublime Text 3/Local
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Users/user/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.131628
startup time: 0.182628
first paint time: 0.184628
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.detect_indentation
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.01-sublime_lib
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-pymdownx
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.50-pyyaml
reloading plugin 0_package_control_loader.51-python-jinja2
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin Alignment.Alignment
reloading plugin ANSIescape.ansi
reloading plugin FileDiffs.file_diffs
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin StringEncode.string_encode
reloading plugin Stringify.stringify
reloading plugin Text Pastry.text_pastry
reloading plugin Text Pastry.text_pastry_addons
reloading plugin Text Pastry.text_pastry_clipboard
reloading plugin Text Pastry.text_pastry_selection
reloading plugin TrailingSpaces.trailing_spaces
reloading plugin EasyClangComplete.EasyClangComplete
reloading plugin HTML-CSS-JS Prettify.HTMLPrettify
plugins loaded
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 298, in on_api_ready
    plc()
  File "C:\Users\user\AppData\Roaming\Sublime Text 3\Installed Packages\TrailingSpaces.sublime-package\trailing_spaces.py", line 54, in plugin_loaded
    settings[0].save()
  File "./python3.3/collections/__init__.py", line 789, in __getitem__
  File "C:\Users\user\AppData\Roaming\SUBLIM~1\Packages\SUBLIM~1\st3\sublime_lib\settings_dict.py", line 67, in __getitem__
    if key in self:
  File "C:\Users\user\AppData\Roaming\SUBLIM~1\Packages\SUBLIM~1\st3\sublime_lib\settings_dict.py", line 91, in __contains__
    return self.settings.has(item)
  File "C:\Program Files\Sublime Text 3\sublime.py", line 1172, in has
    return sublime_api.settings_has(self.settings_id, key)
TypeError: String required
[ECC:DEBUG]:[settings_storage.py]:[need_reparse]:[MainThread]: settings complete
[ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[MainThread]: no settings for view 27. 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:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated 'D:/tools/msys64/mingw64/bin/clang++.exe' to '['D:\\tools\\msys64\\mingw64\\bin\\clang++.exe']'
[ECC:INFO]:[clang_utils.py]:[get_clang_version_str]:[MainThread]: Getting version from command: `D:\tools\msys64\mingw64\bin\clang++.exe -v`
[ECC:DEBUG]:[settings_storage.py]:[__populate_common_flags]:[MainThread]: Populating common_flags with current variables.
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '$project_base_path' to '['D:\\projects\\<sanitized-project-root-directory>']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated '~/some_folder/*' to '['C:\\Users\\user\\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 '['D:\\projects\\<sanitized-project-root-directory>\\some\\project\\path\\*']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated 'D:/tools/msys64/mingw64/bin/' to '['D:\\tools\\msys64\\mingw64\\bin']'
[ECC:DEBUG]:[file.py]:[expand_all]:[MainThread]: Populated 'D:/tools/msys64/mingw64/bin/cmake.exe' to '['D:\\tools\\msys64\\mingw64\\bin\\cmake.exe']'
[ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[MainThread]: settings initialized for view: 27
[ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[MainThread]: on_activated_async view id 27
[ECC:DEBUG]:[view_config_manager.py]:[load_for_view]:[Thread-5]: Generate new config for path: 27
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-5]: init completer based on libclang
[ECC:DEBUG]:[lib_complete.py]:[__init__]:[Thread-5]: using bundled cindex: EasyClangComplete.plugin.clang.cindex50
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Platform: Windows, ('64bit', 'WindowsPE')
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Python version: 3.3.6
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: User provided libclang_path: 'D:\tools\msys64\mingw64\bin'
[ECC:DEBUG]:[clang_utils.py]:[get_folder_and_name]:[Thread-5]: User provided folder for libclang: 'D:\tools\msys64\mingw64\bin'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Searching for: 'libclang.dll'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Searching in user provided folder: 'D:\tools\msys64\mingw64\bin'
[ECC:ERROR]:[lib_complete.py]:[__init__]:[Thread-5]: error: [WinError 126] The specified module could not be found. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
[ECC:ERROR]:[view_config.py]:[__init_completer]:[Thread-5]: cannot initialize completer with libclang.
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-5]: falling back to using clang in a subprocess.
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-5]: init completer based on clang from cmd
[ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[Dummy-6]: on_activated_async view id 27
[ECC:DEBUG]:[thread_pool.py]:[new_job]:[Dummy-6]: Cannot cancel job: 'job: 'Updating translation unit''
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-5]: Folder c:\users\user\appdata\local\temp\EasyClangComplete exists.
[ECC:DEBUG]:[compiler_builtins.py]:[__init__]:[Thread-5]: Generating default flags from file 'ECC_temp_file.cpp' in folder 'c:\users\user\appdata\local\temp\EasyClangComplete'
[ECC:DEBUG]:[compiler_builtins.py]:[__generate_flags]:[Thread-5]: Generating new default flags with cmd: '['D:/tools/msys64/mingw64/bin/clang.exe', '-x', 'c', '-std=c11', '-c', 'ECC_temp_file.cpp', '-dM', '-v', '-E']'
[ECC:DEBUG]:[compiler_builtins.py]:[get_defines]:[Thread-5]: 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__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_MINOR__=2', '-D__GNUC_PATCHLEVEL__=1', '-D__GNUC_STDC_INLINE__=1', '-D__GNUC__=4', '-D__GXX_ABI_VERSION=1002', '-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__STDC_HOSTED__=1', '-D__STDC_UTF_16__=1', '-D__STDC_UTF_32__=1', '-D__STDC_VERSION__=201112L', '-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 11.0.0 (https://github.com/msys2/MINGW-packages 587690290e514a13a7a61be3f9116a1d042d2e4e)"', '-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__=11', '-D__clang_minor__=0', '-D__clang_patchlevel__=0', '-D__clang_version__="11.0.0 (https://github.com/msys2/MINGW-packages 587690290e514a13a7a61be3f9116a1d042d2e4e)"', '-D__code_model_small__=1', '-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__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-5]: Tokeninzing default flags
[ECC:DEBUG]:[flag.py]:[tokenize_list]:[Thread-5]: Tokenizing: ['-x', 'c', '-std=c11', '-ID:\\tools\\msys64\\mingw64\\lib\\clang\\11.0.0\\include', '-ID:\\tools\\msys64\\mingw64\\x86_64-w64-mingw32\\include', '-ID:\\tools\\msys64\\mingw64\\include']
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Common
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Source
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'CMakeLists.txt' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Found 'CMakeLists.txt' file: D:\projects\<sanitized-project-root-directory>\tests\CMakeLists.txt
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Skipping file '<EasyClangComplete.plugin.utils.file.File object at 0x0000019EB0EC6C88>'. 
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: No line starts with: '['project(', 'project (']'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Found 'CMakeLists.txt' file: D:\projects\<sanitized-project-root-directory>\CMakeLists.txt
[ECC:DEBUG]:[file.py]:[contains]:[Thread-5]: found needed line: 'project(emulator)'
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[current]: 'D:\projects\<sanitized-project-root-directory>\CMakeLists.txt'
[ECC:DEBUG]:[catkinizer.py]:[catkinize_if_needed]:[Thread-5]: Auto-catkinize supports only Linux currently.
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[generate new db]
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-5]: Folder c:\users\user\appdata\local\temp\EasyClangComplete\cmake_builds\961bc2838ed24c3c465ad549dad7c8bf exists.
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-5]: Prefix paths to prepend: []
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-5]: Prepended prefix paths: 
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-5]: Updated CMAKE_PREFIX_PATH: 
[ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-5]:  running command: ['D:\\tools\\msys64\\mingw64\\bin\\cmake.exe', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', 'D:\\projects\\<sanitized-project-root-directory>', '-DCMAKE_TOOLCHAIN_FILE=c:\\users\\user\\appdata\\local\\temp\\EasyClangComplete\\cmake_builds\\961bc2838ed24c3c465ad549dad7c8bf\\ECC-Toolchain.cmake']
[ECC:DEBUG]:[tools.py]:[run_command]:[Thread-5]: Command finished with code: 1
[ECC:DEBUG]:[tools.py]:[run_command]:[Thread-5]: Command output: 
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
CMake Error at D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
  version "1.1.1i")
Call Stack (most recent call first):
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindOpenSSL.cmake:536 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeOutput.log".
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeError.log".

[ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-5]: Cmake produced output: 
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
CMake Error at D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
  version "1.1.1i")
Call Stack (most recent call first):
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindOpenSSL.cmake:536 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeOutput.log".
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeError.log".

[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'compile_commands.json' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[CppProperties.py]:[get_flags]:[Thread-5]: [CppProperties]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[CppProperties.py]:[get_flags]:[Thread-5]: [CppProperties]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'CppProperties.json' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[c_cpp_properties.py]:[get_flags]:[Thread-5]: [c_cpp_properties]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[c_cpp_properties.py]:[get_flags]:[Thread-5]: [c_cpp_properties]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'c_cpp_properties.json' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[flags_file.py]:[get_flags]:[Thread-5]: [clang_complete_file]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[flags_file.py]:[get_flags]:[Thread-5]: [clang_complete_file]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching '.clang_complete' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Merge
[ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-5]: lang flags: [(-x c), (-std=c11), (-ID:\tools\msys64\mingw64\lib\clang\11.0.0\include), (-ID:\tools\msys64\mingw64\x86_64-w64-mingw32\include), (-ID:\tools\msys64\mingw64\include)]
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Appending and filtering flags with ignore patterns: ['some_flag_pattern*', '-W_other_pattern_$project_path*']
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-5]: Folder c:\users\user\appdata\local\temp\EasyClangComplete\c22a51682cced445592ef20508fefa0f exists.
[ECC:DEBUG]:[bin_complete.py]:[run_clang_command]:[Thread-5]: clang command: 
'D:\tools\msys64\mingw64\bin\clang++.exe' '-c' '-fsyntax-only' '-x' 'c' '-std=c11' '-I' 'D:\tools\msys64\mingw64\lib\clang\11.0.0\include' '-I' 'D:\tools\msys64\mingw64\x86_64-w64-mingw32\include' '-I' 'D:\tools\msys64\mingw64\include' '-I' 'D:\projects\<sanitized-project-root-directory>' 'c:\users\user\appdata\local\temp\EasyClangComplete\c22a51682cced445592ef20508fefa0f\test_crypto.c'
[ECC:DEBUG]:[bin_complete.py]:[update]:[Thread-5]: rebuilding done in 0.08477210998535156 seconds
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-5]: Generating error regions for view 27
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-5]: 1 error regions ready
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-5]: Showing error regions: []
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-5]: Showing warning regions: []
[ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-5]: updated config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x0000019EB0FE1E10>
[ECC:DEBUG]:[view_config_manager.py]:[load_for_view]:[Thread-5]: Config exists for path: 27
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-5]: init completer based on libclang
[ECC:DEBUG]:[lib_complete.py]:[__init__]:[Thread-5]: using bundled cindex: EasyClangComplete.plugin.clang.cindex50
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Platform: Windows, ('64bit', 'WindowsPE')
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Python version: 3.3.6
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: User provided libclang_path: 'D:\tools\msys64\mingw64\bin'
[ECC:DEBUG]:[clang_utils.py]:[get_folder_and_name]:[Thread-5]: User provided folder for libclang: 'D:\tools\msys64\mingw64\bin'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Searching for: 'libclang.dll'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Searching in user provided folder: 'D:\tools\msys64\mingw64\bin'
[ECC:ERROR]:[lib_complete.py]:[__init__]:[Thread-5]: error: [WinError 126] The specified module could not be found. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
[ECC:ERROR]:[view_config.py]:[__init_completer]:[Thread-5]: cannot initialize completer with libclang.
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-5]: falling back to using clang in a subprocess.
[ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-5]: init completer based on clang from cmd
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-5]: Folder c:\users\user\appdata\local\temp\EasyClangComplete exists.
[ECC:DEBUG]:[compiler_builtins.py]:[__init__]:[Thread-5]: Generating default flags from file 'ECC_temp_file.cpp' in folder 'c:\users\user\appdata\local\temp\EasyClangComplete'
[ECC:DEBUG]:[compiler_builtins.py]:[__generate_flags]:[Thread-5]: Using cached default flags.
[ECC:DEBUG]:[view_config.py]:[__get_default_flags]:[Thread-5]: Tokeninzing default flags
[ECC:DEBUG]:[flag.py]:[tokenize_list]:[Thread-5]: Tokenizing: ['-x', 'c', '-std=c11', '-ID:\\tools\\msys64\\mingw64\\lib\\clang\\11.0.0\\include', '-ID:\\tools\\msys64\\mingw64\\x86_64-w64-mingw32\\include', '-ID:\\tools\\msys64\\mingw64\\include']
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Common
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Source
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'CMakeLists.txt' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Found 'CMakeLists.txt' file: D:\projects\<sanitized-project-root-directory>\tests\CMakeLists.txt
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Skipping file '<EasyClangComplete.plugin.utils.file.File object at 0x0000019EB0EC1128>'. 
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: No line starts with: '['project(', 'project (']'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Found 'CMakeLists.txt' file: D:\projects\<sanitized-project-root-directory>\CMakeLists.txt
[ECC:DEBUG]:[file.py]:[contains]:[Thread-5]: found needed line: 'project(emulator)'
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[current]: 'D:\projects\<sanitized-project-root-directory>\CMakeLists.txt'
[ECC:DEBUG]:[catkinizer.py]:[catkinize_if_needed]:[Thread-5]: Auto-catkinize supports only Linux currently.
[ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-5]: [cmake]:[generate new db]
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-5]: Folder c:\users\user\appdata\local\temp\EasyClangComplete\cmake_builds\961bc2838ed24c3c465ad549dad7c8bf exists.
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-5]: Prefix paths to prepend: []
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-5]: Prepended prefix paths: 
[ECC:DEBUG]:[cmake_file.py]:[__prepend_prefix_paths]:[Thread-5]: Updated CMAKE_PREFIX_PATH: 
[ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-5]:  running command: ['D:\\tools\\msys64\\mingw64\\bin\\cmake.exe', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', 'D:\\projects\\<sanitized-project-root-directory>', '-DCMAKE_TOOLCHAIN_FILE=c:\\users\\user\\appdata\\local\\temp\\EasyClangComplete\\cmake_builds\\961bc2838ed24c3c465ad549dad7c8bf\\ECC-Toolchain.cmake']
[ECC:DEBUG]:[view_config_manager.py]:[get_from_cache]:[Dummy-6]: config exists for view: 27
[ECC:DEBUG]:[view_config_manager.py]:[get_from_cache]:[Dummy-6]: config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x0000019EB0FE1E10>
[ECC:DEBUG]:[popup_error_vis.py]:[show_popup_if_needed]:[Dummy-6]: No error regions for row: 15
[ECC:DEBUG]:[tools.py]:[run_command]:[Thread-5]: Command finished with code: 1
[ECC:DEBUG]:[tools.py]:[run_command]:[Thread-5]: Command output: 
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
CMake Error at D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
  version "1.1.1i")
Call Stack (most recent call first):
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindOpenSSL.cmake:536 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeOutput.log".
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeError.log".

[ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-5]: Cmake produced output: 
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
CMake Error at D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
  version "1.1.1i")
Call Stack (most recent call first):
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  D:/tools/msys64/mingw64/share/cmake-3.19/Modules/FindOpenSSL.cmake:536 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeOutput.log".
See also "C:/Users/user/AppData/Local/Temp/EasyClangComplete/cmake_builds/961bc2838ed24c3c465ad549dad7c8bf/CMakeFiles/CMakeError.log".

[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'compile_commands.json' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[CppProperties.py]:[get_flags]:[Thread-5]: [CppProperties]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[CppProperties.py]:[get_flags]:[Thread-5]: [CppProperties]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'CppProperties.json' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[c_cpp_properties.py]:[get_flags]:[Thread-5]: [c_cpp_properties]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[c_cpp_properties.py]:[get_flags]:[Thread-5]: [c_cpp_properties]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching 'c_cpp_properties.json' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[flags_file.py]:[get_flags]:[Thread-5]: [clang_complete_file]:[get]: for file D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c
[ECC:DEBUG]:[flags_file.py]:[get_flags]:[Thread-5]: [clang_complete_file]:[cached]: 'None'
[ECC:DEBUG]:[file.py]:[search]:[Thread-5]: Searching '.clang_complete' file in: SearchScope: from_folder: D:\projects\<sanitized-project-root-directory>\tests, to_folder: D:\\projects\\<sanitized-project-root-directory>
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Merge
[ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-5]: lang flags: [(-x c), (-std=c11), (-ID:\tools\msys64\mingw64\lib\clang\11.0.0\include), (-ID:\tools\msys64\mingw64\x86_64-w64-mingw32\include), (-ID:\tools\msys64\mingw64\include)]
[ECC:DEBUG]:[view_config.py]:[__generate_essentials]:[Thread-5]: Appending and filtering flags with ignore patterns: ['some_flag_pattern*', '-W_other_pattern_$project_path*']
[ECC:DEBUG]:[view_config.py]:[needs_update]:[Thread-5]: view config needs no update.
[ECC:DEBUG]:[file.py]:[is_unchanged]:[Thread-5]: never seen file 'D:\projects\<sanitized-project-root-directory>\tests\test_crypto.c' before. Updating.
[ECC:DEBUG]:[view_config.py]:[update_if_needed]:[Thread-5]: config updates existing completer.
[ECC:DEBUG]:[file.py]:[get_temp_dir]:[Thread-5]: Folder c:\users\user\appdata\local\temp\EasyClangComplete\c22a51682cced445592ef20508fefa0f exists.
[ECC:DEBUG]:[bin_complete.py]:[run_clang_command]:[Thread-5]: clang command: 
'D:\tools\msys64\mingw64\bin\clang++.exe' '-c' '-fsyntax-only' '-x' 'c' '-std=c11' '-I' 'D:\tools\msys64\mingw64\lib\clang\11.0.0\include' '-I' 'D:\tools\msys64\mingw64\x86_64-w64-mingw32\include' '-I' 'D:\tools\msys64\mingw64\include' '-I' 'D:\projects\<sanitized-project-root-directory>' 'c:\users\user\appdata\local\temp\EasyClangComplete\c22a51682cced445592ef20508fefa0f\test_crypto.c'
[ECC:DEBUG]:[bin_complete.py]:[update]:[Thread-5]: rebuilding done in 0.07872605323791504 seconds
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-5]: Generating error regions for view 27
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-5]: Removing old error regions
[ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-5]: 1 error regions ready
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-5]: Showing error regions: []
[ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-5]: Showing warning regions: []
[ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-5]: updated config: <EasyClangComplete.plugin.view_config.view_config.ViewConfig object at 0x0000019EB0FE1E10>
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
Package Control: Skipping automatic upgrade, last run at 2021-02-02 18:48:03, next run at 2021-02-02 19:48:03 or after
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-3]: Skip young config: Age 29.38749098777771 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-16]: Skip young config: Age 59.38864612579346 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-17]: Skip young config: Age 89.38973212242126 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-18]: Skip young config: Age 119.39077115058899 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-19]: Skip young config: Age 149.39295291900635 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-20]: Skip young config: Age 179.39478707313538 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-21]: Skip young config: Age 209.3960690498352 < 1800. View: 27.
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[Dummy-6]: no settings for view 73. Reinitializing.
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-6]: Overriding settings by project ones if needed:
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-6]: Valid prefixes: ['ecc_', 'easy_clang_complete_']
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-6]: Reading settings...
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-6]: Settings sucessfully read...
[ECC:DEBUG]:[file.py]:[expand_all]:[Dummy-6]: Populated 'D:/tools/msys64/mingw64/bin/clang++.exe' to '['D:\\tools\\msys64\\mingw64\\bin\\clang++.exe']'
[ECC:INFO]:[clang_utils.py]:[get_clang_version_str]:[Dummy-6]: Getting version from command: `D:\tools\msys64\mingw64\bin\clang++.exe -v`
[ECC:DEBUG]:[settings_storage.py]:[__populate_common_flags]:[Dummy-6]: Populating common_flags with current variables.
[ECC:DEBUG]:[file.py]:[expand_all]:[Dummy-6]: Populated '~/some_folder/*' to '['C:\\Users\\user\\some_folder\\*']'
[ECC:DEBUG]:[file.py]:[expand_all]:[Dummy-6]: Populated '/some/absolute/file.ext' to '['\\some\\absolute\\file.ext']'
[ECC:DEBUG]:[file.py]:[expand_all]:[Dummy-6]: Populated '$project_base_path/some/project/path/*' to '['\\some\\project\\path\\*']'
[ECC:DEBUG]:[file.py]:[expand_all]:[Dummy-6]: Populated 'D:/tools/msys64/mingw64/bin/' to '['D:\\tools\\msys64\\mingw64\\bin']'
[ECC:DEBUG]:[file.py]:[expand_all]:[Dummy-6]: Populated 'D:/tools/msys64/mingw64/bin/cmake.exe' to '['D:\\tools\\msys64\\mingw64\\bin\\cmake.exe']'
[ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[Dummy-6]: settings initialized for view: 73
[ECC:DEBUG]:[subl_bridge.py]:[get_view_lang]:[Dummy-6]: ECC does nothing for language syntax: 'JSON'
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-22]: Skip young config: Age 239.39712595939636 < 1800. View: 27.
[ECC:DEBUG]:[subl_bridge.py]:[get_view_lang]:[Dummy-6]: ECC does nothing for language syntax: 'JSON'
[ECC:DEBUG]:[subl_bridge.py]:[get_view_lang]:[Dummy-6]: ECC does nothing for language syntax: 'JSON'
[ECC:DEBUG]:[subl_bridge.py]:[get_view_lang]:[Dummy-6]: ECC does nothing for language syntax: 'JSON'
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-24]: Skip young config: Age 269.397686958313 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-25]: Skip young config: Age 299.397714138031 < 1800. View: 27.
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-26]: Skip young config: Age 329.39776492118835 < 1800. View: 27.
[ECC:DEBUG]:[EasyClangComplete.py]:[on_close]:[MainThread]: closing view 73
[ECC:DEBUG]:[settings_manager.py]:[clear_for_view]:[MainThread]: clearing settings for view: 73
[ECC:DEBUG]:[view_config_manager.py]:[clear_for_view]:[Thread-5]: Trying to clear config for view: 73
[ECC:DEBUG]:[EasyClangComplete.py]:[config_removed]:[Thread-5]: removed config for id: 73
[ECC:DEBUG]:[subl_bridge.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[view_config_manager.py]:[__remove_old_configs]:[Thread-27]: Skip young config: Age 359.39971113204956 < 1800. View: 27.

Visual Studio binaries get their own set of errors, but I am not using it for projects where I need autocompletion anyway.

I noticed in the logs that the plugin fails to recognize libclang:

[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Searching for: 'libclang.dll'
[ECC:DEBUG]:[clang_utils.py]:[find_libclang]:[Thread-5]: Searching in user provided folder: 'D:\tools\msys64\mingw64\bin'
[ECC:ERROR]:[lib_complete.py]:[__init__]:[Thread-5]: error: [WinError 126] The specified module could not be found. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
[ECC:ERROR]:[view_config.py]:[__init_completer]:[Thread-5]: cannot initialize completer with libclang.

Tried setting the full DLL path and giving it a directory, same result. The file is definitely there:

$ find /d/tools/msys64/mingw64/bin -name "libclang.dll"
/d/tools/msys64/mingw64/bin/libclang.dll

Could this be what it is? Is something broken with loading libclang from non-default paths on Windows?

@pandasauce
Copy link
Author

pandasauce commented Feb 3, 2021

Resolved part of the issue.

My actual builds were based on cmake-generated MinGW makefiles and done out of source. Pointed the plugin at the build directory and it started semi-working: I have to set "show_type_info": false to get auto-completion, because it still fails to load libclang with the error above. I'll rename the issue.

@pandasauce pandasauce changed the title Does not work on Windows with non-default directories Does not support libclang in non-default directories on Windows Feb 3, 2021
@niosus
Copy link
Owner

niosus commented Feb 6, 2021

@pandasauce yeah, I have to find the time and fix the MinGW usecase 🤷 I am not a Windows person, so it takes me a while to get started on this. If you have ideas what would be the fix, any pointers would be much appreciated.

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just comment here to prevent this from happening.

@stale stale bot added the wontfix label Apr 16, 2022
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