You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions:
Arch Linux, kernel 6.12.9.arch1-1
NVIM v0.10.3
serve-d v0.7.6 with workspace-d v3.7.0
DUB version 1.38.1, built on Jul 7 2024
LDC 1.40.0
If a dependency is added with dub add, the LSP shows the unable to read module `MODULE_NAME`.
If it is added with the served/installDependency notification, everything works, however:
This method ignores the $DUB_HOME variable, instead creating a $HOME/.dub directory
The directory naming scheme is different to the one used by dub. E.g.: dub installs toml into ~/.dub/packages/toml/2.0.1/toml, serve-d installs it into ~/.dub/packages/toml-2.0.1/toml
The text was updated successfully, but these errors were encountered:
It looks like the serve-d LSP is looking for the module in the expected directory <package>-<version>, while DUB installs it into <package>/<version>. Probably just need to update serve-d to look in the appropriate directory.
Temporary fix is to go to your DUB packages directory and create a symlink from the DUB installation directory to the serve-d expected directory. Example with raylib:
Versions:
Arch Linux, kernel 6.12.9.arch1-1
NVIM v0.10.3
serve-d v0.7.6 with workspace-d v3.7.0
DUB version 1.38.1, built on Jul 7 2024
LDC 1.40.0
If a dependency is added with
dub add
, the LSP shows theunable to read module `MODULE_NAME`
.If it is added with the
served/installDependency
notification, everything works, however:$DUB_HOME
variable, instead creating a$HOME/.dub
directorydub
installstoml
into~/.dub/packages/toml/2.0.1/toml
,serve-d
installs it into~/.dub/packages/toml-2.0.1/toml
The text was updated successfully, but these errors were encountered: