serve-d icon indicating copy to clipboard operation
serve-d copied to clipboard

Attempted to get unknown instance component DCDComponent

Open John-Colvin opened this issue 4 years ago • 8 comments

Perhaps I'm misunderstanding how things are supposed to work, but whenever I try to use go to definition (testing it on serve-d source) I get d language server error: 'Attempted to get unknown instance component DCDComponent in instance cwd:/home/john/Git/serve-d'

I assumed it would automatically download any dependencies like dcd, but maybe that's not the case?

Archlinux, kakoune + kak-lsp, serve-d 4296bf5, kak-lsp is running serve-d with no extra arguments.

John-Colvin avatar Dec 18 '20 17:12 John-Colvin

This is a new issue I am also facing in Visual Studio Code (Windows) dev container (debian 9). It was working all the time and now it fails with the error you mentioned.

andre2007 avatar Dec 18 '20 18:12 andre2007

This is a new issue I am also facing in Visual Studio Code (Windows) dev container (debian 9). It was working all the time and now it fails with the error you mentioned.

Any chance you can remember what serve-d version you were using back when it worked?

John-Colvin avatar Dec 18 '20 18:12 John-Colvin

Unfortunately not. I do not remember even seen a version number at all in VSC. Normally you just install the extension once and then everything is working fine in the background.

andre2007 avatar Dec 18 '20 22:12 andre2007

serve-d hasn't changed in this area in a while so if it's because of a serve-d update, it should have been broken since mid of August.

DCD was usually auto loaded so on old versions this error might indicate a race condition. On newer (after August) versions I introduced lazy loading, so it might be missing some project to load.

In what kind of project does this happen? Does it work as expected with a simple hello world project?

WebFreak001 avatar Dec 18 '20 22:12 WebFreak001

no, same problem. Is there an easy way I can enable debug output or something?

John-Colvin avatar Dec 19 '20 00:12 John-Colvin

add "serve-d.trace.server": "verbose" (ignore it being not recognized)

then in the output window for code-d/serve-d it will dump all the stuff like source code and other infos what serve-d is doing which helps diagnose it.

WebFreak001 avatar Dec 19 '20 01:12 WebFreak001

Where would I put that setting? I'm not using vscode.

John-Colvin avatar Jan 05 '21 13:01 John-Colvin

in that case check your language client's documentation for verbose logging / request logging instead. That should contain the calls I want to look at.

That setting is a code-d / vscode specific one which is not handled by serve-d

WebFreak001 avatar Jan 05 '21 15:01 WebFreak001

closing this for the new release, a bunch of places have gotten more stable and the log should contain whatever is needed.

WebFreak001 avatar Jan 16 '23 04:01 WebFreak001