## versions
vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled Jul 8 2019 19:24:38)
node version: v12.6.0
coc.nvim version: 0.0.73-07a84965f1
term: iTerm.app
platform: darwin
## Messages
Messages maintainer: Bram Moolenaar <[email protected]>
"test.php" 6L, 144C
## Output channel: git
Looking for git in: git
> git rev-parse --show-toplevel
fatal: not a git repository (or any of the parent directories): .git
Error 128 on: 'git rev-parse --show-toplevel' in /Users/koomen
fatal: not a git repository (or any of the parent directories): .git
resolved root: null
resolved root: null
## Output channel: highlight
[Info - 11:30:15 AM] Highlight server running in node v12.6.0
## Output channel: phpls
[Info - 11:30:16 AM] Initialising intelephense 1.1.5
[Info - 11:30:16 AM] Reading state from /Users/koomen/.config/coc/extensions/coc-phpls-data/75877ae5.
[Info - 11:30:16 AM] Initialised in 17 ms
[Info - 11:30:16 AM] Intelephense 1.0.14
[Info - 11:30:16 AM] {
"name": "initialised",
"properties": {
"version": "1.1.5",
"machineId": "9cf5a046df97d5db162f8266e095580fdc71a93f177230832534abde144ac7d6",
"platform": "darwin",
"clientName": "unknown"
}
}
[Info - 11:30:16 AM] Indexing started.
[Info - 11:30:18 AM] Indexing ended. 98 files indexed in 1s.
## Output channel: watchman
When I use <Tab> it keeps giving me the error E967: text property info corrupted every moment when my cursor moves.
1) Open test.php with:
<?php
public function updateSubscriptions($args = array()) {
if ($subscribed_to_newsletter = request($args, 'subscribe_to_newsletter')) {
// cursor here
}
}
2) Have your cursor at line 5 starting at column 0 and press <Tab>
3) See error (note: can't reproduce this error with minimal vimrc)
These are my plugs (maybe you know if there is a conflict)
Plug 'AndrewRadev/splitjoin.vim'
Plug 'Yggdroot/indentLine'
Plug 'alvan/vim-closetag'
Plug 'editorconfig/editorconfig-vim'
Plug 'godlygeek/tabular'
Plug 'jiangmiao/auto-pairs'
Plug 'joshdick/onedark.vim', { 'dir': '~/.vim/pack/vendor/opt/onedark' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vader.vim'
Plug 'ludovicchabant/vim-gutentags'
Plug 'mileszs/ack.vim'
Plug 'neoclide/coc-neco'
Plug 'neoclide/coc-sources'
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'sheerun/vim-polyglot'
Plug 'sickill/vim-pasta'
Plug 'tomtom/tcomment_vim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'yegappan/mru'
If applicable, add screenshots to help explain your problem.

Sorry, I don't have time to figure it out.
I've found the issue. The foldmethod=marker + let &l:softtabstop = 2 in combination with the diagnostics functionality is breaking the plugin.
The let &l:softtabstop = 2 is done by editorconfig-vim, see here.
Disabling any of these options (coc.nvim or foldmethod=marker or let &l:softtabstop = 2) will not produce the error.
I hope this can be fixed since foldmethod=marker is a common setting to have and editorconfig-vim is also widely used among web developers.
To reproduce:
test.vim (this is the default coc.nvim example + foldmethod=marker + let &l:softtabstop = 2):```vim
set nocompatible
set runtimepath^=/path/to/coc.nvim
filetype plugin indent on
syntax on
set hidden
" This will give the error
set foldmethod=marker
let &l:softtabstop = 2
```
test.phpWrite the following:
<?php
$test' // <--- note the apostrophe to create an error
Press ESC to go back into normal mode, wait for line 2 to get an error sign.
<Tab> twice (or more)E967: text property info corruptedShould be bug of vim, try build vim on master branch
I didn't build vim from the master branch, but did upgrade to a higher version of vim via brew:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jul 16 2019 03:25:28)
macOS version
Included patches: 1-1700
Compiled by Homebrew
and the error still occurs.
I tried your vimrc but can't reproduce. What's your CocConfig?
What's your CocConfig?
It's empty for now.
Which version of vim are you using? I clearly gave you a vim version + minimum vimrc. You should be able to reproduce.
I tried vim 8.1.1700.
How did you try out that version? Compile locally? Or use a docker?
Compiled on my Mac.
I just removed everything from my local vim so the only thing I'm using now is a clean vim install and the vimrc I described and I still can reproduce the error.
I tried vim 8.1.1700.
I met the same issue with this version of Vim, built by home brew on my mac.
Seems the issue occured only when I'm editing go files, with language server gopls.
I can confirm similar (the same) behavior editing Typescript files. I did a bit of investigation and believe that this configuration is causing the issue:
set tabstop=4
set softtabstop=0
set noexpandtab
set shiftwidth=8
or similarly this one:
set tabstop=8
set softtabstop=0
set noexpandtab
set shiftwidth=4
See the discrepancy in tabstop size vs shiftwidth size.
I can reproduce this behavior on as small example as this:
module test {
}
going to 1st line, hitting o and hitting <tab> twice. Things go haywire. I see in Vim command line:
E967: text property infor corrupted
Press ENTER or type command to continue
Pressing any other key then <Esc> makes things only worse.
Note: this strange configuration I sometimes end up with is because I am using vim-sleuth and some of the files I edit have unfortunately mixed indentation.
I am using Vim build from source, version:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 6 2019 12:34:57)
Included patches: 1-1991
on Windows 10 WSL, Ubuntu 18.04.
Thank you for creating this beautiful plugin. It is a great piece of software
Any fix for this? I can confirm this happens only with go files (for me anyway).
@magicalbanana no idea what's going wrong, looks like bug of vim.
I updated recently from 8.1.1700 to 8.1.1850 and it seems to be fixed. If it occurs again under any circumstances I will request to reopen the issue. Thanks for now.
Issue still exists as described. Reopening issue.
Am encountering this pretty frequently while editing rust code, 8.1.1967. I have no weird indent settings that I'm aware of but it does seem to be specifically caused by an interaction with code folding in my case: the issues occur while I have :set foldmethod=syntax, but set foldmethod=manual appears to make the problem go away for the examples I've found.
Seems set foldmethod=syntax causing the issue, I can't see anything we can do to avoid this error since try catch doesn't work.
https://github.com/vim/vim/issues/5454
Please check if patch 8.2.0109 fixes this.
It's vim's issue, and looks like been fixed. Close this issue now.
Unsetting sts resolved for me
Most helpful comment
Unsetting
stsresolved for me