weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.15k stars 45 forks source link

Will not redraw #62

Closed jobannon closed 4 years ago

jobannon commented 4 years ago

I have coc-explorer mapped to nnoremap t :CocCommand explorer

when I call it initially, it works as expected. However, when I toggle the window away, and re-toggle, it redraws as seen below `^C120^D+^C120^D+^C120^D+^C120^D+^C120^D+" . a related issue on https://gitter.im/neoclide/coc.nvim?at=5db181e7a03ae1584ffe25ad

image

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.91. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

jobannon commented 4 years ago

I think that this behavior has to do with redraw but now sure....

weirongxu commented 4 years ago

However, when I toggle the window away, and re-toggle

Does this appear every time? If it does, can you provide vim version information (:CocInfo) and log (:CocOpenLog)?

jobannon commented 4 years ago

let g:indentLine_fileTypeExclude = ['coc-explorer'] let g:indentLine_fileTypeExclude = ['coc'] autocmd FileType coc IndentLinesToggle have tried both of these to correct of this ... Although not sure if I have the syntax correct...

view from

image

it does appear every time I retoggle. .

jobannon commented 4 years ago

image

jobannon commented 4 years ago

health check seems ok-ish

jobannon commented 4 years ago

must be missing something ...I am borrowing this rc file from a friend but Ranger seems to run without issue

jobannon commented 4 years ago

image

jobannon commented 4 years ago

image

weirongxu commented 4 years ago

You haven't provided information about :CocInfo

weirongxu commented 4 years ago

With these information, I still can't reproduce your bug. Maybe you need to provide a minimal vimrc, like this, otherwise, I'm afraid I can't help you.

kristijanhusak commented 4 years ago

Same thing happens for me from time to time, but I don't know exact steps to reproduce.

Just happened to me. Here's screenshot: screenshot

Here's my CocInfo:

## versions

vim version: NVIM v0.5.0-220-gab860cb5f
node version: v8.11.0
coc.nvim version: 0.0.74
term: xterm-kitty
platform: linux

## Messages

## Output channel: explorer

## Output channel: prettier

## Output channel: snippets

[Error 15:38:31] Convert regex error for: li(st)? (?<num>\d+)$
[Error 15:38:31] Convert regex error for: ol(st)? (?<num>\d+)$

## Output channel: tsserver

[Info  - 15:38:42] Forking TSServer
PATH: /home/kristijan/.nvm/versions/node/v8.11.0/bin:/home/kristijan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/go/bin:/home/kristijan/go/bin:/home/kristijan/.local/bin:/home/kristijan/neovim-config/nvim/pack/packager/start/fzf/bin 
[Info  - 15:38:42] Started TSServer
{
  "path": "/home/kristijan/.config/coc/extensions/node_modules/coc-tsserver/node_modules/typescript/lib",
  "_pathLabel": "",
  "_api": {
    "versionString": "3.7.2",
    "version": "3.7.2"
  }
}

## Output channel: eslint

[Info  - 15:38:42] ESLint server running in node v8.11.0
[Info  - 15:38:42] ESLint library loaded from: /home/kristijan/code/myproject/api/node_modules/eslint/lib/api.js
jobannon commented 4 years ago

versions

vim version: NVIM v0.4.3 node version: v13.2.0 coc.nvim version: 0.0.74-bc017b02e6 term: iTerm.app platform: darwin

Messages

Output channel: explorer

Output channel: snippets

[Info - 8:55:09 AM] watchman watching project: /Users/josho/.config/coc/ultisnips [Info - 8:55:09 AM] subscribing "*/.snippets" in /Users/josho/.config/coc/ultisnips

jobannon commented 4 years ago

Sorry - please find above

jobannon commented 4 years ago

out2

weirongxu commented 4 years ago

It looks like some plugins or configurations executed the :syntax on, caused the highlighting to be deleted.

wwghes commented 4 years ago

source $MYVIMRC.

After running this command, this problem will occur

image

kristijanhusak commented 4 years ago

Just a note that this still happens for me, especially when i source $MYVIMRC.

weirongxu commented 4 years ago

Just a note that this still happens for me, especially when i source $MYVIMRC.

Have you try to reopen the explorer buffer?

kristijanhusak commented 4 years ago

Yeah, not helping.

screen

weirongxu commented 4 years ago

Is it because you are using the npm version? There are still has some bugs in the git version, so I have not released yet.

kristijanhusak commented 4 years ago

Yeah, I did 'CocUninstall coc-explorer' and then 'CocInstall coc-explorer'. Thought that will install the latest version. Ok, my bad then.

weirongxu commented 4 years ago

Never mind, I thought you knew it's not the same.

mtjn commented 4 years ago

I am having the same issue, but I find that the first time i open the explorer, it is blank. If I then close and reopen, I see the same type of output as the other users here.

Edit: I think it might also happen when I reload my init.vim with source

weirongxu commented 4 years ago

Should be fixed in the latest released version

hujianxin commented 4 years ago

I preduced this issue by install 'Yggdroot/indentLine'

hujianxin commented 4 years ago

adding this line to vimrc let g:indentLine_char = '│' will repreduce this issue

weirongxu commented 4 years ago

I preduced this issue by install 'Yggdroot/indentLine'

use g:indentLine_fileTypeExclude to avoid this

hujianxin commented 4 years ago

@weirongxu thanks