Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sandrodz opened this issue Mar 21, 2023 · 4 comments
Labels
Can't reproduce question Further information is requested

Comments

@sandrodz
Copy link

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.

@sandrodz
Copy link
Author

Reported in correct repo: iamcco/coc-diagnostic#155

Sorry.

@Frederick888
Copy link

Should we reopen this based on comment iamcco/coc-diagnostic#155 (comment)?

@sandrodz
Copy link
Author

@Frederick888 yep, lets reopen.

@sandrodz sandrodz reopened this Jul 20, 2023
@chemzqm
Copy link
Member

chemzqm commented Sep 1, 2023

The col value is wrong, which should be 3, but gives 5.

@chemzqm chemzqm added question Further information is requested Can't reproduce labels Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Can't reproduce question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants