niosus / EasyClangComplete

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

MacOS - Sublime - Deviot - view has wrong syntax message #463

Closed krish2487 closed 6 years ago

krish2487 commented 6 years ago

hello. I apologise if this seems a easy issue to fix. I have tried searching on the repo for similar issues to this and have failed. I am running sublime with this plugin and deviot pausing for embedded development. However the autocomplete popup does not list all the functions available in the headers. It only shows those functions that have already been used once in the open file. This is what I get from the console output.

plugins loaded
[ECC:DEBUG]:[settings_storage.py]:[need_reparse]:[MainThread]: settings complete
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
environment variables loaded using: /bin/bash -l
reloading settings Packages/User/deviot.sublime-settings
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view file_name is None
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: view has wrong syntax: deviot
Package Control: Skipping automatic upgrade, last run at 2018-04-30 17:13:49, next run at 2018-04-30 18:13:49 or after
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[MainThread]: 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]:[MainThread]: 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-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: 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-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-6]: view has wrong syntax: deviot

I am using the .clang_complete file for the location of the headers. This are. the contents of the .clang_complete file

-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/180225-230612-disco_f030r8/src
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/180225-230612-disco_f030r8/Inc
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/180225-230612-disco_f030r8/Drivers/CMSIS/Include
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/180225-230612-disco_f030r8/Drivers/CMSIS/Device/ST/STM32F0xx/Include
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/180225-230612-disco_f030r8/Drivers/STM32F0xx_HAL_Driver/Inc
-I/Users/srikrishnachaitanyanarumanchi/Documents/PlatformIO/Projects/180225-230612-disco_f030r8/Drivers/STM32F0xx_HAL_Driver/Src
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/framework-stm32cube/f0/Drivers/CMSIS/Include
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/framework-stm32cube/f0/Drivers/CMSIS/Device/ST/STM32F0xx/Include
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/framework-stm32cube/f0/Drivers/STM32F0xx_HAL_Driver/Inc
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/arm-none-eabi
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/toolchain-gccarmnoneeabi/lib/gcc/arm-none-eabi/7.2.1/include
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/toolchain-gccarmnoneeabi/lib/gcc/arm-none-eabi/7.2.1/include-fixed
-I/Users/srikrishnachaitanyanarumanchi/.platformio/packages/tool-unity
-DUSE_HAL_DRIVER
-DSTM32F030x8
-DPLATFORMIO=30503

I. have tried uninstalling and reinstalling the plugin and sublime several times over but to no change. I am assuming, please correct me if I am wrong, that the plugin will scrap the headers in the specified directories and provide a list of possible functions for use during the autocomplete. Autocomplete works fine with atom and VScode just fine for the same project. However I would like to move to sublime. One limiting issue is this autocomplete.

MacOS - 10.13.4 Clang - os bundled Sublime - build 3143 Installed plugins - deviot, easyclangcomplete, sublimelinter, sublimelinter-clang,package control Python - Anaconda 3.6.5 gcc - 4.2.1 clang - 4.0.1

I am assuming I goofed up during the configuration. I ll be grateful if anyone can point out where I went wrong.

Thank you in advance!! :-)

niosus commented 6 years ago

Please, read the issue template carefully and conform to it. It is not written just for fun. I am missing a lot of information in your log as you have cut it substantially. Please, follow the issue template to include all information available and open a new issue with that additional information. I will close this issue as invalid.