-
-
Notifications
You must be signed in to change notification settings - Fork 77
Improvements to the debugging show
method of PGML.
#1223
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
base: PG-2.20
Are you sure you want to change the base?
Conversation
d3250bb
to
8f5b91f
Compare
8f5b91f
to
3a45da6
Compare
A couple of things. First, I'm getting some uninitialized string errors when running this on problems. Doesn't see to affect the output. Also, would it be useful to put the |
I am not seeing any warnings when using the script. Do you have the The script is not really that versatile and was rather quickly thrown together. I don't know if it is worth adding to the repository. |
I do have I'm seeing Other errors that I'm seeing are some of my problems like:
|
The PGalias.pm warnings are because of a change in the code with the security vulnerability fixes in #1219 that the script doesn't account for. The other warnings are actually expected. What is happening is that the Here is a hacked up version of the script that will remove the warnings, although will be less accurate for the actual result. Note that this script really is not the point of this pull request. The PGML show method has been there pretty much since PGML was created and this is just a minor tweak on its output. A script that utilizes it is something different entirely. @dpvc probably has scripts that do so as well. |
This was something that was useful for me while I was working on writing the CodeMirror 6 PGML parser. It just formats the things in the PGML stack that are hashes in a nicer way, actually showing the contents instead of something like `HASH(0x5d3919403d78)` as it previously did. This does not affect normal PGML usage in problems at all.
3a45da6
to
f70cc07
Compare
This was something that was useful for me while I was working on writing the CodeMirror 6 PGML parser. It just formats the things in the PGML stack that are hashes in a nicer way, actually showing the contents instead of something like
HASH(0x5d3919403d78)
as it previously did.The script in the attached zip can be used to test this:
pgml-parse.zip
The script requires that the
PG_ROOT
environment variable be set to the PG root directory. Execute the script by running./pgml-parse.pl -f path/to/problem.pg
. The script works with any version of PG that has PGML, but you can see the difference in the output. Thecombine
entries (which almost any problem will have) will be output asHASH(0x...)
with the develop branch, and will show the hash in a "prettier" way with this pull request.This does not affect normal PGML usage in problems at all.
Just cleaning up local branches.