neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

Strange errors from tsserver #324

Open H2xDev opened 2 years ago

H2xDev commented 2 years ago

Hello everyone!

I found one strange thing after installing coc.nvim and coc-tsserver:

I don't know what the problem is. Maybe it's bug

image

OS: Windows 10

.vimrc

set nocompatible
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dense-analysis/ale'
Plug 'preservim/nerdtree'
Plug 'sainnhe/everforest'
Plug 'sheerun/vim-polyglot'
Plug 'vim-airline/vim-airline'
call plug#end()
set runtimepath^=~/.vim/bundle/ctrlp.vim

syntax on
set number
set tabstop=4
set shiftwidth=4
set expandtab
set noswapfile
set noshowmode

let g:ctrlp_custom_ignore="node_modules\|DS_Store\|git"
let g:ale_fixers={}
let g:ale_fixers.javascript=['eslint']
let g:ale_fix_on_save=1
filetype plugin indent on

set laststatus=2
set t_Co=256
set noshowmode
let g:airline_theme = 'everforest'
if has('termguicolors')
    set termguicolors
endif

colorscheme everforest
set background=dark
let g:everforest_background = 'soft'
fannheyward commented 2 years ago

What's your :CocInfo? Try minimal vimrc please.

H2xDev commented 2 years ago

@f

What's your :CocInfo? Try minimal vimrc please.

:CocInfo image

with minimal vimrc still doesn't work

fannheyward commented 2 years ago

I can't reproduce this...

H2xDev commented 2 years ago

I can't reproduce this...

I found that if install another vim for windows (like gvim) through powershell and use that config with plugins it's works fine...

Maybe it's mintty's side problem :/

chemzqm commented 2 years ago

Seems tsserver failed to retreive your files.

marcofeltmann commented 7 months ago

I have similar issues when the directory I start vim from has a node_module subdirectory. I'm not the only one according to the internet

You might try to start vim from a parent or child directory.