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

Cannot use esbonio with ablog extension #874

Closed
alcarney opened this issue Aug 13, 2024 · 0 comments · Fixed by #883
Closed

Cannot use esbonio with ablog extension #874

alcarney opened this issue Aug 13, 2024 · 0 comments · Fixed by #883
Labels
bug Something isn't working lsp Issues that relate to the language server
Milestone

Comments

@alcarney
Copy link
Member

Expected behavior

Esbonio should be usable with the ablog extension

Actual behavior

Sphinx, when running under Esbonio fails to build correctly

Log output

Traceback (most recent call last):
  File "/var/home/alex/Projects/swyddfa/esbonio/develop/scripts/sphinx-app.py", line 56, in <module>
    app.build()
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/application.py", line 378, in build
    self.builder.build_update()
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 297, in build_update
    self.build(to_build,
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 318, in build
    updated_docnames = set(self.read())
                           ^^^^^^^^^^^
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 425, in read
    self._read_serial(docnames)
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 477, in _read_serial
    self.read_doc(docname)
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 536, in read_doc
    publisher.publish()
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/docutils/core.py", line 236, in publish
    self.apply_transforms()
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/docutils/core.py", line 216, in apply_transforms
    self.document.transformer.apply_transforms()
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/transforms/__init__.py", line 93, in apply_transforms
    super().apply_transforms()  # type: ignore[misc]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/docutils/transforms/__init__.py", line 182, in apply_transforms
    transform.apply(**kwargs)
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/transforms/__init__.py", line 412, in apply
    self.app.emit('doctree-read', self.document)
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/application.py", line 498, in emit
    return self.events.emit(event, *args, allowed_exceptions=allowed_exceptions)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alex/.local/share/hatch/env/virtual/blog/Ipy5CwKX/blog/lib/python3.12/site-packages/sphinx/events.py", line 109, in emit
    raise ExtensionError(
sphinx.errors.ExtensionError: Handler <function process_posts at 0x7fd60859d260> for event 'doctree-read' threw an exception (exception: Losing "classes" attribute: ['esbonio-marker', 'esbonio-marker-0'])

(Optional) Settings from conf.py

No response

@alcarney alcarney added bug Something isn't working lsp Issues that relate to the language server labels Aug 13, 2024
@alcarney alcarney added this to the 1.0 milestone Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp Issues that relate to the language server
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant