Specifying compilation database in my sublime project file
See original GitHub issue- Sublime Text version 3141
- macOS
I’m trying to get ECC to not generate a compilation database, because I already generated one myself. I believe the setting I should use is:
"settings":
{
"ecc_flags_sources":
[
{
"file": "compile_commands.json",
"search_in": "${project_path}/build"
}
]
}
However this seems to do nothing. Could anyone point me in the right direction? The readme seems a bit unclear about this. I understand I need to prefix any setting with ecc_
?
My user settings are:
{
"common_flags": [],
"errors_style": "phantoms",
"flags_sources": [],
"progress_style": "ColorSublime",
"c_flags" : [],
"cpp_flags" : [],
"objective_c_flags" : [],
"objective_cpp_flags" : [],
"verbose": true
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Full settings guide - EasyClangComplete - GitHub Pages
The project -specific settings are only available when the code is within a Sublime Text project defined by a *.sublime-project file. They must...
Read more >Compilation database | CLion Documentation - JetBrains
A compilation database lets CLion detect project files and extract all the necessary compiler information, such as include paths and ...
Read more >Include Autocomplete - Package Control
If a compilation database is found, and we are inside a header file, the plugin will collect all possible include locations from the...
Read more >Projects - Sublime Text
Projects in Sublime Text are made up of two files: the .sublime-project file, which contains the project definition, and the .sublime-workspace file, ...
Read more >Cplusplus - Sublime Text Language Server Protocol ...
Compilation database. For any project of non-trivial size, you probably have a build system in place to compile your source files. The compilation...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR is here https://github.com/niosus/EasyClangComplete/pull/723
Hey @rwols thanks for reporting this. I am sorry for the readme. I know it is unclear, but I really struggle to find the time to actually fix it.
I guess the problem that you are facing is that you are using
${project_path}
, and it is a wrong name for the variable. You should change${project_path}
to$project_base_path
and it should find your compilation database.Please tell me if it worked and I will open an issue to add parsing of standard unix-like variables.