andrey-zherikov / argparse

Parser for command-line arguments
https://andrey-zherikov.github.io/argparse/
Boost Software License 1.0
31 stars 6 forks source link

Bump from d789306 to 2454a72 broke the build #144

Closed ljmf00-wekaio closed 10 months ago

ljmf00-wekaio commented 10 months ago

Compilation flags used --mtriple=x86_64-linux-gnu -w --preview=dip1000 --preview=dtorfields --preview=fieldwise -O --release --boundscheck=off (this is a precheck compilation phase).

Example code for argparse options (the code that produces the error):

struct ViewerOptions
{
    @(MutuallyExclusive())
    {
        @(NamedArgument("local").Description("Choose a local connection").Optional())
        bool local = true;

        @(NamedArgument("remote").Description("Choose a remote connection").Optional())
        string remoteAddress = null;
    }

    @(NamedArgument("serverPath").Description("Path the server binary").Optional())
    string serverPath = null;

    @(NamedArgument("p", "path").Description("Path of the dumping blobs").Optional())
    string localPath = defaultPath;

    @(NamedArgument("namespace").Description("Namespace to interleave").Optional())
    string namespace = null;

    @(NamedArgument("d", "debug").Description("Enable debugging").Optional())
    bool debugging = false;
}
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(278): Error: CTFE failed because of previous errors in `getMemberArgumentUDA`
/opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions).fun!"serverPath"` error instantiating
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286):        instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")`
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358):        instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)`
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603):        instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)`
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(628):        ... (2 instantiations, -v to show) ...
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192):        instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)`
source/wtracer/viewer/main.d(273):        instantiated from here: `CLI!(ViewerOptions)`
/home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(278): Error: CTFE failed because of previous errors in `getMemberArgumentUDA`
/opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions).fun!"localPath"` error instantiating
More complete log: ``` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(77): Error: first argument is not a symbol /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(80): while evaluating: `static assert(typeUDAs.length <= 1)` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions).fun!"local"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(626): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(77): Error: first argument is not a symbol /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(80): while evaluating: `static assert(typeUDAs.length <= 1)` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions).fun!"remoteAddress"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(626): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(77): Error: first argument is not a symbol /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(80): while evaluating: `static assert(typeUDAs.length <= 1)` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions).fun!"serverPath"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(626): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(77): Error: first argument is not a symbol /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(80): while evaluating: `static assert(typeUDAs.length <= 1)` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions).fun!"localPath"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(626): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(77): Error: first argument is not a symbol /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(80): while evaluating: `static assert(typeUDAs.length <= 1)` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions).fun!"namespace"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(626): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(77): Error: first argument is not a symbol /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/argumentudahelpers.d(80): while evaluating: `static assert(typeUDAs.length <= 1)` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions).fun!"debugging"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.on, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(626): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(278): Error: CTFE failed because of previous errors in `getMemberArgumentUDA` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions).fun!"local"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(628): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(278): Error: CTFE failed because of previous errors in `getMemberArgumentUDA` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions).fun!"remoteAddress"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(628): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(278): Error: CTFE failed because of previous errors in `getMemberArgumentUDA` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions).fun!"serverPath"` error instantiating /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(286): instantiated from here: `staticMap!(getArgumentUDA, "local", "remoteAddress", "serverPath", "localPath", "namespace", "debugging")` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(358): instantiated from here: `TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(603): instantiated from here: `createCommand!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/parser.d(628): ... (2 instantiations, -v to show) ... /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/api/cli.d(192): instantiated from here: `CLI!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.autodetect, null), ViewerOptions)` source/wtracer/viewer/main.d(273): instantiated from here: `CLI!(ViewerOptions)` /home/runner/work/wtracer/wtracer/3rdparty/argparse/source/argparse/internal/command.d(278): Error: CTFE failed because of previous errors in `getMemberArgumentUDA` /opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/meta.d(652): Error: template instance `argparse.internal.command.TypeTraits!(Config('=', '\xff', '-', "--", true, false, true, Style(TextStyle("\x1b[1"), TextStyle("\x1b[1"), TextStyle("\x1b[1;4"), TextStyle("\x1b[93"), TextStyle("\x1b[3"), TextStyle("\x1b[93"), TextStyle("\x1b[31")), StylingMode.off, null), ViewerOptions).fun!"localPath"` error instantiating ```
SirNickolas commented 10 months ago

argumentudahelpers.d(77): Error: first argument is not a symbol

Oh, I recognize this error. Have seen it when I was trying to make argparse compatible with older versions of D. Upgrading the compiler to at least D 2.101 (LDC 1.31+) should fix that.

I’m planning to provide compatibility with D 2.095+, but it will be simpler to aim for a higher version first. You are using LDC 1.30 (i.e., D 2.100), aren’t you?

ljmf00-wekaio commented 10 months ago

I’m planning to provide compatibility with D 2.095+, but it will be simpler to aim for a higher version first. You are using LDC 1.30 (i.e., D 2.100), aren’t you?

Yes. Weka is under https://github.com/weka/ldc/releases/tag/v1.30.0-weka12 (there some upstream backport fixes but its mostly 1.30, until we upgrade our codebase to be on more recent D versions.

ljmf00-wekaio commented 10 months ago

Not a blocker, because argparse is version pinned.

andrey-zherikov commented 10 months ago

It's a pleasure to know that this library is used by Weka :)