Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dejlek opened this issue Jul 7, 2022 · 9 comments
Closed

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

dejlek opened this issue Jul 7, 2022 · 9 comments
Labels

Comments

@dejlek
Copy link

dejlek commented Jul 7, 2022

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.

@WebFreak001 WebFreak001 added the bug label Jul 7, 2022
@EsoCoding
Copy link

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 WebFreak001 transferred this issue from Pure-D/code-d Dec 3, 2022
@WebFreak001
Copy link
Member

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
Copy link

EsoCoding commented Dec 4, 2022

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
Copy link

AssertionBit commented Jul 20, 2023

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
Copy link
Member

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

@AssertionBit
Copy link

Yes, only nightly release

@dejlek
Copy link
Author

dejlek commented Oct 30, 2023

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

@Speykious
Copy link

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
Copy link
Member

upstream: ikod/dlang-requests#161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants