Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

Support dub projects with targetType none + embedded subpackages #304

Open WebFreak001 opened 1 year ago

WebFreak001 commented 1 year ago

Currently projects with targetType none + embedded subpackages (to build all libraries at once on a build) are unsupported, as they don't have any import paths, etc.

Additionally subpackages aren't supported as they don't have a root uri that differentiates them from other things.

We could combine all the subpackage descriptions into one, located at the targetType none package, or make it possible to have isolated workspaces for each embedded subpackage, which would avoid cluttered wrong import suggestions.

Sample project: https://github.com/snazzy-d/sdc

SandaruKasa commented 1 year ago

Just run into this issue right now.

Glad to find out this is not just a spontaneous crash, but a known thing with a known cause. Thankfully, I was able to simply get rid of the subpackages for the project, and now it works fine for me.