moodmosaic / atom-haskell

This Atom extension adds language support for Haskell, powered by the Haskell Language Server.
MIT License
2 stars 0 forks source link

Apply hint fails #2

Open freeman42x opened 3 years ago

freeman42x commented 3 years ago

Fails on any type of hint application afaik with:

Code action could not be applied

ExitFailure 1

apply hint bug

moodmosaic commented 3 years ago

Thank you for reporting this.

freeman42x commented 3 years ago

@moodmosaic this is what I got in PATH:

$ haskell-language-server-wrapper.exe --version
haskell-language-server version: 0.8.0.0 (GHC: 8.10.1) (PATH: C:\Users\razva\AppData\Roaming\local\bin\haskell-language-server-wrapper.exe) (GIT hash: eb58f13f7b8e4f9bc771af30ff9fd82dc4309ff5)

$ haskell-language-server-8.6.5.exe --version
haskell-language-server version: 0.8.0.0 (GHC: 8.6.5) (PATH: C:\Users\razva\AppData\Roaming\local\bin\haskell-language-server-8.6.5.exe) (GIT hash: eb58f13f7b8e4f9bc771af30ff9fd82dc4309ff5)

I have no configured anything in the plugin, all else are defaults.

moodmosaic commented 3 years ago

Thanks for the info. Can you also run

$ hlint --version

?

freeman42x commented 3 years ago

@moodmosaic hlint is not in the PATH.

moodmosaic commented 3 years ago

What happens if you add it?

freeman42x commented 3 years ago

I installed HLint v3.2.6, (C) Neil Mitchell 2006-2020 via cabal and after restart of Atom, I can still reproduce the same 2 errors.

moodmosaic commented 3 years ago

Could you toggle* dev tools and check what's the error in the console?


*On macOS cmd+option+i (or on Windows and Linux, ctrl+shift+i) is bound to the Atom command window:toggle-dev-tools.

freeman42x commented 3 years ago
Haskell (haskell) rpc.sendRequest workspace/executeCommand threw Error: ExitFailure 1
    at handleResponse (C:\Users\razva\.atom\packages\haskell\node_modules\vscode-jsonrpc\lib\main.js:436)
    at processMessageQueue (C:\Users\razva\.atom\packages\haskell\node_modules\vscode-jsonrpc\lib\main.js:263)
    at Immediate.<anonymous> (C:\Users\razva\.atom\packages\haskell\node_modules\vscode-jsonrpc\lib\main.js:247)
    at processImmediate (internal/timers.js:439)
error @ logger.ts:23
error @ logger.ts:82
(anonymous) @ languageclient.ts:468
rejected @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\languageclient.js:5
Promise.then (async)
step @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\languageclient.js:6
(anonymous) @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\languageclient.js:7
__awaiter @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\languageclient.js:3
_sendRequest @ languageclient.ts:444
executeCommand @ languageclient.ts:415
(anonymous) @ code-action-adapter.ts:89
(anonymous) @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\adapters\code-action-adapter.js:7
__awaiter @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\adapters\code-action-adapter.js:3
executeCommand @ code-action-adapter.ts:86
(anonymous) @ code-action-adapter.ts:65
(anonymous) @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\adapters\code-action-adapter.js:7
__awaiter @ C:\Users\razva\.atom\packages\haskell\node_modules\atom-languageclient\build\lib\adapters\code-action-adapter.js:3
apply @ code-action-adapter.ts:60
onClick @ C:\Users\razva\.atom\packages\atom-ide-ui\modules\atom-ide-ui\pkg\atom-ide-diagnostics-ui\lib\ui\DiagnosticsCodeActions.js:60
ia @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:15
invokeGuardedCallback @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:16
invokeGuardedCallbackAndCatchFirstError @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:16
za @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:20
Da @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:22
Fa @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:22
Ba @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:21
Ia @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:24
Ja @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:24
Gd @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:88
bi @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:222
Wb @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:44
Ld @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:89
ei @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:223
Kd @ C:\Users\razva\.atom\packages\atom-ide-ui\node_modules\react-dom\cjs\react-dom.production.min.js:89
moodmosaic commented 3 years ago

I've no idea. I'd have to try to reproduce this locally. It could very well be an atom-languageclient issue as well.