gap-packages/JupyterKernel

Loading JupyterKernel breaks tst/testextra/helpsys.tst

Closed this issue · 2 comments

In the test log:

########> Diff in /circa/scratch/gap-jenkins/workspace/GAP-pkg-update-stable-q\
uicktest/GAPCOPTS/64build/GAPGMP/gmp/GAPTARGET/standard/label/kovacs/GAP-pkg-u\
pdate-stable-snapshot/tst/testextra/helpsys.tst:21
# Input is:
HELP(":?");
# Expected output:
# But found:
Error, Function Calls: <func> must return a value
########

In GAP session, to show the backtrace:

gap> HELP(":?");
Error, Function Calls: <func> must return a value in
  return HELP_VIEWER_INFO.(viewer).show( 
   [ book.bookname, StripEscapeSequences( book.entries[entrynr][1] ), data ] )
 ; at /Users/alexk/Library/Preferences/GAP/pkg/JupyterKernel/gap/JupyterHelp.g\
i:75 called from 
GET_HELP_URL( i 
 ) at /Users/alexk/Library/Preferences/GAP/pkg/JupyterKernel/gap/JupyterHelp.g\
i:128 called from
HELP_SHOW_MATCHES( books, str, false 
 ) at /Users/alexk/Library/Preferences/GAP/pkg/JupyterKernel/gap/JupyterHelp.g\
i:260 called from
<function "HELP">( <arguments> )
 called from read-eval loop at *stdin*:9
you can supply one by 'return <value>;'
brk>

The test sets SetHelpViewer("screen"); and we have

gap> Print(HELP_VIEWER_INFO.("screen").show);
function ( lines )
    if UserPreference( "Pager" ) = "builtin" then
        if IsRecord( lines ) then
            lines.exitAtEnd := false;
        else
            lines := rec(
                lines := lines,
                exitAtEnd := false );
        fi;
        PAGER_BUILTIN( lines );
    else
        PAGER_EXTERNAL( lines );
    fi;
    return;
end