esbonio icon indicating copy to clipboard operation
esbonio copied to clipboard

`ValueError` when typing directive options in MyST

Open alcarney opened this issue 9 months ago • 0 comments

Expected behavior

When typing something like

```{eval-rst}

.. autoclass:: my.module.Class
   :members:

```

There are a bunch of ValueErrors in the logs from the _render_myst_role_with_text_edit function due to it trying to create a Position instance with a negative line or character value.

Thankfully error handling elsewhere in the server prevents this from being a major issue

Actual behavior

ValueErrors should not be raised

Log output

No response

(Optional) Settings from conf.py

No response

alcarney avatar Apr 29 '24 17:04 alcarney