Open chopfitzroy opened 5 years ago
Can you produce a minimal project which repeats the bug? That will make it easier to track down where the message is coming from.
Sure,
Using the above init.vim
:
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
let g:ale_completion_enabled = 1
let g:ale_completion_max_suggestions = 10
call plug#begin('~/.vim/plugged')
Plug 'w0rp/ale'
call plug#end()
set completeopt=menu,menuone,preview,noselect,noinsert
And having tsserver
installed, editing a .js
file type: Can
, it should show the error for all of the Canvas*
entries.
Is this what you were asking for?
Do you have a package.json
file I could built a project with, to test this with? I'd like to try with something which produces the same output.
Hey,
I don't actually have a package.json
this just happens when I work with any .js
file (haven't tried .ts
as I haven't used TypeScript yet) I did open the project in a fresh loopback project and I was able to replicate, I could create a repo for this, but from what I can tell you should be able to reproduce anywhere.
Before we go any further I am correct in thinking I can use tsserver
for .js
files to?
Cheers.
Yes, you should be able to use tsserver
for .js
files. I use tsserver
with ALE every day at work, and I haven't seen this issue yet. There may be some more configuration required for repeating this bug.
Okay I thought it might be my terminal (I use alacritty
) but I tested it with gnome-terminal
and was able to reproduce the same output. Is there anything custom that needs to be done to set up tsserver
appropriately?
tsserver
should work pretty much straight away if you have installed TypeScript into node_modules
.
I am using a global install of TypeScript I wonder if this is the issue, should I try a local install next to my .js
files?
You should just be able to install it into node_modules
with npm install
or yarn
, and it will work without you having to change any settings.
Information
VIM version
Operating System:
Debian Buster
What went wrong
Using a minimal
init.vim
with completion the following symbols are in the omnicompletion description column{^@
I am going to hazard a guess and say these are line breaks and come from LSP/tsserver
.Would it be possible to omit them, or replace them with a
...
and put the whole output (with line breaks) in the buffer up the top (I forget what this is called)Reproducing the bug
I have uploaded a screenshot of what it looks like here here.
My
init.vim
::ALEInfo