Frontmatter
| id | 8345 |
| title | Fix Shebang Parsing in SourceParser |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Jan 6, 2026, 1:06 AM |
| updatedAt | Jan 6, 2026, 1:26 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8345 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 6, 2026, 1:26 AM |
Fix Shebang Parsing in SourceParser
tobiu assigned to @tobiu on Jan 6, 2026, 1:11 AM

tobiu
Jan 6, 2026, 1:26 AM
Input from Gemini 3 Pro:
✦ I have applied the fix to
SourceParser.mjs. It now checks for and strips the shebang line (#!...) before attempting to parse the content withacorn. This ensures that executable scripts in theai/andbuildScripts/directories are correctly indexed without syntax errors.
tobiu closed this issue on Jan 6, 2026, 1:26 AM
SourceParserfails to parse files starting with a shebang (#!/usr/bin/env node) withUnexpected character '!'. Fix: Strip the shebang line before passing content toacorn.