Skip to content

haskell-snippets-dir set relative to arbitrary buffer file names #1

@eigengrau

Description

@eigengrau

haskell-snippets 20150502.1315 seems to install a hook, run after yasnippet is loaded, which is meant to append the snippets path below the haskell-snippet distribution directory to yas-load-directory. However, it appears that the path setting is run inside the context of the buffer from which yasnippet is loaded. This sets the snippet path relative to some arbitrary buffer file name, so that yasnippet will fail to load and complain about a non-existing snippet directory.

E.g., when invoking yas-global-mode within a buffer visiting a file in /home/user/Dev/bla, I get

yas--subdirs: Opening directory: no such file or directory, /home/user/Dev/bla/snippets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions