Giter Club home page Giter Club logo

dscord's People

Contributors

b1naryth1ef avatar metalang avatar wolfiri avatar zerosumgame avatar

Watchers

 avatar  avatar

Forkers

araspik

dscord's Issues

Dscord build fails with "none of the overloads of wait are callable using a non-shared object"

src\dscord\api\ratelimit.d(60,34): Error: none of the overloads of wait are callable using a non-shared object, candidates are:
C:\Users\Jared\AppData\Roaming\dub\packages\vibe-core-1.4.1\vibe-core\source\vibe\core\sync.d(985,6):        vibe.core.sync.ManualEvent.wait()
C:\Users\Jared\AppData\Roaming\dub\packages\vibe-core-1.4.1\vibe-core\source\vibe\core\sync.d(994,6):        vibe.core.sync.ManualEvent.wait(int emit_count)
C:\Users\Jared\AppData\Roaming\dub\packages\vibe-core-1.4.1\vibe-core\source\vibe\core\sync.d(996,6):        vibe.core.sync.ManualEvent.wait(Duration timeout, int emit_count)

Calls to Task.receiveOnlyCompat fail because the method no longer exists

src\dscord\voice\youtubedl.d(70,23): Error: template instance `receiveOnlyCompat!string` template receiveOnlyCompat is not defined
src\dscord\voice\youtubedl.d(91,23): Error: template instance `receiveOnlyCompat!string` template receiveOnlyCompat is not defined
src\dscord\voice\youtubedl.d(121,21): Error: template instance `receiveOnlyCompat!(shared(ubyte[][]))` template receiveOnlyCompat is not defined

Deprecation messages due to usage of vibe.core.sync.ManualEvent

src\dscord\voice\client.d(160,18): Deprecation: vibe.core.core.ManualEvent is not visible from module client
src\dscord\voice\client.d(192,17): Deprecation: vibe.core.core.ManualEvent is not visible from module client
src\dscord\api\ratelimit.d(53,27): Deprecation: vibe.core.core.ManualEvent is not visible from module ratelimit

These deprecation messages are appearing due to changes to D's import rules. The listed modules need to import vibce.core.sync.

Calls to Task.sendCompat fail because the method no longer exists

src\dscord\voice\youtubedl.d(19,7): Error: no property sendCompat for type Task
src\dscord\voice\youtubedl.d(39,18): Error: template instance `dscord.voice.youtubedl.maybeSendCompat!string` error instantiating
src\dscord\voice\youtubedl.d(19,7): Error: no property sendCompat for type Task
src\dscord\voice\youtubedl.d(45,27): Error: template instance `dscord.voice.youtubedl.maybeSendCompat!(typeof(null))` error instantiating
src\dscord\voice\youtubedl.d(70,23): Error: template instance `receiveOnlyCompat!string` template receiveOnlyCompat is not defined
src\dscord\voice\youtubedl.d(91,23): Error: template instance `receiveOnlyCompat!string` template receiveOnlyCompat is not defined
src\dscord\voice\youtubedl.d(19,7): Error: no property sendCompat for type Task
src\dscord\voice\youtubedl.d(108,11): Error: template instance `dscord.voice.youtubedl.maybeSendCompat!(shared(ubyte[][]))` error instantiating
src\dscord\voice\youtubedl.d(121,21): Error: template instance `receiveOnlyCompat!(shared(ubyte[][]))` template receiveOnlyCompat is not defined

Dscord can no longer build due to changes to Phobos template isSomeString

dscord\src\dscord\util\json.d(332,5): Error: cannot modify immutable expression result
dscord\src\dscord\util\json.d(295,7): Error: template instance `dscord.util.json.loadSingleField!(PermissionOverwrite, immutable(char))` error instantiating
dscord\src\dscord\util\json.d(246,9):        instantiated from here: loadSingleField!(PermissionOverwrite, PermissionOverwriteType)
dscord\src\dscord\types\base.d(183,29):        instantiated from here: deserializeFromJSON!(PermissionOverwrite)

This is caused by dlang/phobos#5291. As I explained there:

The breakage is here (https://github.com/MetaLang/dscord/blob/master/src/dscord/util/json.d#L194). PermissionOverwriteType is an enum with a base type of string. Due to this pull request, trying to deserialize a field of type PermissionOverwrite now bypasses the isSomeString case as it now doesn't pass the isSomeString!PermissionOverwriteType check. It falls through to the isArray case and tries to serialize each individual immutable(char), which falls through to the default case and results in the code trying to write to an immutable value.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.