-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
PG warnings cleanup and minor contextFraction issue #513
Conversation
Conflicts: macros/PGbasicmacros.pl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this PR much better (without the white-space issues). I did notice another place where the TeX()
method can return a numeric value, and also point out that the string()
method also suffers from the same problems as the original TeX()
method. That should probably be fixed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much better.
I am not sure why the spaces after the commas were removed on line 1425 (line 1419 after previous changes) of PGbasicmacros.pl, though.
Everything looks good other than that though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR seems quite related to changes made in rederly#1 but not all the changes are made consistently in both locations.
@taniwallach: The first point to be made here is that the Rederly Github project that you are referring to is not part of WeBWorK. There is collaboration, but we you should not be making this comparison, and we should not be trying to make pull requests here be in sync with pull requests there. Second, all of the points that you brought up have been discussed in the previous pull request that is now closed. |
This is not a comparison of code from the standalone rederer per-se, but of the version of As I understand it, the standalone renderer is essentially a contribution from Rederly to the WeBWorK project, having been developed to (a) support their specific needs, and (b) to allow rendering of WW content in a more scalable manner for several other needs of the WW community. If I understand some of the undercurrents, it seems likely that at some point in the future As such - IMHO it is in everyone's interest that the versions of In particular, the standalone renderer now pulls in
In order to make the cooperation sustainable and manageable in the long run - I think "we" want to encourage keeping the version of Where things seemed out-of-sync - I tried to point it out.
Sorry - I was working on some testing/development related to the standalone renderer, and when I was looking into something (UTF-8 support related) I realized that the versions of If corrections to the changes were made to the "real" |
The changes in this PR have been through several iterations in response to feedback received. This is partially due to poor branch hygiene, and partially due to suggestions/corrections from the community. I will absolutely second the recommendation that Rederly keep their fork in line with the main PG branch, particularly when 2.16 (or any new version) is released. But I cannot argue the choice to update their own fork between releases. Accounting for the discrepancies between forks, it seems that they have pulled in the changes from my original PR, and not this one. |
It is Rederly's project, and Rederly's responsibility to do what they want with their project. If @drdrew42 or any other webwork contributor would like to contribute to their project, and keep it in sync with webwork that is great. If the WeBWorK project wants to go to utilizing an approach like they use in their project, then that should be done here in the WeBWorK project. Either it should be integrated into the webwork2 repository or another sub project should be made. It would be a bad idea to have webwork become dependent on some external project that is controlled by a proprietary company, regardless of how good their intentions may be (or seem). |
The standalone renderer was developed by Rederly in collaboration with The WeBWorK Project. I still believe that it is a good direction for WeBWorK to refactor the code so that all places use the same renderer, though I agree with @drgrice1 that referring to the Rederly repository is not the right model. I think the right approach is for TWP to fork the renderer repository within openwebwork. We can continue to keep the two in sync as long as it is mutually beneficial. |
@drdrew42 - First an apology. I assumed the PR in the Rederly repo was "yours" but committed/accepted by them, as there was no mention there that they had "cherry-picked" your commits from a PR here. Sorry. @drgrice1 @dlglin - I suggest we "adopt" the Standalone render, either as a "fork" or by asking that the root repository be transferred to openwebwork after we finish WW 2.16/PG 2.16. Then we can try to sync it with the new release and assume control over the TWP official repo. For now - I think we should focus on the new release, and defer the additional load. |
I am going to merge this soon. @Alex-Jordan: This is still pending your approval, so if you have any objections to merging this, please chime in. |
This PR replaces #505 -- see link for previous comment thread
I've added one more significant change regarding a circular reference introduced by PGresource.pm
PR fix:
Fixed PGbasicmacros warning:
Fixed PGML warnings:
a minor change to contextFraction for consistency:
[NEW] Fix circular reference in PGresource:
parent_alias
causes a circular reference within the PG object, resulting in memory leakage