Closed notnullnotvoid closed 6 years ago
Ok, so the reason for this is that somehow the plugin cannot detect proper version of clang. I will have to look a bit at why this can be the case. I don't see any errors that are usually present in the log if macOS cannot find clang.
Wait, I am confused on this. Are you using the version of libclang from llvm or from Apple? The output usually looks differently on macOS
Running clang --version
gives:
clang version 3.8.0 (tags/checker/checker-278)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /usr/local/bin
As far as I know, this is the version I got from installing xcode.
I think the relevant lines in the log are these:
[ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-6]: libclang search output = '/usr/local/bin/../lib/clang/3.8.0'
[ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-6]: real output: /usr/local/bin/../lib/clang/3.8.0
[ECC:DEBUG]:[utils.py]:[dir_from_output]:[Thread-6]: folder to search: /usr/local/bin/../lib/clang/3.8.0/../..
[ECC:WARNING]:[utils.py]:[find_libclang_dir]:[Thread-6]: clang could not find 'libclang.dylib'
[ECC:ERROR]:[utils.py]:[find_libclang_dir]:[Thread-6]: no libclang found at all
Can you check if the library is in those folders somewhere?
There's no libclang.dylib
in that folder, but there is one at /Library/Developer/CommandLineTools/usr/lib/libclang.dylib
What if you explicitly set the path to the libclang library in the settings of the plugin?
If I set "libclang_path": "/Library/Developer/CommandLineTools/usr/lib/libclang.dylib"
then it works. I guess libclang.dylib
just ended up in an unexpected place.
Ok, I'm glad that it works, I will close this issue for now, but will need to investigate if it happens more often.
System info:
3.1.1, build 3176
macOS 10.13.4 (17E202)
3.8.0
(latest xcode version)What happens:
Howevering over a method name causes an error dialog to come up with the following message:
This happens consistently with every source file I've tried.
Here is the console log: https://pastebin.com/YRrdCTZS And here is my EasyClangComplete.sublime-settings: https://pastebin.com/gknWYC7C
Console log
``` startup, version: 3176 osx x64 channel: stable executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text working dir: / packages path: /Users/stuntddude/Library/Application Support/Sublime Text 3/Packages state path: /Users/stuntddude/Library/Application Support/Sublime Text 3/Local zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages zip path: /Users/stuntddude/Library/Application Support/Sublime Text 3/Installed Packages ignored_packages: ["Anaconda", "Clang-Complete", "PyV8", "SideBarEnhancements", "TCL", "Vintage"] pre session restore time: 0.243532 using gpu buffer for window using gpu buffer for window using gpu buffer for window startup time: 0.447916 environment variables loaded using: /bin/zsh -l 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-backrefs 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.50-regex reloading plugin 0_package_control_loader.51-python-jinja2 reloading plugin 0_package_control_loader.55-mdpopups reloading plugin AdvancedNewFile.AdvancedNewFile reloading plugin Alignment.Alignment reloading plugin AutoFileName.autofilename reloading plugin AutoFileName.getimageinfo reloading plugin BracketHighlighter.bh_core reloading plugin BracketHighlighter.bh_logging reloading plugin BracketHighlighter.bh_plugin reloading plugin BracketHighlighter.bh_popup reloading plugin BracketHighlighter.bh_regions reloading plugin BracketHighlighter.bh_remove reloading plugin BracketHighlighter.bh_rules reloading plugin BracketHighlighter.bh_search reloading plugin BracketHighlighter.bh_swapping reloading plugin BracketHighlighter.bh_wrapping reloading plugin BracketHighlighter.support reloading plugin Color Highlighter.color_converter reloading plugin Color Highlighter.color_highlighter reloading plugin Color Highlighter.color_hover_listener reloading plugin Color Highlighter.color_scheme reloading plugin Color Highlighter.color_scheme_color_highlighter reloading plugin Color Highlighter.color_searcher reloading plugin Color Highlighter.color_selection_listener reloading plugin Color Highlighter.colors reloading plugin Color Highlighter.content_listener reloading plugin Color Highlighter.convert_color_command reloading plugin Color Highlighter.css_colors reloading plugin Color Highlighter.dummy_event_listener reloading plugin Color Highlighter.gutter_icons_color_highlighter reloading plugin Color Highlighter.load_resource reloading plugin Color Highlighter.main reloading plugin Color Highlighter.path reloading plugin Color Highlighter.phantoms_color_highlighter reloading plugin Color Highlighter.pick_color_command reloading plugin Color Highlighter.regex_compiler reloading plugin Color Highlighter.regions reloading plugin Color Highlighter.set_setting_command reloading plugin Color Highlighter.settings reloading plugin Color Highlighter.st_helper reloading plugin Color Highlighter.topsort reloading plugin DoxyDoc.doxydoc reloading plugin Emmet.emmet-plugin reloading plugin Gist.gist_05_import reloading plugin Gist.gist_20_exceptions reloading plugin Gist.gist_40_request reloading plugin Gist.gist_60_helpers reloading plugin Gist.gist_80 reloading plugin Gist.gitio reloading plugin GitGutter.plugin reloading plugin Hasher.hasher reloading plugin Package Control.1_reloader reloading plugin Package Control.2_bootstrap reloading plugin Package Control.Package Control reloading plugin PackageResourceViewer.package_resource_viewer reloading plugin PackageResourceViewer.package_resources reloading plugin RegReplace.rr_edit reloading plugin RegReplace.rr_notify reloading plugin RegReplace.rr_plugin reloading plugin RegReplace.rr_replacer reloading plugin RegReplace.rr_sequencer reloading plugin RegReplace.rr_upgrade reloading plugin RegReplace.support 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 Themr.themr reloading plugin ASCII Decorator.ASCII Decorator Couldn't load pkg_resources reloading plugin ASCII Decorator.subcomments reloading plugin ASCII Decorator.subfiglet reloading plugin EasyClangComplete.EasyClangComplete reloading plugin SublimeREPL.__init__ reloading plugin SublimeREPL.completions reloading plugin SublimeREPL.lang_integration reloading plugin SublimeREPL.run_existing_command reloading plugin SublimeREPL.sublimerepl reloading plugin SublimeREPL.sublimerepl_build_system_hack reloading plugin SublimeREPL.text_transfer reloading plugin Terminal.Terminal plugins loaded [ECC:DEBUG]:[settings_storage.py]:[need_reparse]:[MainThread]: settings complete [ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view file_name is None [ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-5]: view file_name is None Emmet: No need to update PyV8 [ECC:DEBUG]:[EasyClangComplete.py]:[on_activated_async]:[Dummy-5]: on_activated_async view id 64 [ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[Dummy-5]: no settings for view 64. 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]: 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$project_base_path/src' to '-I/Users/stuntddude/Dropbox/c/DIWide/src' [ECC:DEBUG]:[settings_storage.py]:[__replace_wildcard_if_needed]:[Dummy-5]: populated '-I/usr/lib/clang/$clang_version/include' to '-I/usr/lib/clang/3.8.0/include' [ECC:DEBUG]:[settings_manager.py]:[__init_for_view]:[Dummy-5]: settings initialized for view: 64 [ECC:DEBUG]:[view_config.py]:[load_for_view]:[Thread-6]: generate new config for path: 64 [ECC:INFO]:[view_config.py]:[__init_completer]:[Thread-6]: init completer based on libclang [ECC:DEBUG]:[lib_complete.py]:[__init__]:[Thread-6]: using bundled cindex: EasyClangComplete.plugin.clang.cindex38 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-6]: platform: ('64bit', '') [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-6]: python version: 3.3.6 [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-6]: we are on 'Darwin' [ECC:DEBUG]:[utils.py]:[find_libclang_dir]:[Thread-6]: user provided libclang_path:My user settings file for the package is empty, and there is no project-specific settings file either. So presumably the settings (including
""use_libclang" : true
) are not being overridden.