fix(doc): prevent docmap crash#269
Merged
Merged
Conversation
SCNvimDocEntry.toJSON created `inheritance` by appending superclasses
and subclasses as arrays. But the implementor (implKlass) as a string.
`prJSONList` does `v.collect {|x| "\"" ++ x.escapeChar($") ++ "\""}`.
Given the bare implementor String, `collect` iterates the string's
characters and calls escapeChar on them, throwing `DoesNotUnderstand:
'escapeChar'` and aborting/crashing the entire docmap export. WHich
leaves docmap.json broken.
This is fixed by pairing each key with its value and wrap the
implementor name in an array, so prJSONList always receives a list.
Contributor
Author
|
Ah sorry for the noise @davidgranstrom! I totally missed: #267 |
Contributor
Author
|
Sorry I am not awake — on a train from Nollåtta-stan to Oschlu.. ZzzZzzzzzZzz |
Owner
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.
I met a weird issue with :SCNvimGenerateAssets and opening helpfiles.
The first time I hit
K(SCNvimHelp) I would get:SCNvimDocEntry.toJSON created
inheritanceby appending superclasses and subclasses as arrays. But the implementor (implKlass) as a string.prJSONListdoesv.collect {|x| "\"" ++ x.escapeChar($") ++ "\""}. Given the bare implementor String,collectiterates the string's characters and calls escapeChar on them, throwingDoesNotUnderstand: 'escapeChar'and aborting/crashing the entire docmap export. WHich leaves docmap.json broken.This is fixed by pairing each key with its value and wrap the implementor name in an array, so prJSONList always receives a list.