August 18, 2021

I'm currently stuck trying to fix 2 issues

  • The 1st one is the ModuleCache from DSymbol doesn't seems to get updated in some cases [1], we found a workaround that involve making sure caches are valid at each completion request [2]

  • The 2nd one happen when scope ends without token, DCD is unable to give me symbols for everything after the cursor, even at global scope [3], sadly i haven't found a workaround or a fix yet, and i'm unable to correctly debug this, i have a working test that replicate the issue: [4]

[1] - https://github.com/Pure-D/serve-d/issues/146

[2] - https://github.com/dlang-community/dsymbol/pull/161

[3] - https://github.com/dlang-community/DCD/issues/648

[4] - https://github.com/dlang-community/DCD/pull/649