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

JSON post process - re added #2642

Merged
merged 29 commits into from
Jun 27, 2022
Merged

JSON post process - re added #2642

merged 29 commits into from
Jun 27, 2022

Conversation

radumereuta
Copy link
Contributor

@radumereuta radumereuta commented Jun 6, 2022

Adding back the changes from #2581, w/o the commit that broke C-semantics

@radumereuta radumereuta marked this pull request as ready for review June 6, 2022 19:09
@radumereuta radumereuta requested a review from dwightguth June 6, 2022 19:10
@radumereuta radumereuta marked this pull request as draft June 6, 2022 19:13
@radumereuta radumereuta removed the request for review from dwightguth June 6, 2022 19:15
@radumereuta radumereuta marked this pull request as ready for review June 20, 2022 19:53
@radumereuta
Copy link
Contributor Author

The C semantics doesn't crash anymore, but it still fails with the post-processing step because of #2671

Copy link
Collaborator

@dwightguth dwightguth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still like someone else to review this who is more familiar with the json and python code, but this seems fine from my perspective.

@@ -150,6 +156,11 @@ public CompiledDefinition run(File definitionFile, String mainModuleName, String
// final check for sort correctness
for (Module m : mutable(kompiledDefinition.modules()))
m.checkSorts();
if (kompileOptions.postProcess != null) {
kompiledDefinition = postProcessJSON(kompiledDefinition, kompileOptions.postProcess);
files.saveToKompiled("jsoned.txt", kompiledDefinition.toString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would call this post-processed.txt instead.

@rv-jenkins rv-jenkins merged commit 4d9f0b2 into master Jun 27, 2022
@rv-jenkins rv-jenkins deleted the pyk-pipeline branch June 27, 2022 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants