Skip to content

prolog multiline output broken #88

Description

@azrdev

A prolog query that returns multiple results prints an error.

Example: https://tio.run/##KyjKz8lP1y0uz/z/vyS1uETDUFOPC8wwAjKgYhGaegA

input

test(X).

Code (broken)

test(1).
test(2).

Debug


ERROR: Type error: `character_code' expected, found `-1' (an integer)
ERROR: In:
ERROR:   [11] char_code(_2404,-1)
ERROR:   [10] '$in_reply'(-1,'?h') at /opt/prolog-swi/lib/swipl/boot/init.pl:846

Real time: 0.202 s
User time: 0.088 s
Sys. time: 0.014 s
CPU share: 49.97 %
Exit code: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions