Repository navigation
python: a script with a python shebang and no .py extension is indexed (#1376) - #1379
Merged
Merged
Conversation
0.1.3 is not published, so `npm install` from dev silently skipped every engine package (they are optional) and the first index failed without a local souffle. The 0.1.3 notes stay in CHANGELOG.md under Unreleased. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Release notes live on each GitHub release; the file is not shipped to main. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
The installation notes from #1372 change the README, which ships in the npm package, so the version gate needs a bump; bumping pins engine packages that are not published yet. They return with the 0.1.3 release. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
#1376) The parser collected only .py and .pyi files, so an executable script named without an extension contributed no symbols and no edges: an edit to it named no declaration, and calls from it into the project's modules were missing from their callers. A file with no extension whose first line is a python shebang is now analysed as a module. The plugin watches and counts such scripts, reads them as Python in changed and impact, and no longer lists them among the files the index does not read as source. Parser version 0.1.1. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
swapnilpaliwal-sd
requested review from
JaredHLZhang,
Whua689 and
suyashpaliwal26
as code owners
September 26, 2026 19:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1376.
The parser collected only
.pyand.pyifiles, so an executable Python script with no extension produced no symbols and no edges. An edit to it named no declaration, and its calls into the project's modules were missing from their callers.changedandimpact.impactno longer lists a file the index read as source among the files it does not read.On this repository indexed as Python, the graph now covers all 8 shebang scripts in git (24 plugin files, up from 9), and no shell script is picked up.
Test:
tests/cases/python/shebang-script, with a shell script that runspython3as the control. Its two shebang checks fail on the base branch and pass here.tests/run.py,tests/refresh.pyandtests/indexed_tree.pypass.