I'm editing Haskell and my config has nnoremap <leader>? :ALEDetail<cr> to show me detailed error messages. Sometimes the output is the normal multi-line error message I'd expect, sometimes it's run together onto a single line and hard to read. (I'd like it to always be multi-line.) It seems to depend on whether I'm getting details after exiting insert mode or after saving the file.
After inserting and deleting a non-semantic, non-trailing space, the detail was on a single line. Here's the info immediately after:
Current Filetype: haskell
Available Linters: ['ghc-mod', 'stack-ghc-mod', 'ghc', 'stack-ghc', 'hdevtools', 'hlint']
Enabled Linters: ['stack-ghc-mod', 'stack-ghc', 'hdevtools', 'hlint']
Linter Variables:
Global Variables:
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%s'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0
let g:ale_linter_aliases = {}
let g:ale_linters = {'haskell': ['stack-ghc-mod', 'stack-ghc', 'hdevtools', 'hlint']}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 1
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_offset = 1000000
let g:ale_sign_warning = '--'
let g:ale_statusline_format = ['%d error(s)', '%d warning(s)', 'OK']
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1000/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1001/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1002/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1003/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1004/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1005/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1006/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1007/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1008/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1009/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1010/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1011/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1012/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1013/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1014/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1015/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1016/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1017/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1018/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1019/Main.hs''']
If I don't move the cursor I can repeatedly get the single-line output.
If I move the cursor one character to the right, I get multi-line output. Here's the info after that:
Current Filetype: haskell
Available Linters: ['ghc-mod', 'stack-ghc-mod', 'ghc', 'stack-ghc', 'hdevtools', 'hlint']
Enabled Linters: ['stack-ghc-mod', 'stack-ghc', 'hdevtools', 'hlint']
Linter Variables:
Global Variables:
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%s'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0
let g:ale_linter_aliases = {}
let g:ale_linters = {'haskell': ['stack-ghc-mod', 'stack-ghc', 'hdevtools', 'hlint']}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 1
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_offset = 1000000
let g:ale_sign_warning = '--'
let g:ale_statusline_format = ['%d error(s)', '%d warning(s)', 'OK']
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1000/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1001/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1002/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1003/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1004/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1005/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1006/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1007/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1008/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1009/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1010/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1011/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1012/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1013/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1014/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1015/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1016/Main.hs''']
(finished - exit code 0) ['/bin/bash', '-c', 'stack exec ghc-mod check ''/tmp/vdwAUCv/1017/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'stack ghc -- -fno-code -v0 ''/tmp/vdwAUCv/1018/Main.hs''']
(finished - exit code 1) ['/bin/bash', '-c', 'hlint --color=never --json - < ''/tmp/vdwAUCv/1019/Main.hs''']
I'm editing Haskell and my config has
nnoremap <leader>? :ALEDetail<cr>to show me detailed error messages. Sometimes the output is the normal multi-line error message I'd expect, sometimes it's run together onto a single line and hard to read. (I'd like it to always be multi-line.) It seems to depend on whether I'm getting details after exiting insert mode or after saving the file.After inserting and deleting a non-semantic, non-trailing space, the detail was on a single line. Here's the info immediately after:
If I don't move the cursor I can repeatedly get the single-line output.
If I move the cursor one character to the right, I get multi-line output. Here's the info after that: