toppair / peek.nvim

Markdown preview plugin for Neovim
MIT License
624 stars 42 forks source link

peek crash #42

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug When I use PeekOpen, peek.nvim opens a chromium window showing a markdown preview, waits for a few minutes, and crashes with an error output even though it does nothing

Peek error: error: Uncaught (in promise) TypeError: op_ws_send_ping is not a registered op
    at opAsync (ext:core/01_core.js:265:15)
    at ext:deno_websocket/01_websocket.js:533:17
    at Object.action (ext:deno_web/02_timers.js:147:11)
    at handleTimerMacrotask (ext:deno_web/02_timers.js:64:10)
    at eventLoopTick (ext:core/01_core.js:172:21)

To Reproduce

:PeekOpen

Expected behavior repaired successfully

Screenshots image

Desktop (please complete the following information):

Run :checkhealth for more info

 - `deno --version`:

deno 1.33.0 (release, x86_64-unknown-linux-gnu) v8 11.4.183.1 typescript 5.0.3

 - plugin setup:

```lua
local present, peek = pcall(require, 'peek')

if not present then
    return
end

config = {
    auto_load = true,
    close_on_bdelete = true,
    update_on_change = true,
    filetype = {
        'md', 'markdown', 
        'telekasten', 
    },
    throttle_at = 2000000,
    throttle_time = 'auto',

    syntax = true,
    theme = 'light',

    app = 'chromium',
}

peek.setup(config)

vim.api.nvim_create_user_command('PeekOpen', require('peek').open, {})
vim.api.nvim_create_user_command('PeekClose', require('peek').close, {})

Additional context None

ghost commented 1 year ago

After update testing, the new version has been fixed