executablebooks / sphinx-exercise

A Sphinx extension for producing exercise and solution directives.
https://ebp-sphinx-exercise.readthedocs.io
MIT License
18 stars 6 forks source link

Checks on availability of 'sphinx_exercise_registry' attribute #44

Closed AakashGfude closed 2 years ago

AakashGfude commented 2 years ago

Describe the problem

In some places in the code, it is assumed that sphinx_exercise_registry will always be present like in https://github.com/executablebooks/sphinx-exercise/blob/master/sphinx_exercise/post_transforms.py#L213 , which leads to errors like

Screen Shot 2021-12-07 at 3 36 47 pm

found in lecture-datascience.myst build: https://github.com/QuantEcon/lecture-datascience.myst/runs/4439388922?check_suite_focus=true

Link to your repository or website

No response

Steps to reproduce

  1. Clone https://github.com/QuantEcon/lecture-datascience.myst locally
  2. run 'jb build lectures --builder==pdflatex' with sphinx-exercise==0.3.0

The version of Python you're using

No response

Your operating system

No response

Versions of your packages

sphinx-exercise: 0.3.0

Additional context

No response

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: