So I am trying to send some json text to a python script with jobsend in neovim like this:
let l:json_msg = json_encode(a:msg) call jobsend(s:vimwatcher_job, l:json_msg)
echo l:json_msg I can see that the l:json_msg is a properly encoded string yet my program receives nothing from stdin at all.
If I run
echo jobsend(s:vimwatcher_job, l:json_msg) I can see that the return code is 1 so it seems to succeed.
It works fine however in normal vim like this (without the encoding and setting the in_mode on job_start to "json")
call ch_sendexpr(s:vimwatcher_job, a:msg)
Any idea what could go wrong?