Pure-D / serve-d

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

Latest serve-d (nightly) does not work on Ubuntu 22.04 LTS #280

Closed dejlek closed 10 months ago

dejlek commented 2 years ago

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.

EsoCoding commented 1 year ago

Is there any fork for d-code, think the creator is inactive. Dealing with same issue on Ubuntu 22.10, already did try a lot of things without success. Any chance, you solved it yourself?

WebFreak001 commented 1 year ago

I'm not sure why you think I'm inactive :p

I'll investigate this, I thought this would have been solved by dependency upgrades, so I assumed the current nightly (and pre-release) worked, as they also work fine on archlinux.

EsoCoding commented 1 year ago

Thanx, i used a binary from 2 day old nightbuild, replaced serve-d with the nightbuild version. I was trying to fix code-d well serve-d was the problem 🤣 Anyway its finally running now and i can start learning this great language. Almost needed to start usin a crappy ide without fully darkmode.

AssertionBit commented 1 year ago

Same issue was found on ArchoLinux. OpenSSL version == 3.1.1. I can't change the version of package because it's mostly used in all packages that used in runtime of other packages, so serve-d are not working at all at this time.

Mostly errors comes from requests package, which throws this exception:

object.Exception@../../../.dub/packages/requests-2.0.9/requests/source/requests/ssl_adapter.d(197): loading openssl: unknown version for init
[1]    187451 segmentation fault (core dumped)  ./serve-d
WebFreak001 commented 1 year ago

Are you using the serve-d nightly release? It should already work again

AssertionBit commented 10 months ago

Yes, only nightly release

dejlek commented 10 months ago

I did not see this error in the past few months, so you may close it as far as I am concerned.

Speykious commented 9 months ago

It stopped working again. I'm on Arch Linux with OpenSSL 3.2.0, using nightly release.

object.Exception@../../../.dub/packages/requests/2.1.1/requests/source/requests/ssl_adapter.d(204): loading openssl: unknown version Tuple!(int, "major", int, "minor")(3, 2) for init
WebFreak001 commented 9 months ago

upstream: https://github.com/ikod/dlang-requests/issues/161