toppair / peek.nvim

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

deno shutdown immediately when using webview #61

Closed hieulw closed 3 months ago

hieulw commented 5 months ago

Describe the bug When run task with --app='"webview"' the deno process shutdown immediately without any error. The logs is not print out any useful information:

INFO      526668   05/05/2024, 15:59:00.024  DENO_ENV: undefined --logfile=/home/hieulw/.local/state/nvim/peek.log --theme=dark --app="webview"
INFO      526668   05/05/2024, 15:59:00.034  deno: 1.43.1 v8: 12.4.254.12 typescript: 5.4.3 
INFO      526668   05/05/2024, 15:59:00.035  listening on localhost:33719 
INFO      526668   05/05/2024, 15:59:00.066  webview closed, code: 1 

To Reproduce

https://github.com/toppair/peek.nvim/assets/13571960/adec0860-938d-4ebc-b741-34e2f63cd02f

Expected behavior Expect peek to works with webview like it works with browser mode

Desktop (please complete the following information):

Itz-Abhishek-Tiwari commented 3 months ago

Install pacman -S webkit2gtk in arch Linux OR sudo apt install libwebkit2gtk-4.0-dev in ubuntu it will fix the problem