Clamp icon indicating copy to clipboard operation
Clamp copied to clipboard

Is there any instruction document ? Can not execute ClampStart

Open tokenclt opened this issue 9 years ago • 11 comments

I use neovim and installed this plugin , but I can't found readme file . It looks like a great plugin but I don't kown how to use it. And I tried to type :ClampStart ,but it print

Error detected while processing function <SNR>46_enable_clamp..<SNR>46_request_shutdown:
line 6:
E900: Invalid job id.

Can you help me?

tokenclt avatar Jan 07 '16 02:01 tokenclt

I already got python clang module installed, but I still got the same issue, a readme file will definitely help.

leira avatar Feb 01 '16 21:02 leira

I am having this issue as well.

igutekunst avatar Feb 12 '16 16:02 igutekunst

this issue should be solved in last commit

bbchung avatar Feb 12 '16 19:02 bbchung

@bbchung thanks, that resolves the error. However I can't get it to work. I was looking at the CLighter documentation to see if there was any crossover, but can't find any.

I'm really excited to get this working with nvim.

Any pro-tips? If I get some free time I'll look through the source and see if I can figure it out on my own.

igutekunst avatar Feb 12 '16 20:02 igutekunst

plz check and install https://github.com/neovim/python-client and update Clamp to newest

bbchung avatar Feb 13 '16 07:02 bbchung

Thanks. Looks like a need a compliation database. I'm currently using a custom build system that doesn't generate one, so I'll need to use BEAR. I'll try to post back when I give it a try.

igutekunst avatar Feb 15 '16 16:02 igutekunst

compilation database is optional

bbchung avatar Feb 15 '16 18:02 bbchung

Hi, I'm having a similar issue.

I tried on both Fedora 23 and Debian unstable, with llvm 3.6 and 3.7.

I have neovim 0.1.2 installed on both, with its python client installed (both py2 and py3). I installed python(2,3)-msgpack just because it was mentionned in the README.md

I have set g:clamp_libclang_file to the location of my libclang.so file

But I do not see any highlighting happening after running ClampStart =/

Is there a way to know what's wrong in my setup? I am guessing this is the same issue the previous posters were having too

jpleau avatar Feb 25 '16 02:02 jpleau

Same problem here, sadly there is no debug output whatsoever to check what went wrong. ClampStart/Shutdown run without any error, but no highlighting.


This patch fixes the problem for me:

--- a/plugin/clamp.vim
+++ b/plugin/clamp.vim
@@ -63,7 +63,7 @@ endf

 fun! s:enable_clamp()
     call s:request_shutdown()
-    let g:clamp_channel = rpcstart('python', [s:script_folder_path.'/../python/engine.py'])
+    let g:clamp_channel = rpcstart('python2', [s:script_folder_path.'/../python/engine.py'])
     "let g:clamp_channel = jobstart('python '.s:script_folder_path.'/../python/engine.py '.v:servername)
 endf


Autostart doesn't work for me btw. I always have to call ClampStart manually. Thanks for this great plugin :-)

0xC0FFEE avatar Feb 25 '16 18:02 0xC0FFEE

i don't know the root cause why ClampStart fail, too, but maybe i will add debug log in the future

bbchung avatar Feb 26 '16 05:02 bbchung

I'm getting this same issue on Ubuntu with the latest version of neovim and Clamp. Any update on how to deal with this?

nmboffi avatar Nov 11 '16 21:11 nmboffi