iamcco / coc-diagnostic

diagnostic-languageserver extension for coc.nvim
245 stars 22 forks source link

Floating error message not displaying with source code that uses tabs instead of spaces #155

Closed sandrodz closed 1 year ago

sandrodz commented 1 year ago

Result from CocInfo

versions

vim version: NVIM v0.8.3 node version: v16.16.0 coc.nvim version: 0.0.82-b7375d5f 2023-01-30 05:09:03 +0800 coc.nvim directory: /Users/sandro/.vim/plugged/coc.nvim term: tmux platform: darwin

Log of coc.nvim

2023-03-22T00:00:02.596 INFO (pid:48459) [extension:coc-phpls] - intelephense module (builtin) is ready to be started 2023-03-22T00:00:02.600 INFO (pid:48459) [plugin] - coc.nvim initialized with node: v16.16.0 after 521 2023-03-22T00:00:02.600 INFO (pid:48459) [services] - LanguageClient diagnostic language service state change: stopped => starting 2023-03-22T00:00:02.608 INFO (pid:48459) [language-client-index] - Language server "phpls" started with 48500 2023-03-22T00:00:02.612 INFO (pid:48459) [language-client-index] - Language server "diagnostic-languageserver" started with 48501 2023-03-22T00:00:02.677 INFO (pid:48459) [services] - LanguageClient diagnostic language service state change: starting => running 2023-03-22T00:00:02.678 INFO (pid:48459) [services] - service diagnostic-languageserver started 2023-03-22T00:00:02.739 WARN (pid:48459) [core-watchman] - Recrawled this watch 1 times, most recently because: MustScanSubDirs UserDroppedTo resolve, please review the information on https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl To clear this warning, run: watchman watch-del '/Users/sandro/Code/Vagrant/DevCeption' ; watchman watch-project '/Users/sandro/Code/Vagrant/DevCeption'

2023-03-22T00:00:02.739 INFO (pid:48459) [core-watchman] - watchman watching project: /Users/sandro/Code/Vagrant/DevCeption/www/woocommerce.test 2023-03-22T00:00:05.624 INFO (pid:48459) [attach] - receive notification: showInfo []

Describe the bug

Inside source code that uses tabs cols are in wrong place and error message either doesn't display at all, or in wrong place. In source code with spaces no such issue occurs.

Screenshots (optional)

As you can see no floating message, no error underline

image

But if I get rid of tabs and indent everything to the left message appears

image

I believe there is something funky happening with tabbed indentation.

iamcco commented 1 year ago

Display error message is coc.nvim's function.