-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request: project-specific settings #1
Comments
Yep, the possibility is there. :) Thanks for a suggestion. It sounds pretty good. Can you tell me more about how are you about to use it? Is it only the The |
- add new `search_clang_complete_file` setting. Setting it to `true` forces the plugin to search for `.clang_complete` file up the tree and to add its contents to include lists. This should address issue #1. Testing needed. - removed redundand default encoding setting - updated readme with new parameter
Hey @canfoderiskii I have just pushed a commit with the support for the simple functionality of searching the file If not please tell me what fails and please be specific about the version of sublime text and os you are running. Thanks! |
@niosus Okay, I will update the plugin and test it when I'm not so busy these two days, and i'm using sublime text 3103. Thank you for the great work. By the way, for your question about how i would use the new feature, a boolean switch in setting file is preferred. That switch controls whether to use .clang_complete file only. |
@niosus I did a quick test, found a problem. create a new .c file, in which i have a struct definition & struct variable declaration. When i type in "sturctVariable." or "pStructVariable->", i cannot get auto-completed struct members. If manually call autocomplete via key binding, the sublime text status bar displays "No available completion". I tried with/without .clang_complete file, or on/off the switch "search_clang_complete_file"/"include_file_folder", cannot solve the problem. I also tried both syntax, "C" or "C Improved", problem still remains. Then tried another plugin, ClangAutoComplete, I can get auto-completed struct member normally. In addition, i'm using sublime text on Win10 Pro x64. |
Wait for calling it great until you're able to run it :) Also, I had one more question. Are you intending to use a Also, I'm not too familiar with typical usage of such file. Is it only for includes or is it also for other compile flags? For now I read only lines that start with |
Thanks for trying out @canfoderiskii ! Uh, Windows :) I am not too familiar with it. Can you please enable the Alternatively, can you point me to a good tutorial on how to install clang on windows and I will return to you once I have found out what happens there. |
@niosus , I turned on verbose flag, and saw this line in the sublime text console: Installing clang is simple on Windows, binary is provided officially. |
Oh, ok. Thanks. I guess I will then install it on my windows setup and see what is going on there. I will try to finish it in the next couple of days. |
@niosus Thank you for replying so quickly and for your work. |
@canfoderiskii you're welcome :) I really want to make this one easy to use, so thanks for your help. |
@niosus I just found out that i missed one of your reply. Let me answer here As far as i know, the .clang_complete file contains parameters "-I" and "-D", the former is for path while the latter is for macro definition. And that file may not be located in Home folder, It can be anywhere I need it to be, maybe a project source folder |
@canfoderiskii ok, I will look into |
I added full support for this feature. Now one is able to use |
@niosus Okay, thank you |
Is there any possiblilty that adding a 'read project-specific setting' feature before processing a file?
Maybe the project-specific setting file is a .clang_complete file as used by vim's clang_complete plugin.
EasyClangComplete can search up from the directory tree for the setting file. If it's found, use it to add parameters passed to clang.
The text was updated successfully, but these errors were encountered: