codi.vim: Codi does not output anything and logs: The file "/tmp/cmd" is not executable by this user

Last time Codi worked for me was something like 5 days ago. Now it opens the window but does not output anything there.

My gvim version is 8.0.331 and Codi version is 25d4742 (latest as of writing). I suspect that updating Vim broke Codi as it just suddenly stopped working even without any other plugins and with clean .vimrc.

I tested Codi with the default Python interpreter and my own custom Django interpreter, but neither works (they both used to work like 5-7 days ago, can’t remember exactly). Log output:

[17:15:20.186298] <SNR>128_user_au[1]: Doing autocommand CodiUpdatePre
[17:15:20.187171] <SNR>128_codi_do_update[29]: Starting job for buffer 1
[17:15:20.190219] <SNR>128_stop_job_for_buf[8]: Stopping job for buffer 1
[17:15:20.190650] <SNR>128_codi_do_update[65]: [INPUT] 5 + 5^@25 + 10^@30 + 8^@^M^D^D^M
[17:15:20.190907] <SNR>128_codi_do_update[66]: Expecting 4 prompts
[17:15:20.199622] <SNR>128_codi_handle_data[9]: [DATA] 5 + 5
[17:15:20.200129] <SNR>128_codi_handle_data[9]: [DATA] 25 + 10
[17:15:20.200560] <SNR>128_codi_handle_data[9]: [DATA] 30 + 8
[17:15:20.456832] <SNR>128_codi_handle_data[9]: [DATA] The file “/tmp/cmd” is not executable by this user
[17:15:20.457111] <SNR>128_codi_handle_data[9]: [DATA] fish: /tmp/cmd
[17:15:20.457402] <SNR>128_codi_handle_data[9]: [DATA]       ^

I tried chmod 777 /tmp/cmd but Codi still does not work. Log output:

[17:18:11.748449] <SNR>128_user_au[1]: Doing autocommand CodiUpdatePre
[17:18:11.749678] <SNR>128_codi_do_update[29]: Starting job for buffer 1
[17:18:11.753600] <SNR>128_stop_job_for_buf[8]: Stopping job for buffer 1
[17:18:11.753941] <SNR>128_codi_do_update[65]: [INPUT] 5 + 5^@25 + 10^@30 + 8^@^M^D^D^M
[17:18:11.754127] <SNR>128_codi_do_update[66]: Expecting 4 prompts
[17:18:11.762501] <SNR>128_codi_handle_data[9]: [DATA] 5 + 5
[17:18:11.763220] <SNR>128_codi_handle_data[9]: [DATA] 25 + 10
[17:18:11.763869] <SNR>128_codi_handle_data[9]: [DATA] 30 + 8

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

But internally there’s no reason for codi.vim to use fish (or whatever the default ‘shell’ is). It can just call /bin/bash or env bash or whatever, with jobstart(['env', 'bash', ...]). (Doesn’t require modifying user’s ‘shell’.)