code-d
code-d copied to clipboard
Latest serve-d (nightly) does not work on Ubuntu 22.04 LTS
I finally had some spare time to look into why the D extension did not work as expected on Ubuntu (luckily I do not use Ubuntu so often so it was not a big deal for me). It appears that pre-compiled serve-d binary that the D extension is downloading does not work on the mentioned Ubuntu version. (https://github.com/Pure-D/serve-d/releases/download/nightly/serve-d_linux-nightly-x86_64-20220322-855a87.tar.xz)
dejan@dejan-lp:~/.local/share/code-d/bin
» ./serve-d
object.Exception@../../../.dub/packages/requests-1.1.7/requests/source/requests/ssl_adapter.d(193): loading openssl: unknown version for init
Segmentation fault (core dumped)
So, basically serve-d does not work in VS Code out of box. - It needed a little bit of push, so I cloned serve-d, built the executable myself, and placed it where the extension expected it, and changed the configuration (to "frozen") so the extension does not overwrite the good serve-d with the latest pre-compiled one. And voila, it all works again.