-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Error while validating file - invalid regular expression #60731
Comments
(Experimental duplicate detection) |
The problem semms to with the schema https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json It uses a pattern regex that is not compatible with the JS regex as described here: https://json-schema.org/understanding-json-schema/reference/regular_expressions.html Please file this against https://github.com/AArnott/Nerdbank.GitVersioning/blob/master/doc/versionJson.md |
@aeschli Thanks for investigating this. But @flcdrg already filed dotnet/Nerdbank.GitVersioning#230 as he mentioned. And as I mentioned in the linked issue, the regex that it's complaining about works fine in Javascript as you can see here. So isn't the bug in VS Code if the regex expression is valid and works in Javascript, but VS Code is rejecting it? |
That's what I get when looking at the regex in https://regexr.com/: |
Thanks. I wish there was more consistency across JS regex so we don't get different answers from different services. But I can remove the names of the capture groups as that seems to make it happy. Thanks, @aeschli |
Issue Type: Bug
Creating a file named
version.json
and using the content described in https://github.com/AArnott/Nerdbank.GitVersioning/blob/master/doc/versionJson.md, the following error is displayed:VS Code version: Code 1.28.1 (3368db6, 2018-10-11T18:15:15.139Z)
OS version: Windows_NT ia32 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
I originally reported this at dotnet/Nerdbank.GitVersioning#230, but @AArnott believes there is no problems with the regexes in the schema file.
The text was updated successfully, but these errors were encountered: