stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
138 stars 44 forks source link

[BUG] (Nightly) mac-stanc --version prints %%NAME%%3 ... #1250

Closed james-holdsworth closed 1 year ago

james-holdsworth commented 1 year ago

Current Behavior:

On mac at least, running ./mac-stanc --version will return %%NAME%%3 %%VERSION%% (Unix).

Expected Behavior:

I assume it is supposed to return stanc3 v2.30.1 (Unix) or similar.

Environment:

Anything else:

This actually breaks MatlabStan as it looks for the stanc version (which is how I discovered this issue). CmdStan also seems to be set up to grab the latest nightly. I'm not sure whether this is then an issue with the nightly, or with CmdStan grabbing the nightly, so I have posted it here. Thanks for all the great work!!

WardBrian commented 1 year ago

Confirmed on the Linux version as well. @serban-nicusor-toptal - I think we either need to add the --root . to dune subst, or we need to run dune subst once before we do all the individual builds. Either should work I think.