Support Deviot syntax
See original GitHub issue@niosus My sincere apologies for failing to conform to the template earlier. I should have been more careful. Please find the complete log with verbose:true for the plugin.
I can paste the contents of one of the headers in the specified location if you would like to see their contents as well.
Thank you in advance! 😃
Again, my apologies for failing to adhere to the template.
System info:
- Sublime Text version: 3143
- Which system are you on: MacBook Air 2017 - Macos High Sierra 10.13.4
- Clang version: Apple LLVM version 9.1.0 (clang-902.0.39.1) Target: x86_64-apple-darwin17.5.0
What happens:
ECC does not offer autocomplete suggestions ECC shows autocomplete only for the functions that are already used once in the open file. It does not seem to scrape the headers in the included folders and provide functions available in the included directories. I am using the .clang_complete with a list of folders where my headers are present.
This is my .clang_complete file.
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/deviot_test/Inc
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/deviot_test/Drivers/CMSIS/Include
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/deviot_test/Drivers/STM32F0xx_HAL_Driver/Inc
The deviot_test is my project folder. The system specific headers are present under the Inc, Drivers/Include and Drivers/STM32F0xx_HAL_Driver/Inc folders.
ECC does not offer the functions available in those headers as autocomplete suggestions.
Log that illustrates the issue:
startup, version: 3143 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/srikrishnachaitanyanarumanchi/Library/Application Support/Sublime Text 3/Packages
state path: /Users/srikrishnachaitanyanarumanchi/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/srikrishnachaitanyanarumanchi/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.536883
startup time: 0.684589
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
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.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 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-jsonschema
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin SublimeLinter-clang.linter
reloading plugin SublimeLinter-cpplint.linter
reloading plugin SublimeLinter.__init__
reloading plugin SublimeLinter.active_linters_view
reloading plugin SublimeLinter.busy_indicator_view
reloading plugin SublimeLinter.goto_commands
reloading plugin SublimeLinter.highlight_view
reloading plugin SublimeLinter.log_handler
reloading plugin SublimeLinter.message_view
reloading plugin SublimeLinter.panel_view
reloading plugin SublimeLinter.status_bar_view
reloading plugin SublimeLinter.sublime_linter
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 Deviot (Arduino IDE).Deviot
reloading plugin EasyClangComplete.EasyClangComplete
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 has wrong syntax: Plain text
environment variables loaded using: /bin/bash -l
reloading /Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/deviot_test/Src/main.cpp
reloading settings Packages/User/deviot.sublime-settings
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: Plain text
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: Plain text
Package Control: No updated packages
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: JSON
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: JSON
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: JSON
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: JSON
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: JSON
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: Plain text
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
[ECC:DEBUG]:[EasyClangComplete.py]:[on_query_completions]:[MainThread]: not a valid view
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
[ECC:DEBUG]:[EasyClangComplete.py]:[on_query_completions]:[MainThread]: not a valid view
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
[ECC:DEBUG]:[EasyClangComplete.py]:[on_query_completions]:[MainThread]: not a valid view
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
[ECC:DEBUG]:[EasyClangComplete.py]:[on_query_completions]:[MainThread]: not a valid view
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-8]: view has wrong syntax: deviot
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
It works perfectly with the changes you made to the commit!! 😃 Thank you @niosus !!!
Thanks, much appreciated. However, there is not much help needed from your side. To solve this issue I need to add a single string into a single file. So should be fixed in a short time.