Skip to content

fix: use non-NUL separator in mermaid_cache_path#8

Merged
delphinus merged 1 commit into
delphinus:mainfrom
hambergerpls:fix/sha256-blob-error
Apr 29, 2026
Merged

fix: use non-NUL separator in mermaid_cache_path#8
delphinus merged 1 commit into
delphinus:mainfrom
hambergerpls:fix/sha256-blob-error

Conversation

@hambergerpls
Copy link
Copy Markdown
Contributor

@hambergerpls hambergerpls commented Apr 28, 2026

Summary

  • Swaps the NUL byte separator ("\0") for "|" in mermaid_cache_path
  • The NUL byte causes the Lua→vimscript bridge to convert the concatenated string to a Blob on Neovim ≤ 0.11, which vim.fn.sha256() rejects with E976
  • Fixed upstream in v0.12 (vim-patch 9.1.1774), so this only affects ≤ 0.11

Closes #7

The NUL byte separator in mermaid_cache_path causes the Lua→vimscript
bridge to convert the concatenated string to a Blob on Neovim ≤ 0.11,
which vim.fn.sha256 rejects with E976. Using '|' avoids the Blob
conversion entirely. Fixed upstream in v0.12 (vim-patch 9.1.1774).
@hambergerpls hambergerpls force-pushed the fix/sha256-blob-error branch from 1875631 to 18aefde Compare April 28, 2026 15:45
@hambergerpls hambergerpls changed the title fix: handle Blob inputs from nvim_buf_get_lines in sha256 fix: use non-NUL separator in mermaid_cache_path Apr 28, 2026
@delphinus delphinus merged commit 63d7cc5 into delphinus:main Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E976: Using a Blob as a String when rendering mermaid diagrams

2 participants