Skip to content

irritating GAP warning/error handling #1058

Closed
@ThomasBreuer

Description

I stumbled over the following when dealing with #1057.

julia> f = GAP.evalstr("function() res:= 1; return res; end")
GAP: function(  ) ... end

julia> f()
1

julia> g"\\"
ERROR: Error thrown by GAP: Syntax warning: Unbound global variable in stream:1
function() res:= 1; return res; end;
           ^^^
Syntax warning: Unbound global variable in stream:1
function() res:= 1; return res; end;
                           ^^^
Syntax error: String must end with " before end of file in stream:1
[...]

The GAP syntax warning is not shown in the construction of the function but it is kept in some buffer.
For the later GAP error, the error message gets printed, but first the text of the old syntax warning appears.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions