Ale: TSServer linter not working in NeoVim

Created on 14 Jun 2017  路  6Comments  路  Source: dense-analysis/ale

Here's the bare-bones init.vim I've tested it with:

set nocompatible
filetype indent plugin on
syntax on

call plug#begin('~/.vim/plugged')
Plug 'w0rp/ale'
Plug 'leafgarland/typescript-vim'
Plug 'tpope/vim-sleuth'
call plug#end()

let g:ale_linters = {
\   'typescript': ['tsserver'],
\}

ALEInfo output:

 Current Filetype: typescript
Available Linters: ['tslint', 'tsserver', 'typecheck']
  Enabled Linters: ['tsserver']
 Linter Variables:

let g:ale_typescript_tsserver_config_path = ''
let g:ale_typescript_tsserver_executable = 'tsserver'
let g:ale_typescript_tsserver_use_global = 0
 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 = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {'typescript': ['tsserver']}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
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:

It's not running anything; at all.
I've also tried the same init.vim as a vimrc for regular vim 8. It worked, so I presume it's a neovim-specific issue.
Keep in mind I've tested both vim 8 and neovim on the same project with typescript installed locally, though, I haven't had luck with use_global, too.

bug

Most helpful comment

That did the job, now it works. Thanks again for making an awesome plugin.

All 6 comments

It won't appear in the command history at all, but it might be running.

Now the command should appear in the history, so we can look at that. If the server program starts, it should generally keep running.

I think this might not work in NeoVim yet, as I haven't implemented raw message handling there yet.

Ah, that explains. Thanks for quick response.

Try again. I made it join the lines back together again for NeoVim output.

That did the job, now it works. Thanks again for making an awesome plugin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexlafroscia picture alexlafroscia  路  4Comments

sodiumjoe picture sodiumjoe  路  4Comments

ilyakopy picture ilyakopy  路  4Comments

EdmundsEcho picture EdmundsEcho  路  3Comments

aressler38 picture aressler38  路  3Comments