原子编辑器的ide-haskell不起作用

Ath*_*ark 4 ide haskell atom-editor ghc-mod

我正在尝试将Ide-Haskell包用于atom,但由于某种原因,它不起作用.

首先,我在沙箱下安装了ghc-mod和时尚的haskell ~/lib/.这是我的config.cson文件的样子:

athan@THETA ~> cat ~/.atom/config.cson
'global':
  'exception-reporting':
    'userId': '3b5a8a6c-7778-b310-6a5f-d8ecc314b30f'
  'welcome':
    'showOnStartup': false
  'core':
    'themes': [
      'atom-dark-ui'
      'seti-syntax'
    ]
  'ide-haskell':
    'ghcModPath': '/home/athan/lib/ghc-mod-5.2.1.1/.cabal-sandbox/bin/ghc-mod'
    'stylishHaskellPath': '/home/athan/lib/stylish-haskell-0.5.11.0/.cabal-sandbox/bin/stylish-haskell'
  'editor':
    'fontSize': 14
    'showIndentGuide': true
    'showInvisibles': true
    'softWrapAtPreferredLineLength': true
    'invisibles': {}
Run Code Online (Sandbox Code Playgroud)

我已经测试了这些路径,它们是正确的 - 我可以打电话command --help等.

我目前也在运行Linux,而不是Mac,所以我不得不添加一些键映射:

athan@THETA ~> cat ~/.atom/keymap.cson
'.workspace':
  'ctrl-alt-o': 'ide-haskell:toggle-output'
'.editor':
  'ctrl-alt-s': 'ide-haskell:prettify-file'
Run Code Online (Sandbox Code Playgroud)

这些注册很好,并且在ide-haskell的包设置中可见.但是,发出击键不会做任何事情(分别用于打开文件和另存为).

我最有可能搞砸了哪里?我完成ghc-mod安装之前安装了ide-haskell ,但这并不重要......链接是正确的.如果有人可以帮忙解决这个问题,我会欣喜若狂:)

mac*_*ter 7

您需要在您正在使用的目录中创建一个cabal项目.只需运行cabal init并回答问题.然后在当前目录中打开atom.应出现Haskell IDE菜单.