You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening a file that loads a mode which requires yasnippet, yasnippet just breaks because an invalid path is added to yas-snippet-dirs (eg. if the file name is /some/path/foo.clj, /some/path/snippets is added), and this is caused by haskell-yas. When loading yasnippet, haskell-yas is loaded as well, and (buffer-file-name) is called with the current file, thus leading to the wrong relative path being loaded. This only occurs when yasnippet is loaded lazily.
My understanding is that switching the order of (buffer-file-name) and load-file-name in haskell-snippets-dir should fix the issue. I could submit a pull request if that's the right thing to do and you wouldn't rather do it yourself.
The text was updated successfully, but these errors were encountered:
When opening a file that loads a mode which requires yasnippet, yasnippet just breaks because an invalid path is added to
yas-snippet-dirs
(eg. if the file name is /some/path/foo.clj, /some/path/snippets is added), and this is caused by haskell-yas. When loading yasnippet, haskell-yas is loaded as well, and(buffer-file-name)
is called with the current file, thus leading to the wrong relative path being loaded. This only occurs when yasnippet is loaded lazily.My understanding is that switching the order of
(buffer-file-name)
andload-file-name
inhaskell-snippets-dir
should fix the issue. I could submit a pull request if that's the right thing to do and you wouldn't rather do it yourself.The text was updated successfully, but these errors were encountered: