Skip to content

Syntax errors in EvalString sometimes not displayed correctly #5242

Closed
@zickgraf

Description

Observed behaviour

gap> EvalString( "(1;" );
Syntax error: ) expected in stream:1
�
Error, Could not evaluate string.

Expected behaviour

gap> EvalString( "(1;" );
Syntax error: ) expected in stream:1
_EVALSTRINGTMP:=(1;
                  ^
Error, Could not evaluate string.

Sometimes the error is displayed as expected:

gap> EvalString( ";;" );
Syntax error: expression expected in stream:1
_EVALSTRINGTMP:=;;;
                ^^
Error, Could not evaluate string.

but I could not find a pattern.

Copy and paste GAP banner (to tell us about your setup)

 ┌───────┐   GAP 4.12.1 of 2022-10-20
 │  GAP  │   https://www.gap-system.org
 └───────┘   Architecture: x86_64-pc-linux-gnu-default64-kv8
 Configuration:  gmp 6.2.1, GASMAN, readline
 Loading the library and packages ...
 Packages:   GAPDoc 1.6.6.dev, IO 4.7.0dev, PrimGrp 3.4.2, SmallGrp 1.5, TransGrp 3.6.3
 Try '??help' for help. See also '?copyright', '?cite' and '?authors'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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