question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dot4qucommented, Dec 7, 2020
1reaction
niosuscommented, Jul 24, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found