How to configure D autocompletion in Vim?
p.shkadzko
p.shkadzko at gmail.com
Thu Dec 26 19:20:18 UTC 2019
On Thursday, 26 December 2019 at 18:59:16 UTC, user7892 wrote:
>
> do you get something after
>
> `void main(){ int.`
>
> ?. This invokes builtin completions but generally DCD needs to
> know a few root paths to D libraries. So if the sample I give
> you works then you must certainly configure dcd so that it
> knows phobos sources path and druntime sources path.
No, I am not getting any response from Vim after typing "int."
inside main(){}. I tested dcd-server in console and it works as
expected:
$ echo | dcd-client --search toImpl
/usr/include/dlang/dmd/std/conv.d f 55647
/usr/include/dlang/dmd/std/conv.d f 54285
/usr/include/dlang/dmd/std/conv.d f 52624
/usr/include/dlang/dmd/std/conv.d f 52314
/usr/include/dlang/dmd/std/conv.d f 45257
/usr/include/dlang/dmd/std/conv.d f 43253
/usr/include/dlang/dmd/std/conv.d f 39946
/usr/include/dlang/dmd/std/conv.d f 37388
/usr/include/dlang/dmd/std/conv.d f 29814
/usr/include/dlang/dmd/std/conv.d f 25478
/usr/include/dlang/dmd/std/conv.d f 21394
/usr/include/dlang/dmd/std/conv.d f 19900
/usr/include/dlang/dmd/std/conv.d f 19137
/usr/include/dlang/dmd/std/conv.d f 18129
/usr/include/dlang/dmd/std/conv.d f 17787
/usr/include/dlang/dmd/std/conv.d f 14365
dcd-server response
2019-12-26T21:07:55.997 [info] main.d:130:runServer Starting up...
2019-12-26T21:07:55.997 [info]
server.d:94:loadConfiguredImportDirs Loading configuration from
/etc/dcd.conf
2019-12-26T21:07:55.997 [info] main.d:157:runServer Cleaning up
old socket file at /run/user/1000/dcd.socket
2019-12-26T21:07:55.998 [info] main.d:164:runServer Listening at
/run/user/1000/dcd.socket
2019-12-26T21:07:55.998 [info] main.d:181:runServer Import
directories:
/usr/include/dlang/dmd
2019-12-26T21:07:55.998 [info] main.d:187:runServer 0 symbols
cached.
2019-12-26T21:07:55.998 [info] main.d:188:runServer Startup
completed in 0 milliseconds.
2019-12-26T21:16:20.015 [warning] first.d:459:visit Could not
resolve location of module 'ldc/intrinsics'
2019-12-26T21:16:20.225 [warning] first.d:459:visit Could not
resolve location of module 'core/sys/openbsd/sys/cdefs'
2019-12-26T21:16:20.310 [warning] first.d:459:visit Could not
resolve location of module 'gcc/builtins'
2019-12-26T21:16:20.314 [warning] first.d:459:visit Could not
resolve location of module 'gcc/builtins'
2019-12-26T21:16:20.334 [warning] first.d:459:visit Could not
resolve location of module 'core/sys/netbsd/execinfo'
2019-12-26T21:16:20.546 [warning] first.d:459:visit Could not
resolve location of module 'core/sys/openbsd/sys/cdefs'
2019-12-26T21:16:20.903 [info] main.d:302:runServer Request
processed in 1250 milliseconds
More information about the Digitalmars-d
mailing list