#5043: gap_console help broken
-------------------------------+--------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: positive_review
Priority: major | Milestone: sage-5.1
Component: interfaces | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Karl-Dieter Crisman
Authors: Ivan Andrus | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Changes (by kcrisman):
* status: needs_review => positive_review
* reviewer: => Karl-Dieter Crisman
Old description:
> {{{
>
> On Tue, Jan 20, 2009 at 8:03 PM, davidp <[email protected]> wrote:
> >
> > I will be teaching abstract algebra this semester and want to
> > introduce my students to Sage and GAP. I have installed
> > gap_packages-4.4.10_6, but I am still having trouble with
> > documentation:
> >
> > ----------------------------------------------------------------------
> > | Sage Version 3.2.3, Release Date: 2009-01-05 |
> > | Type notebook() for the GUI, and license() for information. |
> > ----------------------------------------------------------------------
> > sage: gap_console()
> > GAP4, Version: 4.4.10 of 02-Oct-2007, i686-pc-linux-gnu-gcc
> > gap> ?SymmetricGroup
> > Help: Showing `Reference: SymmetricGroup'
> > Record: '<rec>.tempfile' must have an assigned value at
> > str := OutputTextFile( $SAGE.tempfile, false );
> > called from
> > HELP_VIEWER_INFO.(viewer).show( data ); called from
> > HELP_PRINT_MATCH( i ); called from
> > HELP_SHOW_MATCHES( books, str, true ) called from
> > <function>( <arguments> ) called from read-eval-loop
> > Entering break read-eval-print loop ...
> > you can 'quit;' to quit to outer loop, or
> > you can 'return;' after assigning a value to continue
> > brk>
> >
> >
> > I am running Sage on a thinkpad with Fedora 10.
> >
> > Any suggestions would be appreciated.
>
> The above happens because the default GAP workspace evidently that messes
> up the help system. I think this is a bug (?), probably in GAP.
>
> You can do the following instead:
>
> sage: gap_console(False)
> ...
>
> Or
>
> sage: gap.SymmetricGroup? # <--- i like this
>
> William
> }}}
New description:
{{{
On Tue, Jan 20, 2009 at 8:03 PM, davidp <[email protected]> wrote:
>
> I will be teaching abstract algebra this semester and want to
> introduce my students to Sage and GAP. I have installed
> gap_packages-4.4.10_6, but I am still having trouble with
> documentation:
>
> ----------------------------------------------------------------------
> | Sage Version 3.2.3, Release Date: 2009-01-05 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
> sage: gap_console()
> GAP4, Version: 4.4.10 of 02-Oct-2007, i686-pc-linux-gnu-gcc
> gap> ?SymmetricGroup
> Help: Showing `Reference: SymmetricGroup'
> Record: '<rec>.tempfile' must have an assigned value at
> str := OutputTextFile( $SAGE.tempfile, false );
> called from
> HELP_VIEWER_INFO.(viewer).show( data ); called from
> HELP_PRINT_MATCH( i ); called from
> HELP_SHOW_MATCHES( books, str, true ) called from
> <function>( <arguments> ) called from read-eval-loop
> Entering break read-eval-print loop ...
> you can 'quit;' to quit to outer loop, or
> you can 'return;' after assigning a value to continue
> brk>
>
>
> I am running Sage on a thinkpad with Fedora 10.
>
> Any suggestions would be appreciated.
The above happens because the default GAP workspace evidently that messes
up the help system. I think this is a bug (?), probably in GAP.
You can do the following instead:
sage: gap_console(False)
...
Or
sage: gap.SymmetricGroup? # <--- i like this
William
}}}
----
Apply [attachment:trac_5043-extcode-gap-console-help.patch] to the extcode
repository and [attachment:trac_5043-gap-console-help.patch] to the Sage
library.
--
Comment:
This does fix the problem as stated, and of course the behavior with
`False` remains the same. The code makes sense, though I had to learn a
little bit about how GAP does these things and our interface.
The issue with saving... I mean, when this is called, {{{$SAGE}}} is set,
right? So I'm not sure that this is really causing any new problems.
What use case are you worried about? The `-L` isn't even called if we do
`gap_console(False)`, and if one does `True` (default) then everything is
the same as it was... I'm missing something here. Unless you think of
what the case was where this is really different from the previous
behavior, positive review.
Patchbot, apply [attachment:trac_5043-extcode-gap-console-help.patch] to
the extcode repository and [attachment:trac_5043-gap-console-help.patch]
to the Sage library.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5043#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.