Skip to content
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

Keep going in doc errors #16100

Closed
vbraun opened this issue Apr 8, 2014 · 18 comments
Closed

Keep going in doc errors #16100

vbraun opened this issue Apr 8, 2014 · 18 comments

Comments

@vbraun
Copy link
Member

vbraun commented Apr 8, 2014

$ sage -docbuild -h
Usage: sage -docbuild [OPTIONS] DOCUMENT (FORMAT | COMMAND)

[...]

  Advanced:
    Use these options with care.

    -S OPTS, --sphinx-opts=OPTS
                        pass comma-separated OPTS to sphinx-build
    -U, --update-mtimes
                        before building reference manual, update modification
                        times for auto-generated ReST files
    -k, --keep-going    Do not abort on errors but continue as much as
                        possible after an error

CC: @nathanncohen @jhpalmieri

Component: documentation

Keywords: days57

Author: Volker Braun

Branch/Commit: 1e7bc36

Reviewer: Nicolas M. Thiéry

Issue created by migration from https://trac.sagemath.org/ticket/16100

@vbraun vbraun added this to the sage-6.2 milestone Apr 8, 2014
@nthiery
Copy link
Contributor

nthiery commented Apr 8, 2014

Author: Volker Braun

@nthiery
Copy link
Contributor

nthiery commented Apr 8, 2014

Reviewer: Nicolas M. Thiéry

@vbraun
Copy link
Member Author

vbraun commented Apr 8, 2014

Branch: u/vbraun/keep_going_in_doc_errors

@vbraun
Copy link
Member Author

vbraun commented Apr 8, 2014

Commit: 0e912bf

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member Author

vbraun commented Apr 8, 2014

New commits:

0e912bfAdd sage -docbuild -k option to keep going after errors

@vbraun
Copy link
Member Author

vbraun commented Apr 8, 2014

Changed keywords from none to days57

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Apr 8, 2014

comment:5

AHahahah. Thank you Volker :-D

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Apr 8, 2014

comment:6

HMmmmmmm... I try to read and understand how it works, but it does not work for my own use yet. The "raise OSError" which is called when there is a broken link in a page is in custom-sphinx-build.py.

I added a commit for that in public/16100. Is that okay for you ? If it is I will look again at your commit and review it properly, i.e. try to understand it :-P

Nathann

@nthiery
Copy link
Contributor

nthiery commented Apr 8, 2014

comment:7

Yup, Volker is working on that right now :-)

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Apr 8, 2014

comment:8

Well, short of this I agree with the commit. The only thing is that the "if ABORT_ON_ERROR:" added before the raise makes me wonder if anything is displayed when the exception is caught. Not having the exception is cool, thinking that nothing happened is something different :-P

And I do not know how to test that.

Unfortunately I have to leave right now, and I may not be near a computer for the next few days...

Thank you very much again, Volker ! I want to keep the links working, and this really helps to track them :-)

Nathann

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 8, 2014

Changed commit from 0e912bf to d51fa29

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 8, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

d51fa29when aborting wait until the end of the source file

@vbraun
Copy link
Member Author

vbraun commented Apr 8, 2014

comment:10

The actual error message consists of three lines and looks like

[geometry ] <autodoc>:0: ERROR: Unknown directive type "blah".
[geometry ] .. blah::
[geometry ] /home/vbraun/Code/sage/local/lib/python2.7/site-packages/sage/geometry/cone.py:docstring of sage.geometry.cone:0: ERROR: Unknown directive type "foo".

If we raise the error on the first error line then we lose the important information about the file that contains the error. The updated patch will spit out all error messages in the file before aborting (or not abort if you pass -k).

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 8, 2014

Changed commit from d51fa29 to 1e7bc36

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 8, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

1e7bc36only print backtrace once

@vbraun
Copy link
Member Author

vbraun commented Apr 8, 2014

comment:12

Nicolas reviewed the ticket

@vbraun
Copy link
Member Author

vbraun commented Apr 9, 2014

Changed branch from u/vbraun/keep_going_in_doc_errors to 1e7bc36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants