Open gabrielsimoes opened 9 months ago
Hey 👋
Thanks for reporting. Some notes from myself:
vim.json.decode
doesn't work with yaml, and manual parsing is brittle.metadata
command, similar to Cargo's, that would output project metadata as JSON.I'll look into a hotfix after work later today.
Thanks for taking a look! I am not personally blocked[1] but thought I would report in case other people hit the same issue/for documentation. Thanks for developing this plugin.
[1] Especially since I found symlinks work around the issue (a symlink pointing to a directory with the right package name)
Neovim version (nvim -v)
0.9.5
Operating system/version
Arch
Output of :checkhealth haskell-tools
How to reproduce the issue
Opening the REPL
:HtReplToggle
will fail to import a project in case the project's directory does not match the package name in stack.yaml. The plugin will executestack ghci <DIRECTORY_NAME>
instead ofstack ghci <PROJECT_NAME>
and stack will error:Expected behaviour
stach ghci <PROJECT_NAME>
is called.Actual behaviour
stack ghci <DIRECTORY_NAME>
is called.Log files
No response
The minimal config used to reproduce this issue.