haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

More documentation for Sublime #870

Open nh2 opened 5 years ago

nh2 commented 5 years ago

Some issues I encountered:

Where settings have to go

Answer: Into the Sublime LSP settings, like this:

// Settings in here override those in "LSP/LSP.sublime-settings",

{
  "clients": {
    "haskell-ide-engine": {
      "command": ["hie"],
      "scopes": ["source.haskell"],
      "syntaxes": ["Packages/Haskell/Haskell.sublime-syntax"],
      "languageId": "haskell",
      "settings": {
        "languageServerHaskell": {
            "hlintOn": false,
            // "maxNumberOfProblems": Number
        },
      },
    },
  },
  // "log_debug": true,
}

When settings seem to have no effect

Apparently currently you have to fully restart Sublime for Sublime's LSP plugin to notice changes in configuration; using the command to restart the LSP server isn't enough.

(It is worth saying that in the docs because most other Sublime settings apply immediately without need for a restart.)

alanz commented 5 years ago

TODO: update the README for this

thosgood commented 5 years ago

is using the hie-wrapper as simple as changing the command, or is there also some setting that needs to be set to true (something like use_hie_wrapper)?

lorenzo commented 5 years ago

It is as simple as changing the command