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

Show specified include paths in missing include error #1273

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

Submission Checklist

Release notes

Improves the error shown when an #included file cannot be found to list the paths it searched on.

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

bob-carpenter commented 1 year ago

I don't want to review without understanding the OCaml, but the new error message looks good. It's too bad the include mechanism is interface dependent or we could include a hint as to how to add an include path.