-
Notifications
You must be signed in to change notification settings - Fork 6
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
Adding includeFunc in controlDict crashes FoamFile serialization #314
Comments
@sturmk I'm able to reproduce the issue. To be fair, there's currently no support for directives starting with May I ask, how would you expect your code snippet to change the file?
Is that it? If so, I believe I could make a special case for |
@gerlero Indeed, #includeFunc is an edge-case. |
What do you think of making a special case for all |
Would this mean that a user then has to enter the directive like this: |
@sturmk Actually, I was thinking the My idea is to make a sort of special case for keywords starting with
directly maps to:
(with no semicolon at the at the end of and vice versa. That ideally should handle a lot of the Just as a note to myself, this would be a (small) breaking change given that |
@gerlero perfect! |
I'm trying out the change at #315, where it seems to be working. I need to ask you, though: how bad would you need this fix to be released right now? I ask because this repo is now under active review for JOSS at openjournals/joss-reviews#7633. So, I'd prefer to delay making any (potentially breaking) releases right now as much as possible; yet I would still consider publishing a new version now it now if a user (like you) says they'd use the new functionality now. |
@gerlero thank you very much! I applied the patch to my local foamlib installation; no need for a release from my side for now. |
@sturmk Thanks! I'll then make sure to merge the changes for the next release. Let me know if something still doesn't work. |
I'm trying to add a FOAM includeFunction in the system/controlDict:
this crashes my Python script and throws a lengthy pyparsing ParseException upon file serialization.
The text was updated successfully, but these errors were encountered: