Closed dejlek closed 10 months 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?
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.
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.
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
Are you using the serve-d nightly release? It should already work again
Yes, only nightly release
I did not see this error in the past few months, so you may close it as far as I am concerned.
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
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)
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.