Pure-D / serve-d

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

dub build fails on freebsd (but can be fixed) #251

Closed devosalain closed 1 year ago

devosalain commented 2 years ago
  1. using gcc as compiler, i.e.
    export CC=/usr/local/bin/gcc

2.modifying ./serverbase/dub.sdl

dependency "serve-d:lsp" path="../lsp"

3.modifying ./workspace-d/dub.sdl

dependency "serve-d:dcd" path="../dcd"

After this "dub build" builds just fine.

WebFreak001 commented 2 years ago

which dub version are you using? this shouldn't be happening on recent dub versions

devosalain commented 2 years ago

dub --version DUB version 1.14.0, built on Jul 3 2022

WebFreak001 commented 2 years ago

1.14 is very old and is probably too outdated at this point. The current version is 1.29, does your distro distribute a newer version like that? It might be worth fixing the distro's version instead, as dub changed the recommended way how to refer to submodules, which is being used right now, but not compatible with old dub versions.

devosalain commented 2 years ago

Thanks , i entered a PR for my distro, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265606

WebFreak001 commented 1 year ago

fixed upstream