-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unable to run dutyl with DCD >= v0.8.0 #26
Comments
It seems that if I launch dcd-server externally with |
I've upgraded to 0.8.0 in my machine it Dutyl works fine. What error are you seeing? |
I'm not seeing any errors. The problem is that I'm not seeing any completion either. |
Does |
The file that I'm testing on has import std.stdio;
void func() { writeln("Hello again!"); }
void main()
{
writeln("Hello, world!");
func();
} When I do |
DCD is not using tags, so I guess that the first What happens when you try to find |
I don't think the server has crashed. On the command line, I'm able to do |
dcd-client --search writeln < [path-to-your-source-file] |
I might have found the problem. I haven't been launching DCD through dutyl. I've been launching it through systemd. When dcd switched over from defaulting to TCP to defaulting to unix sockets with the socket named as /tmp/dcd-${UID}.socket, the client and server weren't hitting the same socket because they are on different UIDs. The query that worked from dcd-client passed due to a zombie session. I'll need to check to confirm. |
If you can confirm it, I'll add it to the docs. |
So the problem is that as of DCD >= 0.8.0, the client and server on a *nix system try to use unix sockets. Since I was running DCD as a daemon, the socket was being created with a different name and with an inaccessible permission set. I can work around this by either launching a user-local version of the client, or adding |
Having found that, would you be opposed to adding an optional argument to |
I'll add some instructions to the docs about this. |
I am using the most recent version of vim-dutyl and I can try any version of DCD >= 0.8.0. dcd-server and dcd-client seem to still run on the command line, but not in vim. It might be related to the unix socket vs tcp socket. I can still use dutyl with DCD v0.7.5.
The text was updated successfully, but these errors were encountered: