mrcjkb/haskell-tools.nvim 插件安装问题

问题描述 投票:0回答:1

所以,我试图使用标题中的包,但它没有任何作用。我按照他们在 github 链接中所说的方式做了,但没有成功。我尝试使用一个配置作为朋友来使用这个插件,但也不起作用。然后我尝试从零开始重新安装,但效果不佳。我的 haskell 和 ghci 正在工作,这只是我无法捕获的问题:c。帮忙求救吗?

当我打开

.hs
文件时:

`Error detected while processing BufReadPost Autocommands for "`*`":`
`Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:24: Error executing lua: /usr/share/nvim/runtime/filetype.lua:25: BufReadPost Autocommands for "`*`"..FileType Autocomm`
`ands for "*"..function <SNR>1_LoadFTPlugin[19]..script /home/draell/.local/share/nvim/lazy/haskell-tools.nvim/ftplugin/haskell.lua: Vim(runtime):E5113: Error while calling lua chunk: .`
`..haskell-tools.nvim/lua/haskell-tools/config/internal.lua:115: attempt to call field 'joinpath' (a nil value)`
`stack traceback:`
`...haskell-tools.nvim/lua/haskell-tools/config/internal.lua:115: in main chunk`
`[C]: in function 'require'`
`...m/lazy/haskell-tools.nvim/lua/haskell-tools/internal.lua:11: in main chunk`
`[C]: in function 'require'`
`.../share/nvim/lazy/haskell-tools.nvim/ftplugin/haskell.lua:1: in main chunk`
`[C]: in function 'nvim_cmd'`
`/usr/share/nvim/runtime/filetype.lua:25: in function </usr/share/nvim/runtime/filetype.lua:24>`
`[C]: in function 'nvim_buf_call'`
`/usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>`
`stack traceback:`
`[C]: in function 'nvim_cmd'`
`/usr/share/nvim/runtime/filetype.lua:25: in function </usr/share/nvim/runtime/filetype.lua:24>`
`[C]: in function 'nvim_buf_call'`
`/usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>`
`stack traceback:`
`[C]: in function 'nvim_buf_call'`
`/usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>`

当我使用

checkhealth
命令时:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:24: Error executing lua: /usr/share/nvim/runtime/filetype.lua:25: BufReadPost Autocommands for "*"..FileType Autocomm
ands for "*"..function <SNR>1_LoadFTPlugin[19]..script /home/draell/.local/share/nvim/lazy/haskell-tools.nvim/ftplugin/haskell.lua: Vim(runtime):E5113: Error while calling lua chunk: .
..haskell-tools.nvim/lua/haskell-tools/config/internal.lua:115: attempt to call field 'joinpath' (a nil value)
stack traceback:
        ...haskell-tools.nvim/lua/haskell-tools/config/internal.lua:115: in main chunk
        [C]: in function 'require'
        ...m/lazy/haskell-tools.nvim/lua/haskell-tools/internal.lua:11: in main chunk
        [C]: in function 'require'
        .../share/nvim/lazy/haskell-tools.nvim/ftplugin/haskell.lua:1: in main chunk
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:25: in function </usr/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:25: in function </usr/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>

所以我的 haskell-tools 安装遇到了问题。

haskell neovim neovim-plugin
1个回答
0
投票

尝试一下

nvim-lspconfig
是否适用于你机器上的 haskell。 在大多数情况下应该足够了。

© www.soinside.com 2019 - 2024. All rights reserved.