niosus / EasyClangComplete

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

Path variables not expanding #537

Closed smfelsher closed 5 years ago

smfelsher commented 5 years ago

System info:

What happens:

The path variable $project_base_path is not expanding properly when used in the flags option of ecc_flags_sources.

Settings in my project file:

"ecc_flags_sources":
[
   {
      "file": "CMakeLists.txt",
    "search_in": "$project_base_path",
    "flags":
    [
       "-DMicroBlazeBSP_ROOT=$project_base_path/xv/xv_bsp/microblaze_0",
       "-DCMAKE_TOOLCHAIN_FILE=$project_base_path/cmake/toolchain/gcc_microblaze.cmake"
    ]
   },
],
Log that illustrates the issue: ``` DPI scale (detected): 2 startup, version: 3176 linux x64 channel: stable executable: /opt/sublime_text/sublime_text working dir: / packages path: /home/steve/.config/sublime-text-3/Packages state path: /home/steve/.config/sublime-text-3/Local zip path: /opt/sublime_text/Packages zip path: /home/steve/.config/sublime-text-3/Installed Packages ignored_packages: ["Vintage"] Errors parsing theme: icon_folder_loading is missing layer0.opacity, setting to 1.0 for backwards compatibility icon_file_type is missing layer0.opacity, setting to 1.0 for backwards compatibility pre session restore time: 0.540623 font face "Inconsolata" has different widths for bold characters, disabling to prevent text reflow loading dictionary Packages/Language - English/en_US.dic startup time: 0.663693 first paint time: 0.668643 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.delete_word reloading plugin Default.detect_indentation reloading plugin Default.duplicate_line 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.swap_line reloading plugin Default.switch_file reloading plugin Default.symbol reloading plugin Default.transform reloading plugin Default.transpose reloading plugin Default.trim_trailing_white_space 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.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 A File Icon.A File Icon reloading plugin Boxy Theme.BT reloading plugin Boxy Theme.Icons reloading plugin Clang Format.clang_format reloading plugin CMake.AutoComplete reloading plugin DoxyDoxygen.Doxy ------==== DoxyDoxygen plugins loaded ====------ 0 sub-modules to reload reloading plugin GitGutter.plugin reloading plugin Package Control.1_reloader reloading plugin Package Control.2_bootstrap reloading plugin Package Control.Package Control reloading plugin SublimeGit.SublimeGit reloading plugin SublimeGoogle.SublimeGoogle reloading plugin SublimeManpage.SublimeManpage reloading plugin TerminalView.exec reloading plugin TerminalView.gateone_terminal_emulator reloading plugin TerminalView.linux_pty reloading plugin TerminalView.pyte_terminal_emulator reloading plugin TerminalView.sublime_terminal_buffer reloading plugin TerminalView.sublime_view_cache reloading plugin TerminalView.TerminalView reloading plugin TerminalView.utils reloading plugin EasyClangComplete.EasyClangComplete reloading plugin TodoReview.TodoReview plugins loaded [ECC:DEBUG]:[settings_storage.py]:[need_reparse]:[MainThread]: settings complete [ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[MainThread]: no settings for view 29. 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]: flags_sources <-- '[{'search_in': '$project_base_path', 'file': 'CMakeLists.txt', 'flags': ['-DMicroBlazeBSP_ROOT=$project_base_path/xv/xv_bsp/microblaze_0', '-DCMAKE_TOOLCHAIN_FILE=$project_base_path/cmake/toolchain/gcc_microblaze.cmake']}]' [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[MainThread]: Settings sucessfully read... [ECC:INFO]:[tools.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]:[settings_storage.py]:[__replace_wildcard_if_needed]:[MainThread]: populated '-I/usr/lib/clang/$clang_version/include' to '-I/usr/lib/clang/7.0.0/include' [ECC:DEBUG]:[settings_storage.py]:[__replace_wildcard_if_needed]:[MainThread]: populated '$project_base_path' to '/home/steve/sandboxes/vipro-stress-test' [ECC:CRITICAL]:[settings_storage.py]:[__update_ignore_list]:[MainThread]: Cannot update paths of ignore list. [ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[MainThread]: settings initialized for view: 29 [ECC:DEBUG]:[tools.py]:[get_view_lang]:[MainThread]: ECC does nothing for language syntax: 'JSON (Sublime)' [ECC:DEBUG]:[tools.py]:[get_view_lang]:[Dummy-5]: ECC does nothing for language syntax: 'JSON (Sublime)' [ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-5]: view file_name is None Package Control: Skipping automatic upgrade, last run at 2018-11-24 13:23:44, next run at 2018-11-24 14:23:44 or after [ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[Dummy-5]: no settings for view 27. 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]: flags_sources <-- '[{'search_in': '$project_base_path', 'file': 'CMakeLists.txt', 'flags': ['-DMicroBlazeBSP_ROOT=$project_base_path/xv/xv_bsp/microblaze_0', '-DCMAKE_TOOLCHAIN_FILE=$project_base_path/cmake/toolchain/gcc_microblaze.cmake']}]' [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: Settings sucessfully read... [ECC:INFO]:[tools.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_storage.py]:[__replace_wildcard_if_needed]:[Dummy-5]: populated '-I/usr/lib/clang/$clang_version/include' to '-I/usr/lib/clang/7.0.0/include' [ECC:DEBUG]:[settings_storage.py]:[__replace_wildcard_if_needed]:[Dummy-5]: populated '$project_base_path' to '/home/steve/sandboxes/vipro-stress-test' [ECC:CRITICAL]:[settings_storage.py]:[__update_ignore_list]:[Dummy-5]: Cannot update paths of ignore list. [ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[Dummy-5]: settings initialized for view: 27 [ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[Dummy-5]: on_activated_async view id 27 [ECC:DEBUG]:[view_config.py]:[load_for_view]:[Thread-9]: generate new config for path: 27 [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]:[utils.py]:[find_libclang_dir]:[Thread-9]: platform: ('64bit', '') [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: python version: 3.3.6 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: we are on 'Linux' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: user provided libclang_path: [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: searching for: 'libclang-$version.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: libclang search output = 'libclang-7.0.so' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-9]: real output: libclang-7.0.so [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: Checking path: ./libclang-7.0.so [ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-9]: Clang could not find 'libclang-7.0.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: searching for: 'libclang.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: libclang search output = 'libclang.so' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-9]: real output: libclang.so [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: Checking path: ./libclang.so [ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-9]: Clang could not find 'libclang.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: searching for: 'libclang-$version.so.1' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: libclang search output = 'libclang-7.0.so.1' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-9]: real output: libclang-7.0.so.1 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: Checking path: ./libclang-7.0.so.1 [ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-9]: Clang could not find 'libclang-7.0.so.1' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: searching for: 'libclang.so.1' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: libclang search output = '/usr/lib/llvm-7/bin/../lib/libclang.so.1' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-9]: real output: /usr/lib/llvm-7/bin/../lib/libclang.so.1 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-9]: Checking path: /usr/lib/llvm-7/lib/libclang.so.1 [ECC:INFO]:[utils.py]:[find_libclang_dir]:[Thread-9]: found libclang library file: '/usr/lib/llvm-7/lib/libclang.so.1' [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-9]: [cmake]:[get]: for file /home/steve/sandboxes/vipro-stress-test/xv/xv_single_step/src/main.c [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-9]: [cmake]:[cached]: 'None' [ECC:DEBUG]:[tools.py]:[search]:[Thread-9]: searching 'CMakeLists.txt' from '/home/steve/sandboxes/vipro-stress-test' to '/' [ECC:DEBUG]:[tools.py]:[search]:[Thread-9]: found 'CMakeLists.txt' file: /home/steve/sandboxes/vipro-stress-test/CMakeLists.txt [ECC:DEBUG]:[tools.py]:[contains]:[Thread-9]: found needed line: 'project(top-level NONE)' [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-9]: [cmake]:[current]: '/home/steve/sandboxes/vipro-stress-test/CMakeLists.txt' [ECC:DEBUG]:[catkinizer.py]:[catkinize_if_needed]:[Thread-9]: Not a catkin project. [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-9]: [cmake]:[generate new db] [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-9]: prefix paths: [] [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-9]: merged paths: [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-9]: CMAKE_PREFIX_PATH: [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-9]: running command: ['cmake', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DMicroBlazeBSP_ROOT=$project_base_path/xv/xv_bsp/microblaze_0', '-DCMAKE_TOOLCHAIN_FILE=$project_base_path/cmake/toolchain/gcc_microblaze.cmake', '/home/steve/sandboxes/vipro-stress-test'] [ECC:DEBUG]:[tools.py]:[run_command]:[Thread-9]: command finished with code: 1 [ECC:DEBUG]:[tools.py]:[run_command]:[Thread-9]: command output: CMake Error at /usr/local/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:100 (message): Could not find toolchain file: $project_base_path/cmake/toolchain/gcc_microblaze.cmake Call Stack (most recent call first): CMakeLists.txt:4 (project) CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-9]: cmake produced output: CMake Error at /usr/local/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:100 (message): Could not find toolchain file: $project_base_path/cmake/toolchain/gcc_microblaze.cmake Call Stack (most recent call first): CMakeLists.txt:4 (project) CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! [ECC:ERROR]:[cmake_file.py]:[__compile_cmake]:[Thread-9]: cmake has finished, but no compilation database. [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-9]: view is 27 [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-9]: translation unit does not exist. Creating. [ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-9]: clang flags are: ['-c', '-fsyntax-only', '-x', 'c', '-std=c11', '-I/usr/lib/clang/7.0.0/include'] [ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-9]: compilation started for view id: 27 [ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-9]: compilation done in 0.0040514469146728516 seconds [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-9]: reparsing translation_unit for view 27 [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-9]: reparsed in 0.019666671752929688 seconds [ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-9]: generating error regions for view 27 [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: [(1744, 1749), (1762, 1778), (1785, 1794), (1801, 1807), (1821, 1842), (1867, 1877), (1907, 1917), (1965, 1975), (1977, 1990), (1992, 2018), (2020, 2029), (2031, 2061), (2098, 2103), (2138, 2164), (2166, 2176), (2183, 2191), (422, 424), (2297, 2301), (2316, 2336), (2337, 2344), (2379, 2387), (2406, 2439), (2244, 2248), (2263, 2277), (2278, 2285), (949, 959), (1187, 1197), (1263, 1268), (1292, 1295), (1327, 1334), (1406, 1422), (1452, 1460), (1499, 1506), (1621, 1631), (1654, 1662)] [ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-9]: updated config: ```

If I replace the variables with the full path (or ~), then the CMake configuration is OK.

"ecc_flags_sources":
[
    {
       "file": "CMakeLists.txt",
    "search_in": "$project_base_path",
    "flags":
    [
       "-DMicroBlazeBSP_ROOT=~/sandboxes/vipro-stress-test/xv/xv_bsp/microblaze_0",
       "-DCMAKE_TOOLCHAIN_FILE=/home/steve/sandboxes/vipro-stress-test/cmake/toolchain/gcc_microblaze.cmake"
    ]
},
Log that illustrates the issue: ``` DPI scale (detected): 2 startup, version: 3176 linux x64 channel: stable executable: /opt/sublime_text/sublime_text working dir: / packages path: /home/steve/.config/sublime-text-3/Packages state path: /home/steve/.config/sublime-text-3/Local zip path: /opt/sublime_text/Packages zip path: /home/steve/.config/sublime-text-3/Installed Packages ignored_packages: ["Vintage"] Errors parsing theme: icon_folder_loading is missing layer0.opacity, setting to 1.0 for backwards compatibility icon_file_type is missing layer0.opacity, setting to 1.0 for backwards compatibility pre session restore time: 0.575378 font face "Inconsolata" has different widths for bold characters, disabling to prevent text reflow loading dictionary Packages/Language - English/en_US.dic startup time: 0.702384 first paint time: 0.716198 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.delete_word reloading plugin Default.detect_indentation reloading plugin Default.duplicate_line 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.swap_line reloading plugin Default.switch_file reloading plugin Default.symbol reloading plugin Default.transform reloading plugin Default.transpose reloading plugin Default.trim_trailing_white_space 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.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 A File Icon.A File Icon reloading plugin Boxy Theme.BT reloading plugin Boxy Theme.Icons reloading plugin Clang Format.clang_format reloading plugin CMake.AutoComplete reloading plugin DoxyDoxygen.Doxy ------==== DoxyDoxygen plugins loaded ====------ 0 sub-modules to reload reloading plugin GitGutter.plugin reloading plugin Package Control.1_reloader reloading plugin Package Control.2_bootstrap reloading plugin Package Control.Package Control reloading plugin SublimeGit.SublimeGit reloading plugin SublimeGoogle.SublimeGoogle reloading plugin SublimeManpage.SublimeManpage reloading plugin TerminalView.exec reloading plugin TerminalView.gateone_terminal_emulator reloading plugin TerminalView.linux_pty reloading plugin TerminalView.pyte_terminal_emulator reloading plugin TerminalView.sublime_terminal_buffer reloading plugin TerminalView.sublime_view_cache reloading plugin TerminalView.TerminalView reloading plugin TerminalView.utils reloading plugin EasyClangComplete.EasyClangComplete reloading plugin TodoReview.TodoReview plugins loaded [ECC:DEBUG]:[settings_storage.py]:[need_reparse]:[MainThread]: settings complete [ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[MainThread]: no settings for view 29. 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]: flags_sources <-- '[{'search_in': '$project_base_path', 'file': 'CMakeLists.txt', 'flags': ['-DMicroBlazeBSP_ROOT=~/sandboxes/vipro-stress-test/xv/xv_bsp/microblaze_0', '-DCMAKE_TOOLCHAIN_FILE=/home/steve/sandboxes/vipro-stress-test/cmake/toolchain/gcc_microblaze.cmake']}]' [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[MainThread]: Settings sucessfully read... [ECC:INFO]:[tools.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]:[settings_storage.py]:[__replace_wildcard_if_needed]:[MainThread]: populated '-I/usr/lib/clang/$clang_version/include' to '-I/usr/lib/clang/7.0.0/include' [ECC:DEBUG]:[settings_storage.py]:[__replace_wildcard_if_needed]:[MainThread]: populated '$project_base_path' to '/home/steve/sandboxes/vipro-stress-test' [ECC:CRITICAL]:[settings_storage.py]:[__update_ignore_list]:[MainThread]: Cannot update paths of ignore list. [ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[MainThread]: settings initialized for view: 29 [ECC:DEBUG]:[tools.py]:[get_view_lang]:[MainThread]: ECC does nothing for language syntax: 'JSON (Sublime)' [ECC:DEBUG]:[tools.py]:[get_view_lang]:[Dummy-5]: ECC does nothing for language syntax: 'JSON (Sublime)' [ECC:DEBUG]:[tools.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 27. 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]: flags_sources <-- '[{'search_in': '$project_base_path', 'file': 'CMakeLists.txt', 'flags': ['-DMicroBlazeBSP_ROOT=~/sandboxes/vipro-stress-test/xv/xv_bsp/microblaze_0', '-DCMAKE_TOOLCHAIN_FILE=/home/steve/sandboxes/vipro-stress-test/cmake/toolchain/gcc_microblaze.cmake']}]' [ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-5]: Settings sucessfully read... [ECC:INFO]:[tools.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_storage.py]:[__replace_wildcard_if_needed]:[Dummy-5]: populated '-I/usr/lib/clang/$clang_version/include' to '-I/usr/lib/clang/7.0.0/include' [ECC:DEBUG]:[settings_storage.py]:[__replace_wildcard_if_needed]:[Dummy-5]: populated '$project_base_path' to '/home/steve/sandboxes/vipro-stress-test' [ECC:CRITICAL]:[settings_storage.py]:[__update_ignore_list]:[Dummy-5]: Cannot update paths of ignore list. [ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[Dummy-5]: settings initialized for view: 27 [ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[Dummy-5]: on_activated_async view id 27 [ECC:DEBUG]:[view_config.py]:[load_for_view]:[Thread-7]: generate new config for path: 27 [ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-7]: init completer based on libclang [ECC:DEBUG]:[lib_complete.py]:[__init__]:[Thread-7]: using bundled cindex: EasyClangComplete.plugin.clang.cindex50 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: platform: ('64bit', '') [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: python version: 3.3.6 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: we are on 'Linux' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: user provided libclang_path: [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: searching for: 'libclang-$version.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: libclang search output = 'libclang-7.0.so' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-7]: real output: libclang-7.0.so [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: Checking path: ./libclang-7.0.so [ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-7]: Clang could not find 'libclang-7.0.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: searching for: 'libclang.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: libclang search output = 'libclang.so' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-7]: real output: libclang.so [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: Checking path: ./libclang.so [ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-7]: Clang could not find 'libclang.so' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: searching for: 'libclang-$version.so.1' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: libclang search output = 'libclang-7.0.so.1' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-7]: real output: libclang-7.0.so.1 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: Checking path: ./libclang-7.0.so.1 [ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-7]: Clang could not find 'libclang-7.0.so.1' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: searching for: 'libclang.so.1' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: libclang search output = '/usr/lib/llvm-7/bin/../lib/libclang.so.1' [ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-7]: real output: /usr/lib/llvm-7/bin/../lib/libclang.so.1 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-7]: Checking path: /usr/lib/llvm-7/lib/libclang.so.1 [ECC:INFO]:[utils.py]:[find_libclang_dir]:[Thread-7]: found libclang library file: '/usr/lib/llvm-7/lib/libclang.so.1' [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-7]: [cmake]:[get]: for file /home/steve/sandboxes/vipro-stress-test/xv/xv_single_step/src/main.c [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-7]: [cmake]:[cached]: 'None' [ECC:DEBUG]:[tools.py]:[search]:[Thread-7]: searching 'CMakeLists.txt' from '/home/steve/sandboxes/vipro-stress-test' to '/' [ECC:DEBUG]:[tools.py]:[search]:[Thread-7]: found 'CMakeLists.txt' file: /home/steve/sandboxes/vipro-stress-test/CMakeLists.txt [ECC:DEBUG]:[tools.py]:[contains]:[Thread-7]: found needed line: 'project(top-level NONE)' [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-7]: [cmake]:[current]: '/home/steve/sandboxes/vipro-stress-test/CMakeLists.txt' [ECC:DEBUG]:[catkinizer.py]:[catkinize_if_needed]:[Thread-7]: Not a catkin project. [ECC:DEBUG]:[cmake_file.py]:[get_flags]:[Thread-7]: [cmake]:[generate new db] [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-7]: prefix paths: [] [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-7]: merged paths: [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-7]: CMAKE_PREFIX_PATH: [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-7]: running command: ['cmake', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DMicroBlazeBSP_ROOT=~/sandboxes/vipro-stress-test/xv/xv_bsp/microblaze_0', '-DCMAKE_TOOLCHAIN_FILE=/home/steve/sandboxes/vipro-stress-test/cmake/toolchain/gcc_microblaze.cmake', '/home/steve/sandboxes/vipro-stress-test'] [ECC:DEBUG]:[cmake_file.py]:[__compile_cmake]:[Thread-7]: cmake produced output: -- The C compiler identification is GNU 4.6.4 -- Check for working C compiler: /opt/Xilinx/14.7/ISE_DS/EDK/gnu/microblaze/lin/bin/mb-gcc -- Check for working C compiler: /opt/Xilinx/14.7/ISE_DS/EDK/gnu/microblaze/lin/bin/mb-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found MicroBlazeBSP: /home/steve/sandboxes/vipro-stress-test/xv/xv_bsp/microblaze_0/include -- The following REQUIRED packages have been found: * MicroBlazeBSP -- Configuring done -- Generating done -- Build files have been written to: /tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868 [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeCache.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/CMakeLists.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/cmake/modules/FindMicroBlazeBSP.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/cmake/toolchain/gcc_microblaze.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/xv/libxv/CMakeLists.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/xv/xv_ddr_test/CMakeLists.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/xv/xv_hello_world/CMakeLists.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/xv/xv_single_step/CMakeLists.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/xv/xv_stress_test/CMakeLists.txt' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeFiles/3.12.1/CMakeCCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeFiles/3.12.1/CMakeSystem.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeFiles/feature_tests.c' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeCCompiler.cmake.in' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeCCompilerABI.c' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeCInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeCommonLanguageInclude.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeCompilerIdDetection.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeDetermineCompileFeatures.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeDetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeDetermineCompilerABI.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeFindBinUtils.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeGenericSystem.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeInitializeConfigs.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeLanguageInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeParseArguments.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeParseImplicitLinkInfo.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeSystem.cmake.in' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeSystemSpecificInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeSystemSpecificInitialize.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeTestCompilerCommon.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/CMakeUnixFindMake.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/ADSP-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/ARMCC-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/AppleClang-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Borland-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Bruce-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/CMakeCommonCompilerMacros.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Clang-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Clang-DetermineCompilerInternal.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Compaq-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Cray-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Embarcadero-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Fujitsu-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/GHS-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/GNU-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/GNU-C-FeatureTests.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/GNU-C.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/GNU-FindBinUtils.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/GNU.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/HP-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/IAR-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Intel-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/MIPSpro-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/MSVC-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/NVIDIA-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/PGI-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/PathScale-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/SCO-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/SDCC-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/SunPro-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/TI-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/Watcom-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/XL-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Compiler/zOS-C-DetermineCompiler.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/FeatureSummary.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/FindPackageMessage.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Internal/FeatureTesting.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/usr/local/share/cmake-3.12/Modules/Platform/Generic.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeFiles/cmake.check_cache' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeFiles/3.12.1/CMakeSystem.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/CMakeFiles/CMakeDirectoryInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/libxv/CMakeFiles/CMakeDirectoryInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_hello_world/CMakeFiles/CMakeDirectoryInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_ddr_test/CMakeFiles/CMakeDirectoryInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_single_step/CMakeFiles/CMakeDirectoryInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_stress_test/CMakeFiles/CMakeDirectoryInformation.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/libxv/CMakeFiles/xv.dir/DependInfo.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_hello_world/CMakeFiles/xv_hello_world.elf.dir/DependInfo.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_ddr_test/CMakeFiles/xv_ddr_test.elf.dir/DependInfo.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_single_step/CMakeFiles/xv_single_step.elf.dir/DependInfo.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/xv/xv_stress_test/CMakeFiles/xv_stress_test.elf.dir/DependInfo.cmake' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/home/steve/sandboxes/vipro-stress-test/CMakeLists.txt' [ECC:DEBUG]:[compilation_db.py]:[get_flags]:[Thread-7]: [db]:[get]: for file /home/steve/sandboxes/vipro-stress-test/xv/xv_single_step/src/main.c [ECC:DEBUG]:[compilation_db.py]:[get_flags]:[Thread-7]: [db]:[cached]: 'None' [ECC:DEBUG]:[tools.py]:[search]:[Thread-7]: searching 'compile_commands.json' from '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868' to '/' [ECC:DEBUG]:[tools.py]:[search]:[Thread-7]: found 'compile_commands.json' file: /tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/compile_commands.json [ECC:DEBUG]:[tools.py]:[search]:[Thread-7]: Nothing to search for in file so its ok. [ECC:DEBUG]:[compilation_db.py]:[get_flags]:[Thread-7]: [db]:[current]: '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/compile_commands.json' [ECC:DEBUG]:[compilation_db.py]:[get_flags]:[Thread-7]: [db]:[load new] [ECC:DEBUG]:[compilation_db.py]:[get_flags]:[Thread-7]: [db]: put into cache: '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/compile_commands.json' [ECC:DEBUG]:[tools.py]:[update_mod_time]:[Thread-7]: updating modification time for file '/tmp/EasyClangComplete/cmake_builds/55c4e66094dd4782d1a69266e432f868/compile_commands.json' [ECC:DEBUG]:[view_config.py]:[__load_source_flags]:[Thread-7]: flags generated from 'CMakeLists.txt'. [ECC:DEBUG]:[view_config.py]:[__merge_flags]:[Thread-7]: Removing default std flag: '-std=c11' in favor of: '-std=gnu99' [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-7]: view is 27 [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-7]: translation unit does not exist. Creating. [ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-7]: clang flags are: ['-c', '-fsyntax-only', '-x', 'c', '-I/usr/lib/clang/7.0.0/include', '-I/home/steve/sandboxes/vipro-stress-test/xv/libxv/include', '-isystem', '/home/steve/sandboxes/vipro-stress-test/xv/xv_bsp/microblaze_0/include', '-mlittle-endian', '-mxl-barrel-shift', '-mxl-pattern-compare', '-mcpu=v8.50.c', '-mno-xl-soft-mul', '-Wl,--no-relax', '-O0', '-g3', '-Wall', '-Wextra', '-Wdouble-promotion', '-Wmissing-include-dirs', '-Wunused', '-Wshadow', '-Wconversion', '-Wsign-conversion', '-Wmissing-declarations', '-Wformat=2', '-pedantic', '-std=gnu99'] [ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-7]: compilation started for view id: 27 [ECC:DEBUG]:[lib_complete.py]:[parse_tu]:[Thread-7]: compilation done in 0.02582550048828125 seconds [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-7]: reparsing translation_unit for view 27 [ECC:DEBUG]:[lib_complete.py]:[update]:[Thread-7]: reparsed in 0.051198482513427734 seconds [ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-7]: generating error regions for view 27 [ECC:DEBUG]:[popup_error_vis.py]:[generate]:[Thread-7]: 1 error regions ready [ECC:DEBUG]:[popup_error_vis.py]:[show_errors]:[Thread-7]: showing error regions: [] [ECC:DEBUG]:[EasyClangComplete.py]:[config_updated]:[Thread-7]: updated config: Package Control: Skipping automatic upgrade, last run at 2018-11-24 13:23:44, next run at 2018-11-24 14:23:44 or after ```
niosus commented 5 years ago

Thanks for reporting. This is unfortunately not supported now. But it makes sense to have the support for this. I will try to implement it either today or in the upcoming week.

niosus commented 5 years ago

Sometimes I look at my code and thank myself for the design that doesn't suck too much. :laughing: It turned out that I can fix this issue with a single word. This fix will go live today.

smfelsher commented 5 years ago

Congratulations for not screwing the next person to look at your code, because it's usually YOU!

Looking forward to the next release. Thank you very much for your support!

Steve Felsher, Jr.

On Sun, Nov 25, 2018 at 5:08 AM Igor Bogoslavskyi notifications@github.com wrote:

Sometimes I look at my code and thank myself for the design that doesn't suck too much. 😆 It turned out that I can fix this issue with a single word. This fix will go live today.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/niosus/EasyClangComplete/issues/537#issuecomment-441429015, or mute the thread https://github.com/notifications/unsubscribe-auth/AYWdim3iyDrwvN3xj9Ik0hj9Niso-dZ0ks5uymwZgaJpZM4YxjYM .