Closed Feacur closed 3 years ago
Could you please provide the log as the issue template nudges you to? Otherwise, there is not much for me to go on. Also, "use_libclang": false
is only there for legacy reasons and should generally not be used.
I briefly checked it locally though and it seems to indeed not work. I will try to have a look if this is due to libclang not providing those completions or due to some other issue. If it is libclang then there is not really that much I can do.
Sure, thank you for pointing the style guide out; I've updated the text 🙏🏽
Nested initializers are handled in llvm/llvm-project@eb4ab33
I suspect top-level designated initializers will be completed in clang-12, nested in clang-13 (or current main)
Thanks for chiming in @sam-mccall :pray:
... or requested, maybe?
UPD: seems to be a Clang issue (https://github.com/clangd/clangd/issues/142) (https://github.com/clangd/clangd/issues/745) Just as
LSP + clangd
only designators in simple assignments seem to function correctly.(Yup, I've seen your message "Discussion on a simpler C++ user experience" =))
System info:
Version 3.2.2, Build 3211
Windows 10 Home, 10.0.19042 Build 19042
10, x86_64-pc-windows-msvc, posix
What happens:
No completion for designated initializers
Sublime Text + EasyClangComplete
:VSCode + ms-vscode.cpptools
:My setup as a reference: https://github.com/Feacur/game_prototype/tree/master/__sublime_project
Minimal example:
Log that illustrates the issue:
``` 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/Feacu/AppData/Roaming/Sublime Text 3/Packages state path: /C/Users/Feacu/AppData/Roaming/Sublime Text 3/Local zip path: /C/Program Files/Sublime Text 3/Packages zip path: /C/Users/Feacu/AppData/Roaming/Sublime Text 3/Installed Packages ignored_packages: ["Vintage"] pre session restore time: 0.173157 startup time: 0.294157 first paint time: 0.305157 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.10-wcwidth reloading plugin 0_package_control_loader.40-pywinpty reloading plugin 0_package_control_loader.50-markupsafe reloading plugin 0_package_control_loader.50-pathlib reloading plugin 0_package_control_loader.50-pymdownx reloading plugin 0_package_control_loader.50-pyte 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 BuildX.ansi reloading plugin BuildX.buildx reloading plugin BuildX.test-color-scheme Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 125, in reload_plugin m = importlib.import_module(modulename) File "./python3.3/importlib/__init__.py", line 90, in import_module File "P.S.:
"use_libclang": false
appears to be subpar, as this mode hides lots of compilation errors