yazd/DKit

Autocompletion does not work on Windows

hugo-dube opened this issue · 5 comments

Sublime Text's console says Restarting DCD server... (as it should)
dcd-server doesn't appear to be running in the Manager or in Process Explorer

Even if I run dcd-server externally, dcd-client never seems to get called


Windows 7 Professional SP1
Sublime Text 3 build 3065
DCD 0.4.0-beta2

yazd commented

I've just tried this on a virtual machine, and I can reproduce the problem.
I'll look into this as soon as possible.

I fixed this issue by removing the windows-specific functionality from get_shell_args.
def get_shell_args(args):
return ' '.join(args)

yazd commented

I did try that yesterday, and yes it worked. But I was getting weird autocompletion results for some reason that I needed to investigate about more.
@drsneed, I tried a simple import std.s and I didn't get the proper results, while the same worked good on Linux. I tried some other things that depended on no imports and still got weird results. Is everything working correctly on your computer? Do you get any funky results from autocompletion?

It seems to work properly for me, I tried import std.s and the results were std.signals, std.socketstream, ... all the way through std.system. I did muck about in DKit.py quite a bit before I found a solution, and I may have made other changes that I'm not recalling right now.

yazd commented

Sorry for the late reply, but I re-tested my attempt from one month ago and it seems to be working fine, and so I merged the commit to master. If you can update your local repo and test, please do and close the issue. Thanks.