You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"SA-CORE-2019-002": "../patches/sa-core-2019-002.patch",
"#3026386-26 - Drush fatal error after upgrading to 8.6.6, 8.5.9, or 7.62: PHP Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception": "https://www.drupal.org/files/issues/2019-01-16/d8-3026386-26.patch"
}
the error is:
test.json: Parse error on line 2:
...-2019-002.patch", "#3026386-26 - Drush
---------------------^
Invalid string, it appears you forgot to terminate a string, or attempted to write a multiline string which is invalid - It appears you have an extra trailing comma
The error message doesn't seem related, as there is no extra trailing comma.
The text was updated successfully, but these errors were encountered:
the issue here is that the code figuring out this message relies on reading the upcoming input of the lexer to see the content of the broken string. But this upcoming input returns at most 20 chars, and the unescaped backslash is farther than that in the string. So it the parser does not detect the backslash.
Ah thanks @stof that was helpful to figure out the fix. It's not super elegant because in this state the lexer does not have a proper knowledge of the string yet, but I think it's a safe fix.
Given the following JSON:
the error is:
The error message doesn't seem related, as there is no extra trailing comma.
The text was updated successfully, but these errors were encountered: