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

Fix failing R package generator #235

Closed
grzanka opened this issue Aug 20, 2024 · 0 comments · Fixed by #236
Closed

Fix failing R package generator #235

grzanka opened this issue Aug 20, 2024 · 0 comments · Fixed by #236
Assignees

Comments

@grzanka
Copy link
Contributor

grzanka commented Aug 20, 2024

ERROR:root:/home/runner/work/library/library/distributions/R/../../include/AT_DataRange.h: <class 'ValueError'> while creating wrapper for AT_CSDA_energy_after_slab_E_MeV_u_single: /home/runner/work/library/library/distributions/R/../../include/AT_DataRange.h:136: n is not a parameter of AT_CSDA_energy_after_slab_E_MeV_u_single
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/CppHeaderParser/CppHeaderParser.py", line 2948, in __init__
    if self.nameStack[0] in (
IndexError: list index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/runner/work/library/library/distributions/R/generator/scripts/header_parser.py", line 1072, in <module>
    main()
  File "/home/runner/work/library/library/distributions/R/generator/scripts/header_parser.py", line 1058, in main
    C, Call = create_wrappers_for_header_file(
  File "/home/runner/work/library/library/distributions/R/generator/scripts/header_parser.py", line 811, in create_wrappers_for_header_file
    for func in extract_functions_from_file(path):
  File "/home/runner/work/library/library/distributions/R/generator/scripts/header_parser.py", line 178, in extract_functions_from_file
    return CppHeader(path).functions
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/CppHeaderParser/CppHeaderParser.py", line 31[48](https://github.com/libamtrack/library/actions/runs/10470396243/job/28995457619#step:5:49), in __init__
    raise_exc(
  File "<string>", line 1, in raise_exc
CppHeaderParser.CppHeaderParser.CppParseError: Not able to parse /home/runner/work/library/library/distributions/R/../../include/AT_Error.h on line 76 evaluating '{'
Error around: 
Error: Process completed with exit code 1.
@grzanka grzanka self-assigned this Aug 20, 2024
@grzanka grzanka linked a pull request Aug 20, 2024 that will close this issue
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 a pull request may close this issue.

1 participant