-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl isnt loading file #177
Labels
bug
Something isn't working
Comments
i tested this bug only on single file my temprorary hack for using in local iron = require("iron.core")
iron.setup({
config = {
repl_definition = {
haskell = {
command = function(meta)
local file = vim.api.nvim_buf_get_name(meta.current_bufnr)
-- call `require` in case iron is set up before haskell-tools
cmd = require("haskell-tools").repl.mk_repl_cmd(file)
local last_cmd = ""
for key, value in pairs(cmd) do
last_cmd = last_cmd .. " " .. value
end
print(last_cmd)
return last_cmd
end,
},
},
},
})
|
Should be fixed now :) |
@all-contributors please add @Alper-Celik for bug. |
I've put up a pull request to add @Alper-Celik! 🎉 |
mrcjkb
pushed a commit
that referenced
this issue
Apr 9, 2023
Adds @Alper-Celik as a contributor for bug. This was requested by mrcjkb [in this comment](#177 (comment)) [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Neovim version (nvim -v)
v0.8.3
Operating system/version
NixOS unstable
Output of
haskell-language-server-wrapper --version
haskell-language-server version: 1.9.1.0 (GHC: 9.2.7)
How to reproduce the issue
nvim -u minimal.lua test.hs
:lua require("haskell-tools").repl.toggle(vim.api.nvim_buf_get_name(0))
Expected behaviour
getting file file loaded like when executing
ghci /tmp/tmp.EZRKVayefQ/test.hs
Actual behaviour
but opening fron neovim casues argument to be quated while passing to ghc and preveneting from loading
Log files
No response
The minimal config used to reproduce this issue.
minimal.lua :
test.hs :
The text was updated successfully, but these errors were encountered: