Skip to content

PR for #149: Address stata builder bugs#165

Open
liaochris wants to merge 17 commits into
mainfrom
stata-builder-bug-demo
Open

PR for #149: Address stata builder bugs#165
liaochris wants to merge 17 commits into
mainfrom
stata-builder-bug-demo

Conversation

@liaochris
Copy link
Copy Markdown
Collaborator

@liaochris liaochris commented May 21, 2026

In this issue I addressed two things.

  1. .do files can't contain periods because stata batch mode creates logs that are named based on everything up to the first period. So file.do and file.v2.do share the log file.log, which creates collision errors. I fixed this by having the stata builder prohibit periods in file stems.

  2. scons fails to raise errors when .do files fail since stata doesn't return a non-zero exit code when it fails. I fixed this by updating the scons builder to detect when stata builds fail.

  • Edit: I also added a unit test to confirm that when stata fails, we capture the error.

@liaochris liaochris requested review from jmshapir and zhizhongpu May 21, 2026 14:28
@liaochris liaochris linked an issue May 21, 2026 that may be closed by this pull request
@liaochris
Copy link
Copy Markdown
Collaborator Author

/run-actions-all --post

@github-actions
Copy link
Copy Markdown

Triggered by @liaochris on this comment

Check Results (run details)

Check Result Time
SCons DAG 0.061s
Newlines 0.113s
EPS data 0.023s
Build log 0.029s

@liaochris liaochris mentioned this pull request May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stata builder bugs

3 participants