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

Typescript errors/warnings not showing until save #420

Open sam-mfb opened 1 year ago

sam-mfb commented 1 year ago

I am having an issue where TS errors will start to not show until I save the file. Usually everything works when I first open vim, but after a while the errors will stop appearing (or disappearing when fixed) until I do :w to save the file. If have been using this coc.nvim setup for years without a problem, and this only started in the last few weeks.

I realize this issue is a little vague. I'd be happy even for a little help on how to further troubleshoot/debug it.

CocInfo shows:

image
sam-mfb commented 1 year ago

Here's a small gif that captures the behavior. Note the first time I add the colon the error does not show up until I save. But then it disappears and reappears without saving after that, so it is intermittent. Any ideas on troubleshooting would be great. Thank you!

tserr

sam-mfb commented 1 year ago

I am still experiencing this bug. I am able to reproduce on a minimal linux setup as follows:

coc-tsserver bug

I'm surprised more people aren't seeing this given that its reproducible on such a minimal configuration. I have used vim, coc.nvim, and typescript for years and had not seen this until earlier this year. Until then it worked flawlessly.

Additional Info:

vim version: VIM - Vi IMproved 8.2 8024919                                                                                                 
node version: v16.20.0                                                                                                                    
coc.nvim version: 0.0.82-b7375d5f 2023-01-30 05:09:03 +0800            |                                                                   
coc.nvim directory: /home/devuser/.vim/plugged/coc.nvim                                                                                   
term: dumb                                                                                                                            
platform: linux    

coc-tsserver: 2.1.3

I'm happy to provide any additional troubleshooting or diagnostics. Just let me know what would be helpful.