Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stanc: preserve blank lines in source #1124

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

WardBrian
Copy link
Member

Summary:

This adds the blank.lines.skip=FALSE argument to scan used in stanc_process, which fixes the issue where line numbers reported by stanc did not match the source in compiler or runtime errors.

Intended Effect:

Closes #1123

How to Verify:

The code in #1123 now yields a straight line plot as expected

Side Effects:

None

Documentation:

None

Reviewer Suggestions:

@bgoodri @andrjohns

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):

Simons Foundation

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@WardBrian
Copy link
Member Author

@bgoodri the failures in github actions seem to be unrelated. Do you think this could make it into a CRAN patch in the near future?

@bgoodri
Copy link
Contributor

bgoodri commented Apr 22, 2024

Yes, although StanHeaders and / or rstanarm are more critical at the moment.

@WardBrian
Copy link
Member Author

Sure. I'm going to try to take another look at the rstanarm issue tomorrow, is there something else with StanHeaders?

@bgoodri
Copy link
Contributor

bgoodri commented Apr 22, 2024

Well, we still do not know why geostan stops compiling, although the other package that was stopping is going all the way through again.

@cdriveraus
Copy link

@bgoodri re geostan, that looks a lot like what happens to ctsem (but ctsem is worse, https://cran.r-project.org/web/checks/check_results_ctsem.html ) , always assumed it was just timeout settings on CRAN boxes...

@WardBrian
Copy link
Member Author

Yeah, g++-13: fatal error: Killed signal terminated program cc1plus and make[1]: *** [/home/hornik/tmp/R.check/r-patched-gcc/Work/build/etc/Makeconf:200: stanExports_ctsm.o] Terminated both point to the program being killed, not encountering an error. Either running out of time or running out of memory are almost certainly to blame

@bgoodri
Copy link
Contributor

bgoodri commented Apr 25, 2024

This is unrelated to the rstan issue with the javascript parser not preserving blank lines, but whatever.

Has anyone gotten a notice from CRAN saying their package is subject to removal due to the mysterious halting of the C++ compiler?

@cdriveraus
Copy link

It's been a vague concern (of mine) for years with ctsem, at some point years ago I had to remove a bunch of features to get it working on all boxes, as I had the unwanted attention of a rather infamous cran persona. Since then the termination errors have often been around, but (i think) variable in that sometimes all builds succeed, and no removal notices.

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.

RStan yields incorrect line numbers in compiler and runtime errors
3 participants