Skip to content
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

Compilation database displayed incorrectly with --tree #4639

Open
rico-chet opened this issue Nov 13, 2024 · 1 comment
Open

Compilation database displayed incorrectly with --tree #4639

rico-chet opened this issue Nov 13, 2024 · 1 comment

Comments

@rico-chet
Copy link
Contributor

rico-chet commented Nov 13, 2024

  • Version of SCons
    4.4.0 and 4.8.1
$ scons --tree=all compile_commands.json
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Building compilation database compile_commands.json
+-compile_commands.json
  +-[<SCons.Node.FS.File object at 0x3ddc6a50>]
  +-[<SCons.Node.FS.File object at 0x3ddc8680>]
scons: done building targets.

should rather be this:

$ scons --tree=all compile_commands.json
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Building compilation database compile_commands.json
+-compile_commands.json
  +-main.cpp
  +-another.cpp
scons: done building targets.

Seems like __CompilationDbNode is missing a __str__() method, or its base class is not the right one.

edit:

I believe that the SCons-generated compile_commands.json should show no dependencies but the SCons{script,truct} file, if at all.

@mwichmann
Copy link
Collaborator

I think normally, Value (Python) nodes don't get included in the tree?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants