GAP.jl icon indicating copy to clipboard operation
GAP.jl copied to clipboard

redirect Julia's stderr?

Open ThomasBreuer opened this issue 6 years ago • 5 comments

Currently Julia error messages are visible on the screen but they do not appear in GAP's log files. For example, the ArgumentError: ... line from the GAP session

gap> Julia.Base.\/\/( 0, 0 );
ArgumentError: invalid rational: zero(Int64)//zero(Int64)
Error, JuliaError
not in any function at *stdin*:15
type 'quit;' to quit to outer loop
brk>

is missing from the corresponding GAP log file.

Would it be possible to redirect Julia's stderr such that GAP's stderr is used instead?

ThomasBreuer avatar Oct 22 '18 15:10 ThomasBreuer

This was already fixed in #60

sebasguts avatar Oct 23 '18 07:10 sebasguts

Not really, that only dealt with exceptions caught by us. Eg our test suite causes Julia to print warnings to stderr. And strictly speaking, I guess one might also want to redirect their stdout

fingolfin avatar Oct 23 '18 08:10 fingolfin

Okay, the given example is nevertheless invalid, as this one is fixed. I will have a look at the testsuite.

sebasguts avatar Oct 23 '18 08:10 sebasguts

@fingolfin I cannot really find a place where the testuite prints errors to the screen. Can you point this out?

sebasguts avatar Nov 08 '18 13:11 sebasguts

@sebasguts see issue #237

fingolfin avatar May 16 '19 09:05 fingolfin