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

Error recieved with example input #2

Open
Ragnarnw opened this issue Mar 11, 2022 · 0 comments
Open

Error recieved with example input #2

Ragnarnw opened this issue Mar 11, 2022 · 0 comments

Comments

@Ragnarnw
Copy link

./hall_request_assigner --input '
{
    "hallRequests" : 
        [[false,false],[true,false],[false,false],[false,true]],
    "states" : {
        "one" : {
            "behaviour":"moving",
            "floor":2,
            "direction":"up",
            "cabRequests":[false,false,true,true]
        },
        "two" : {
            "behaviour":"idle",
            "floor":0,
            "direction":"stop",
            "cabRequests":[false,false,false,false]
        }
    }
}'
jsonx.JsonException@d-json/jsonx.d(614): Expected {, saw 

----------------
d-json/jsonx.d:104 pure @safe void jsonx.enforceChar!(immutable(char)[]).enforceChar(ref immutable(char)[], char, bool) [0x4ef1c6]
d-json/jsonx.d:305 main.Input jsonx.jsonDecode_impl!(main.Input, immutable(char)[]).jsonDecode_impl(ref immutable(char)[]) [0x4eef7b]
d-json/jsonx.d:58 main.Input jsonx.jsonDecode!(main.Input, immutable(char)[]).jsonDecode(immutable(char)[]) [0x4eeef0]
main.d:34 _Dmain [0x4c2688]
??:? _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv [0x4fcab2]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x4fca08]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() [0x4fca6e]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x4fca08]
??:? _d_run_main [0x4fc965]
??:? main [0x4d7e2f]
??:? __libc_start_main [0x710630b2]

Reproducible with both exectubale from "releases" and by building hall_request_assigner from build.sh. Input is copied straight from "example input" in README.md.

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

No branches or pull requests

1 participant