-
Notifications
You must be signed in to change notification settings - Fork 56
Undefined variable "ch" with latest vim-rtags #76
Comments
It is strange how it actually got past those checks for job/channel which are not supposed to be available for vim 7.4. Which git commit are you on? I tried using vim 7.4 and got a different error. 054cd89 should fix for the error I got on my old version of vim. Could you give a try and let us know if that works for you? |
I am on c6dcdd4 |
I pulled your commit 054cd89, but I am still hitting the issue. I dont have any problems with neovim though |
I have the same issue on my Ubuntu 16.04 with: |
let l:opts.out_cb = {ch, data -> rtags#HandleResults(ch_info(ch).id, data, 'vim_stdout')} 'ch' undefined; should change this to a function defintion this has been reported: lyuts/vim-rtags#76
Same issue with |
* This feature doesn't work correctly on older versions of ViM that support jobs and channels. lyuts#76
I think this link might shed some light on this issue: On Ubuntu 16.04 ViM 7.4-1689 returns true for both the job and channel features, as they are both technically there, although I imagine they are not fully compatible with the API implemented in ViM 8.0... Might I suggest adding a version check to avoid this problem on older versions of ViM. |
Same issue on commit fbfa692. |
same problem here.
4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
Same here: Vim version: For vim I tried two configurations: one built with python2 and the other with python3 support. |
I got this problem when using
btw this is the newest VIM in Ubuntu 16.04 package repository. Problem solved by updating VIM to 8.0. For Ubuntu users: http://tipsonubuntu.com/2016/09/13/vim-8-0-released-install-ubuntu-16-04/ The implementation of ExecuteRCAsync uses lambda expression which I think is a feature from VIM8.0. No matter if it is using channel/job or not, I would upvote to add a version check as @therivenman has suggested. |
Using latest vim-rtags with vim 7.4.1689(Ubuntu 16.04 default), I get the following errors when I try to "FindRefs" or "JumpTo"(pretty much every command throws a similar error).
Error detected while processing function rtags#JumpTo[7]..rtags#ExecuteThen[2]..rtags#ExecuteRCAsync:
line 41:
E121: Undefined variable: ch
E15: Invalid expression: {ch, data -> rtags#HandleResults(ch_info(ch).id, data, 'vim_stdout')}
line 42:
E121: Undefined variable: ch
E15: Invalid expression: {ch, data -> rtags#HandleResults(ch_info(ch).id, data,'vim_exit')}
The text was updated successfully, but these errors were encountered: