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

[BUG] sync is slow and syncPreview cannot work #25

Open
Freed-Wu opened this issue Nov 25, 2023 · 0 comments
Open

[BUG] sync is slow and syncPreview cannot work #25

Freed-Wu opened this issue Nov 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Freed-Wu
Copy link

Describe the bug

vi a.md
:CocCommand markdown-preview-enhanced.openPreview

Then edit some text, the web browser will update slowly even doesn't update.

:CocCommand markdown-preview-enhanced.syncPreview cannot work. Only
CocList webview can update web browser forcely.

Result from CocInfo

## versions

vim version: NVIM v0.9.4
node version: v21.2.0
coc.nvim version: 0.0.82-d1568d56 2023-09-29 19:43:34 +0800
coc.nvim directory: /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release
term: tmux
platform: linux

## Log of coc.nvim

2023-11-25T16:50:48.356 INFO (pid:162663) [extension:coc-git] - Looking for git in: git
2023-11-25T16:50:48.543 INFO (pid:162663) [extension:coc-tabnine] - Using tabnine from /home/wzy/.config/coc/extensions/coc-tabnine-data/binaries/4.49.0/x86_64-unknown-linux-musl/TabNine
2023-11-25T16:50:48.775 WARN (pid:162663) [workspace] - workspace.createStatusBarItem is deprecated, please use window.createStatusBarItem instead. 
    at c.init (/home/wzy/.config/coc/extensions/node_modules/coc-leetcode/out/index.js:1:12315)
    at new c (/home/wzy/.config/coc/extensions/node_modules/coc-leetcode/out/index.js:1:12274)
2023-11-25T16:50:48.793 INFO (pid:162663) [plugin] - coc.nvim initialized with node: v21.2.0 after 1282
2023-11-25T16:50:48.820 WARN (pid:162663) [workspace] - workspace.createStatusBarItem is deprecated, please use window.createStatusBarItem instead. 
    at t.initStatusBar (/home/wzy/.config/coc/extensions/node_modules/coc-spell-checker/out/index.js:1:156009)
    at t.activate (/home/wzy/.config/coc/extensions/node_modules/coc-spell-checker/out/index.js:1:23162)
2023-11-25T16:50:48.852 INFO (pid:162663) [language-client-index] - Language server "cSpell" started with 162704
2023-11-25T16:50:48.950 INFO (pid:162663) [core-watchman] - watchman watching project: /dev/shm
2023-11-25T16:50:51.122 INFO (pid:162663) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2023-11-25T16:51:14.289 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:51:14.320 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:14.706 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 10 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:51:17.093 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:18.888 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:51:18.937 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:19.332 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 11 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:51:23.526 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:25.537 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:51:25.564 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:25.952 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 12 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:51:59.447 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:01.220 INFO (pid:162663) [attach] - receive notification: openList [ 'webview' ]
2023-11-25T16:52:01.258 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:01.655 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 13 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:52:02.457 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:16.690 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:52:16.716 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:17.105 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 14 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:53:48.013 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:53:56.509 INFO (pid:162663) [attach] - receive notification: showInfo []

Expected behavior

When user edit markdown in vim, the web browser should update at same time.

@Freed-Wu Freed-Wu added the bug Something isn't working label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant