StataStan retains old stan files

I am editing a file called foo1.stan, and running it with StataStan. All fine. But then I find an error, such as typing “parameter” when it needs to be “parameters” and ask Stata and StataScan to process foo1.stan again. But the old foo1.stan is processed. I can tediously fix this by calling my new file foo2.stan, changing the call to StataScan to refer to foo2.stan, and so on. The issue appears to be that foo1.stan was copied to c:\cdmdstan-2.16.0, and needs to be deleted there: I’m guessing that StataStan or CmdStan “sees” foo1.stan already there and ignores the new version it was asked by StataStan to process.

Is there some option in StataScan to delete old files like this? The “keepfiles” option seems to do the reverse, but I suspect that when keepfiles is not specified that the default is not to clean house completely.

I can hardcode Stata to clean house, but that is a bit inelegant.

Operating System: Windows 10
Interface Version: StataStan
Compiler/Toolkit: Rtools

I’m not sure Robert Grant, the StataStan dev, is reading these boards. Would you mind filing a StataStan issue? This kind of thing should be cleaned up if Stata isn’t doing it automatically.

Appreciated. But I am a newbie, and do not see a category for StataStan, which is why I picked “Interfaces”. I’ll search to see if there is some other place to report StataStan queries. I did post it in CmdStan, since I do not know if the issue is StataStan or CmdStan, and was told there that it must be a StataStan issue.

I meant as an issue for StataStan: