SIDECAR_WITHOUT_DATAFILE error as validator bug

The SIDECAR_WITHOUT_DATAFILE error is a validator bug with large datasets. When the validator processes thousands of files, it loses track of file associations and reports false positives for different subjects each time.

Command used (and if a helper script was used, a link to the helper script or the command generated):

PASTE CODE HERE

Version:

bids-validator --version
1.15.0

Environment: custom installation:

npm install -g bids-validator@latest
bids-validator --version

Data formatted according to a validatable standard? Please provide the output of the validator:

bids-validator@1.15.0
(node:19600) Warning: Closing directory handle on garbage collection
(Use `node --trace-warnings ...` to show where the warning was created)
	e[31m1: [ERR] A json sidecar file was found without a corresponding data file (code: 90 - SIDECAR_WITHOUT_DATAFILE)e[39m
		./sub-XXXXX/ses-lei0X/func/sub-XXXXX_ses-lei0X_task-rest_bold.json
			A json sidecar file was found without a corresponding data file
		./sub-XXXXX/ses-lei0X/func/sub-XXXXX_ses-lei0X_task-rest_bold.json
			A json sidecar file was found without a corresponding data file
		./sub-XXXXX/ses-gro0X/func/sub-XXXXX_ses-groX_task-rest_bold.json
			A json sidecar file was found without a corresponding data file
		../sub-XXXXX/ses-gro0X/func/sub-XXXXX_ses-gro0X_task-rest_bold.json

Relevant log outputs (up to 20 lines):

PASTE LOG OUTPUT HERE

Screenshots / relevant information:


Hi @Julian_GL,

May you please update your BIDS validator (most recent release is 2.1.0 at this time): GitHub - bids-standard/bids-validator: Validator for the Brain Imaging Data Structure

Best,
Steven

Hi @Steven., thanks for the hint I will try it. To let you know, ```
npx bids-validator@latest --version

npx bids-validator@latest --version also yielded BIDS validator version (1.15.0)

The most recent BIDS validator is not distributed on NPM/NPX: GitHub - bids-standard/bids-validator: Validator for the Brain Imaging Data Structure (see Getting Started for Deno installation).