在 Archlinux 上使用 Vim 作为 Haskell 的 IDE 目前情况如何? [英] What is the current situation for using Vim as IDE for Haskell on Archlinux?

查看:26
本文介绍了在 Archlinux 上使用 Vim 作为 Haskell 的 IDE 目前情况如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可行,我的目标是通过 YouCompleteMe 在 Vim 中为 Haskell 完成命令.在这方面,正如您在下面看到的,我还没有找到关于如何让它工作的共识.

My target, if doable, is to have command completion for Haskell in work in Vim, via YouCompleteMe. In this respect, as you can see in the following, I haven't found a consesus yet about how to get it to work.

关于 YouCompleteMe 上相关 问题的最新评论 并没有那么老,因此我从 AUR(回购协议)安装了 haskell-ide-engineGitHub 位于这里.

The latest comments on a relevant issue on YouCompleteMe are not that old, therefore I installed haskell-ide-engine from the AUR (the repo on GitHub is here.

然而,因为它花了很长时间(花了 110 分钟!)我检查了 PKGBUILD 文件只是为了发现这个:

However, since it was taking so long (it took 110 minutes!) I checked the PKGBUILD file just to discover this:

# ...
# Supported are '8.4.2' '8.4.3' '8.4.4' '8.6.4' '8.6.5' '8.8.1' '8.8.2' '8.8.3'
# activated by default are the ones also used in a stackage snapshot. Removing
# versions you do not use will greatly reduce the compilation time of this
# package
_enabled_ghc_versions=('8.4.4' '8.6.4' '8.6.5' '8.8.2' '8.8.3')
# ...

很公平,我的错.所以我在 #haskell IRC 频道上寻求帮助,一位用户发表了这样的评论:

Fair enough, my bad. So I searched for help on the #haskell IRC channel, and one user made this comment:

然后你会发现除了 haskell-language-server 之外,几乎没有人使用 haskell-ide-engine.并且 ghcup 可以为您安装预构建的二进制文件

and then you find out that hardly anybody uses haskell-ide-engine anymore but haskell-language-server. and also that ghcup can install the prebuild binaries for you

来自其他用户的评论是

至少可以说 Arch 上的 Haskell 情况不是最佳的

the haskell situation on Arch is not optimal, to say the least

另一条评论(来自 Fendor,他的回答已经在下面)是

an yet another comment (from Fendor, his answer is already below) was

HIE 不再积极开发.Haskell 语言服务器是继任者.我会推荐 Haskell 语言服务器

HIE is not actively developed anymore. Haskell Language Server is the successor. I would recommend Haskell Language Server

这似乎与您在 YouCompleteMe issue tracker.

那么目前情况如何?

推荐答案

通过安装 设置 Haskellghcupthen 通过 ghcup 安装所有其余的(ghc, cabal, ...),正如 这个答案 中所建议的那样,到目前为止改进了 Vim 和 YCM 的体验.(哦,YCM 必须是最新的,很明显.)

Setting up Haskell via installing ghcup and then installing all the rest (ghc, cabal, ...) via ghcup, as suggested in this answer, improves by far the experience with Vim and YCM. (Oh, and YCM has to be up to date, clearly.)

这篇关于在 Archlinux 上使用 Vim 作为 Haskell 的 IDE 目前情况如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆