~soywod/pimalaya#98: 
Too long JSON breaks CLI calls

If the JSON response for folders is too long, the assumption is that Neovim breaks the response into multiple parts which don’t parse.

E474: ASCII control characters cannot be present inside string: ^@desc":"Extens
ion(\"\\\\HasNoChildren\")"}]

#himalaya-vim

  • Wait for EOF before parsing responses.
Status
RESOLVED FIXED
Submitter
~toastal
Assigned to
Submitted
11 months ago
Updated
10 months ago
Labels
0:bug 2:himalaya 3:vim

~soywod 11 months ago*

From Neovim channel doc:

on_data({chan-id}, {data}, {name})

Parameters: {chan-id} … {data} Raw data (readfile()-style list of strings) read from the channel. EOF is a single-item list: ['']. First and last items may be partial lines!

It looks like when the JSON is too long the data comes as chunks. We need to wait for EOF before parsing JSON.

~soywod REPORTED FIXED 10 months ago

Should be fixed on master!

Register here or Log in to comment, or comment via email.