Tried reprun on a main do-file that changes the ado path with the line
sysdir set PLUS "${dos}/ado"
and it returned the error:
Starting reprun. Creating the do-files for run 1 and run 2.
Done creating the do-files for run 1 and run 2.
Executing "00.Master.do" for run 1.
command reprun_dataline is unrecognized
r(199);
I think this is happening because the ado changes in the middle of the code execution of the input do-file to a path that doesn't have reprun or repkit installed and then doesn't recognize commands from reprun. Perhaps it would be better if it used the ado paths set by default when opening Stata for calling reprun commands instead of looking in the local ado paths of the do-file it's run on