Skip to content

Validator error with config file, fixed with ignoreSubjectConsistency #1233

@ins0mniac2

Description

@ins0mniac2

Using 1.6.2 with no command line options, when using a config file, we get the following error:

Unhandled rejection (
reason: TypeError: Cannot read property 'split' of undefined
at Minimatch.match (/usr/lib/node_modules/bids-validator/node_modules/minimatch/minimatch.js:717:9)
at minimatch (/usr/lib/node_modules/bids-validator/node_modules/minimatch/minimatch.js:107:42)
at Object.ignoredFile (/usr/lib/node_modules/bids-validator/utils/config.js:11:13)
at Function.format (/usr/lib/node_modules/bids-validator/utils/issues/index.js:65:16)
at Function.exceptionHandler (/usr/lib/node_modules/bids-validator/utils/issues/index.js:191:25)
at validateMisc.then.then.then.then.then.then.then.then.catch.err (/usr/lib/node_modules/bids-validator/validators/bids/fullTest.js:217:35)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
).

The error doesn't occur when we add --ignoreSubjectConsistency option to the command line, which we do to avoid the error described here: https://neurostars.org/t/validator-internal-error-due-to-dataset-size/17829

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions