idanarye / vim-dutyl

Coordinate D tools to work together for you
http://www.vim.org/scripts/script.php?script_id=5003
79 stars 13 forks source link

Ability to use dcd-client --tcp? #35

Closed fsouza closed 7 years ago

fsouza commented 7 years ago

Reading the history of issues and the repository history, it was possible to register tools with an array (i.e. call duty#register#tool('dcd-client', ['dcd-client', '--tcp'])), but this no longer works.

Would you be interested in having this feature back? If so, I can try to prepare a patch.

idanarye commented 7 years ago

I just check and it works - but you have to use --tcp when you start the DCD server as well. If you are starting it via Dutyl's :DUDCDstartServer you need:

call duty#register#tool('dcd-client', ['dcd-client', '--tcp'])
call duty#register#tool('dcd-server', ['dcd-server', '--tcp'])
fsouza commented 7 years ago

Hm, when I try this, I get the following error during completion:

Error detected while processing function dutyl#dComplete:
line   35:
Unable to complete: Vim(return):E730: using List as a String
Press ENTER or type command to continue

I'm running on neovim, that might be the issue. I'll test with regular vim later. Thanks!

idanarye commented 7 years ago

OK, I see now. This feature is in develop, but not yet in master. I'll create a release now.

fsouza commented 7 years ago

@idanarye oh, nice to know! I can use develop if you prefer to not cut a release now :)

fsouza commented 7 years ago

Ah, you already did. Thanks! :D :D

fsouza commented 7 years ago

It worked, thank you very much! :)