Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sending heartbeats: Invalid arguments for function job_start #54

Closed
hizkifw opened this issue Oct 17, 2017 · 3 comments
Closed

Comments

@hizkifw
Copy link

hizkifw commented Oct 17, 2017

The following error shows up every once in a while:

Error detected while processing function <SNR>49_InitAndHandleActivity[3]..<SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   38:
E121: Undefined variable: channel
E116: Invalid arguments for function job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], { 'stoponexit': '', 'callback': {channel, output -> s:AsyncHandler(output, cmd)}})
E15: Invalid expression: job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], { 'stoponexit': '', 'callback': {channel, output -> s:AsyncHandler(output, cmd)}})
line   42:
E121: Undefined variable: job
E116: Invalid arguments for function job_getchannel(job)
E15: Invalid expression: job_getchannel(job)
line   43:
E121: Undefined variable: channel
E116: Invalid arguments for function ch_sendraw
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   38:
E121: Undefined variable: channel
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   38:
E116: Invalid arguments for function job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], { 'stoponexit': '', 'callback': {channel, output -> s:AsyncHandler(output, cmd)}})
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   38:
E15: Invalid expression: job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], { 'stoponexit': '', 'callback': {channel, output -> s:AsyncHandler(output, cmd)}})
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   42:
E121: Undefined variable: job
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   42:
E116: Invalid arguments for function job_getchannel(job)
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   42:
E15: Invalid expression: job_getchannel(job)
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   43:
E121: Undefined variable: channel
Press ENTER or type command to continue
Error detected while processing function <SNR>49_HandleActivity[23]..<SNR>49_SendHeartbeats:
line   43:
E116: Invalid arguments for function ch_sendraw
Press ENTER or type command to continue
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
Included patches: 1-1689
Extra patches: 8.0.0056
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
-balloon_eval    +float           +mouse_urxvt     -tcl
-browse          +folding         +mouse_xterm     +terminfo
++builtin_terms  -footer          +multi_byte      +termresponse
+byte_offset     +fork()          +multi_lang      +textobjects
+channel         +gettext         -mzscheme        +timers
+cindent         -hangul_input    +netbeans_intg   +title
-clientserver    +iconv           +packages        -toolbar
-clipboard       +insert_expand   +path_extra      +user_commands
+cmdline_compl   +job             -perl            +vertsplit
+cmdline_hist    +jumplist        +persistent_undo +virtualedit
+cmdline_info    +keymap          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      +python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con      -lua             +rightleft       +writebackup
+diff            +menu            -ruby            -X11
+digraphs        +mksession       +scrollbind      -xfontset
-dnd             +modify_fname    +signs           -xim
-ebcdic          +mouse           +smartindent     -xsmp
+emacs_tags      -mouseshape      +startuptime     -xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    -xpm
+extra_search    -mouse_jsbterm   +syntax          
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.5m -lpthread -ldl -lutil -lm      

Running on Ubuntu 16.04.3 LTS 64-bit. I have set the API key via the :WakaTimeApiKey command, and the .wakatime.cfg file is present in the home directory. Other plugins requiring Python runs correctly (e.g. youcompleteme). The plugin was installed with vim-plug.

@alanhamlett
Copy link
Member

alanhamlett commented Oct 17, 2017

If you run this inside Vim, does it print 1 or 0?

:echo has('patch-7.4-2344')

@alanhamlett
Copy link
Member

Can you try updating vim-wakatime to the latest version to see if it's fixed?

@hizkifw
Copy link
Author

hizkifw commented Oct 17, 2017

@alanhamlett Running :echo has('patch-7.4-2344') returns a 0. I've updated the plugin, it works perfectly now.

@hizkifw hizkifw closed this as completed Oct 17, 2017
@alanhamlett alanhamlett changed the title Error sending heartbeats Error when sending heartbeats: Invalid arguments for function job_start Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants