[redcap/tools] ip_output_builder and redcap2linst terminal tag remove - #10826
Open
regisoc wants to merge 15 commits into
Open
[redcap/tools] ip_output_builder and redcap2linst terminal tag remove#10826regisoc wants to merge 15 commits into
regisoc wants to merge 15 commits into
Conversation
Co-authored-by: Michael Lapadula <lapadula.michael@courrier.uqam.ca>
lapadulamichael
suggested changes
Jul 30, 2026
lapadulamichael
left a comment
Contributor
There was a problem hiding this comment.
I am also getting this error when trying to run tools/generate_tables_sql.php
PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, null given in /var/www/loris/tools/generate_tables_sql.php:43
Stack trace:
#0 /var/www/loris/tools/generate_tables_sql.php(43): preg_match()
#1 {main}
thrown in /var/www/loris/tools/generate_tables_sql.php on line 43
and this one when trying to run tools/generate_tables_sql_and_testNames.php
Filename: /var/www/loris/tools/../project/tables_sql/aosi.sql
Filename: /var/www/loris/tools/../project/tables_sql/medical_history.sql
Filename: /var/www/loris/tools/../project/tables_sql/mri_parameter_form.sql
Filename: /var/www/loris/tools/../project/tables_sql/radiology_review.sql
PHP Warning: Undefined array key 1 in /var/www/loris/tools/generate_tables_sql_and_testNames.php on line 38
PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, null given in /var/www/loris/tools/generate_tables_sql_and_testNames.php:38
Stack trace:
#0 /var/www/loris/tools/generate_tables_sql_and_testNames.php(38): preg_match()
#1 {main}
thrown in /var/www/loris/tools/generate_tables_sql_and_testNames.php on line 38
Collaborator
Author
|
fixed. |
Collaborator
Author
|
@lapadulamichael ready for another round. |
lapadulamichael
self-requested a review
July 31, 2026 13:46
Contributor
Collaborator
Author
|
@lapadulamichael nice catch, I might have forgotten the recursive flag in grep, thanks! |
Collaborator
Author
|
Updating assignee to @driusan for final review. |
MaximeBICMTL
removed their request for review
July 31, 2026 15:48
Contributor
|
The REDCap part is minimal in that PR but looks fine to me. For the rest, I am not really familiar with that part of the codebase, especially the handling of non-JSON instruments, so trusting @lapadulamichael's and others review. No objection on my part. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief summary of changes
{-@-}tag fromredcap2linsttool so instruments will be created without it.ip_output_builder.phpto generateip_output.txtfile for all instruments (LINST and PHP).parseElements()function fromlorisform_parser.{-@-}tag at the end of each instrument parsing/copying.--add-linstoption to add linst instrument inip_output.txt.--add-metaoption to prepend the linst corresponding.metafile inip_output.txtwhen it exists.--one-instrument=INSToption to only run the process on one instrument.lorisform_parser.shin favour ofip_output_builder.php.Documentation:
Testing instructions (if applicable)
tools/redcap2linst.phpwith REDCap instrument/API.tools/ip_output_builder.phpwith the different arguments.ip_output.txtfile are successful.Link(s) to related issue(s)
{-@-}crash #10663