dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 71 forks source link

Standard import paths are not working #644

Open tastyminerals opened 3 years ago

tastyminerals commented 3 years ago

I followed the README and set

" Dutyl plugin for D
let g:dutyl_stdImportPaths=['/Users/pavel/.local/share/ldc2/import/std']

However, I am getting the following output when trying to trigger completions.

2021-08-06T16:53:01.517 [info] main.d:296:runServer Getting completions
2021-08-06T16:53:01.518 [warning] first.d:384:visit Could not locate object.d or object.di
2021-08-06T16:53:01.518 [warning] first.d:481:visit Could not resolve location of module 'std/stdio'
2021-08-06T16:53:01.518 [warning] first.d:481:visit Could not resolve location of module 'std/net/curl'
2021-08-06T16:53:01.518 [warning] first.d:481:visit Could not resolve location of module 'std/json'
2021-08-06T16:53:01.518 [warning] first.d:481:visit Could not resolve location of module 'std/format'
2021-08-06T16:53:01.518 [warning] first.d:560:visit Could not resolve location of module 'immutable(istring)("std/file")'
2021-08-06T16:53:01.518 [warning] first.d:560:visit Could not resolve location of module 'immutable(istring)("std/path")'
2021-08-06T16:53:01.518 [info] main.d:313:runServer Request processed in 0 milliseconds
WebFreak001 commented 3 years ago

you should set the paths to ['/Users/pavel/.local/share/ldc2/import'] because now it searches e.g. std/stdio inside /Users/pavel/.local/share/ldc2/import/std/std/stdio