The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+1 vote

According to the following github issue
while building godot from source, a compilation database (compile_commands.json) should be built with it. But I can't find it anywhere.
I'm not talking about the dry run that is mentioned in the issue itself, but more the fact, that it's mentioned that a database should be generated after fully building the whole project, which I did.
Anybody any insight on this? Thank you very much in advance.

Godot version v.3.2.4 custom build (github source 3.2 branch)
in Engine by (30 points)

1 Answer

+2 votes

Gonna answer my own question instead of removing it, should someone search for the same thing.

Even though it is commented in the SConstruct config file, that to generate the compilation database scons version 3.1.1+ is needed. That comment should not be taken for granted and even in the follow up configuration it is checked for scons version 4.0.0 before using the compiledb tool.

So long story short: Make sure you're environment does have at least scons version 4.0.0

by (30 points)

I opened a pull request to fix the comment:

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.