I get 'Warning Couldn't find space' when expanding yas snippets in org src blocks.
I opened an issue in 2019 #976 and it eased the problem. However it never solved it. At the time I tried it on a fresh system but could not reproduce it. I assumed it was due to my complex setup.
I have managed to replicate it on a clean build. I stripped away as much as I could.
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2024-04-03
yasnippet 2024 - Version: 0.14.1
I get 'Warning Couldn't find space' when expanding yas snippets in org src blocks.
I opened an issue in 2019 #976 and it eased the problem. However it never solved it. At the time I tried it on a fresh system but could not reproduce it. I assumed it was due to my complex setup.
I have managed to replicate it on a clean build. I stripped away as much as I could.
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2024-04-03 yasnippet 2024 - Version: 0.14.1
save as emacs lisp snippet
Get emacs-lisp snippets to work in org-mode
M-x find-file snippets/org-mode/.yas-parents
add the text
emacs-lisp-mode
and save file.
In test.org add the code below, note there is an indent of a space before the #'s
place cursor after
di
and press TAB
NOTE:
A collection of things had to be in place to generate this. Works when:
the parenthesis around $1 are removed
It does not work when content is above the yas trigger. i.e. 2 is above the 'di' yas trigger key