Skip to content

Commit 6ab4d16

Browse files
authored
Reorganize troubleshooting section
1 parent 70f6883 commit 6ab4d16

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,27 @@ Please include the output when filing any issues on the [haskell-language-server
123123

124124
### Troubleshooting
125125

126-
- In Linux/MacOS systems, opening vscode in the windows system could not use the `$PATH` set in the shell
127-
so it will not see required tools as ghc, cabal or stack. This usually happens if you have installed them
128-
via ghcup. It could be fixed changing the `$PATH` variable in the init config file used by the windows system (f.e. `~/.profile`, but i can vary depending on your system setup).
129-
See [this stackoverflow question](https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code) for more tricks.
130-
- Sometimes the language server might get stuck in a rut and stop responding to your latest changes.
131-
Should this occur you can try restarting the language server with <kbd>Ctrl</kbd> <kbd>shift</kbd> <kbd>P</kbd>/<kbd>⌘</kbd> <kbd>shift</kbd> <kbd>P</kbd> > Restart Haskell LSP Server.
126+
#### Check issues and tips in the haskell-language-server project
127+
132128
- Usually the error or unexpected behaviour is already reported in the [haskell language server issue tracker](https://github.com/haskell/haskell-language-server/issues). Finding the issue could be useful to help resolve it and sometimes includes a workaround for the issue.
133129
- You can also check the [troubleshooting section](https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html) in the server documentation.
134130

131+
#### Restarting the language server
132+
133+
- Sometimes the language server might get stuck in a rut and stop responding to your latest changes.
134+
Should this occur you can try restarting the language server with <kbd>Ctrl</kbd> <kbd>shift</kbd> <kbd>P</kbd>/<kbd>⌘</kbd> <kbd>shift</kbd> <kbd>P</kbd> > Restart Haskell LSP Server.
135+
136+
### `Cradle requires ghc/cabal/stack but it isn't installed`
137+
138+
- In Linux/MacOS systems, opening vscode in the windows system could not use the `$PATH` set in the shell
139+
so it will not see required tools as ghc, cabal or stack. This usually happens if you have installed them
140+
via ghcup.
141+
- It could be fixed changing the `$PATH` variable in the init config file used by the windows system
142+
(f.e. `~/.profile`, but i can vary depending on your system setup).
143+
- See [this stackoverflow question](https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code) for more tricks.
144+
145+
146+
135147
## Contributing
136148

137149
If you want to help, get started by reading [Contributing](https://github.com/haskell/vscode-haskell/blob/master/Contributing.md) for more details.

0 commit comments

Comments
 (0)