aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/msgpack-gen.lua2
-rwxr-xr-xscripts/run-api-tests.exp1
2 files changed, 3 insertions, 0 deletions
diff --git a/scripts/msgpack-gen.lua b/scripts/msgpack-gen.lua
index 7f80d48114..c9b6018222 100644
--- a/scripts/msgpack-gen.lua
+++ b/scripts/msgpack-gen.lua
@@ -91,6 +91,7 @@ output:write([[
#include <assert.h>
#include <msgpack.h>
+#include "nvim/log.h"
#include "nvim/os/msgpack_rpc.h"
#include "nvim/os/msgpack_rpc_helpers.h"
#include "nvim/api/private/helpers.h"
@@ -133,6 +134,7 @@ for i = 1, #api.functions do
output:write('static Object handle_'..fn.name..'(uint64_t channel_id, msgpack_object *req, Error *error)')
output:write('\n{')
+ output:write('\n DLOG("Received msgpack-rpc call to '..fn.name..'(request id: %" PRIu64 ")", req->via.array.ptr[1].via.u64);')
-- Declare/initialize variables that will hold converted arguments
for j = 1, #fn.parameters do
local param = fn.parameters[j]
diff --git a/scripts/run-api-tests.exp b/scripts/run-api-tests.exp
index a1b7d68644..b9d37ca903 100755
--- a/scripts/run-api-tests.exp
+++ b/scripts/run-api-tests.exp
@@ -22,6 +22,7 @@ set nvim_id $spawn_id
send {
:function BeforeEachTest()
set all&
+ let &initpython = 'python -c "import neovim; neovim.start_host()"'
redir => groups
silent augroup
redir END