#545

Shebang-detected files get entities but no reference edges

Openalycdaopened 23d ago

On sem 0.29.1, two files with identical bash content, noext (detected by its #!/usr/bin/env bash shebang) and noext_copy.sh, both yield helper and main entities. sem graph --json has only one edge, though: noext_copy.sh::function::main → noext_copy.sh::function::helper (calls). The extensionless copy gets none. The cause looks like it's in the graph builder, which seems to pick the language by extension, but I haven't pinned it down.

Repro: git init, write a bash file with helper() { echo hi; } and main() { helper; }, copy it to x.sh, commit both, then run sem graph --json.

Activity

0

No activity yet.