Skip to content

Conversation

@ssiccha
Copy link
Contributor

@ssiccha ssiccha commented Jul 6, 2018

Uses the new command line option --alwaystrace. This lets GAP
also print tracebacks when the break loop is disabled by -T.

This still overwrites the library functions Where, WHERE, and
ErrorInner. This can be avoided once there is a central GAP
error stream where these functions send their output, see
gap-system/gap#1815.

Fixes #38.

@ssiccha ssiccha changed the title Print traceback when encountering errors Print traceback when encountering errors (DONT MERGE) Jul 6, 2018
@ssiccha
Copy link
Contributor Author

ssiccha commented Jul 6, 2018

This needs gap-system/gap#2551 to be merged.

@ssiccha ssiccha force-pushed the ss/use-gap-option-alwaystrace branch from 3d5366b to 21adbb7 Compare July 7, 2018 09:34
@codecov
Copy link

codecov bot commented Jul 7, 2018

Codecov Report

Merging #70 into master will decrease coverage by 17.64%.
The diff coverage is 2.66%.

@@            Coverage Diff             @@
##           master     #70       +/-   ##
==========================================
- Coverage   61.24%   43.6%   -17.65%     
==========================================
  Files           9       9               
  Lines         836     883       +47     
==========================================
- Hits          512     385      -127     
- Misses        324     498      +174
Impacted Files Coverage Δ
gap/JupyterError.gi 18.18% <2.66%> (-22.91%) ⬇️
gap/JupyterHelp.gi 0% <0%> (-43.28%) ⬇️
gap/JupyterStream.gi 15% <0%> (-30%) ⬇️
gap/JupyterRenderable.gi 70% <0%> (-20%) ⬇️
gap/JupyterInspection.gi 69.11% <0%> (-16.18%) ⬇️
gap/JupyterUtil.gi 25% <0%> (-3.75%) ⬇️
gap/JupyterKernel.gi 76.79% <0%> (-1.69%) ⬇️

@ssiccha
Copy link
Contributor Author

ssiccha commented Jul 7, 2018

I've also added a little hack to let the JupyterKernel stay compatible with GAP 4.9.x versions. This is also relatively ugly, but otherwise JupyterKernel would become unusable until GAP 4.10 is released.

Copy link
Member

@markuspf markuspf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, could you whitespace-cleanup JupyterError.gi?

@ssiccha ssiccha force-pushed the ss/use-gap-option-alwaystrace branch from 21adbb7 to b5f34ac Compare July 10, 2018 16:06
@ssiccha
Copy link
Contributor Author

ssiccha commented Jul 10, 2018

Done. Unless gap-system/gap#2551is merged into master the travis checks fail due to some "unbound global variable" syntax warning though.

@ssiccha ssiccha force-pushed the ss/use-gap-option-alwaystrace branch from b5f34ac to cfc21c5 Compare September 17, 2018 11:17
@ssiccha
Copy link
Contributor Author

ssiccha commented Sep 17, 2018

I completely forgot about this pull request. Sorry! I just forgot to retrigger the tests once my patch was merged into the gap master branch...

I removed the compatibility hack for 4.9 and made 4.10 a dependency in the PackageInfo.g file.

Uses the new command line option --alwaystrace. This lets GAP
also print tracebacks when the break loop is disabled by -T.

This still overwrites the library functions Where, WHERE, and
ErrorInner. This can be avoided once there is a central GAP
error stream where these functions send their output, see
gap-system/gap#1815.

Since redirecting error messages was not available in 4.9
this also sets the required GAP version to >= 4.10.

Fixes gap-packages#38.
@ssiccha ssiccha force-pushed the ss/use-gap-option-alwaystrace branch from cfc21c5 to 3c5bb76 Compare September 17, 2018 11:29
@ssiccha ssiccha changed the title Print traceback when encountering errors (DONT MERGE) Print traceback when encountering errors Sep 17, 2018
@markuspf markuspf merged commit ac731aa into gap-packages:master Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants