dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 71 forks source link

dmd 2.101: none of the overloads of `fatalHandler` are callable using a `shared` object #695

Closed belka-ew closed 1 year ago

belka-ew commented 2 years ago

I seem not to be able to build DCD witht dmd 2.101, neither master nor the latest stable relase. I tried make dmd and dub build --build=release --config=server (on Linux).

The error is:

src/dcd/server/main.d(78,2): Error: none of the overloads of fatalHandler are callable using a shared object /usr/include/dmd/std/logger/core.d(673,37): Candidates are: std.logger.core.Logger.fatalHandler() /usr/include/dmd/std/logger/core.d(679,26): std.logger.core.Logger.fatalHandler(void delegate() @safe fh)

WebFreak001 commented 2 years ago

There have been changes with adding more shared in std.experimental.logger, which aren't yet adopted to DCD, so we need to fix those first. Sadly it's not a 100% implementation yet, so we need to add a bunch of unsafe shared casts to where shared hasn't been added yet, but those should fix the issues.

WebFreak001 commented 1 year ago

fixed in 39baba327e73cd123c04e439e8fc5b8180b59be4