obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

[BUG] Persistent output broken

Open superle3 opened this issue 5 months ago • 1 comments

Describe the bug Persistent output doesn't work

Software Version

tested on both windows 10 22H2 and fedora 41 kde on obsidian 1.9.12 and plugin version 2.1.2

To Reproduce For a new vault, turn on persistent output. have the file (without the \)

\```python
print(1)
\```

and run the code

Expected behavior expect an output code block of: (without \)

\```output
1
\```

Additional context

https://github.com/twibiral/obsidian-execute-code/blob/1ad683d7b2013554c3863d9e843f9fd3b116c7c0/src/output/FileAppender.ts#L187 In here, the output of section is

Image. It has the attributes

type start = {line: number, col: number};
type end = { line: number, col: number};

instead of lineEnd and lineStart.

I don't know when this api changed or if this across all devices so solution could be to check for both versions?

superle3 avatar Sep 11 '25 20:09 superle3

Thank you for reporting this! I think this should be a straightforward fix when I have some time for it

twibiral avatar Sep 15 '25 11:09 twibiral