-
Notifications
You must be signed in to change notification settings - Fork 13
Print traceback when encountering errors #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print traceback when encountering errors #70
Conversation
|
This needs gap-system/gap#2551 to be merged. |
3d5366b to
21adbb7
Compare
Codecov Report
@@ 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
|
|
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. |
markuspf
left a comment
There was a problem hiding this 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?
21adbb7 to
b5f34ac
Compare
|
Done. Unless gap-system/gap#2551is merged into master the travis checks fail due to some "unbound global variable" syntax warning though. |
b5f34ac to
cfc21c5
Compare
|
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.
cfc21c5 to
3c5bb76
Compare
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.