peek.nvim icon indicating copy to clipboard operation
peek.nvim copied to clipboard

Unable to preview in browser.

Open columbine2k opened this issue 1 year ago • 3 comments

Describe the bug After executing “:PeekOpen", the preview cannot be opened in the browser. It seems to be always loading.

To Reproduce As described above.

Expected behavior Just preview md file.

Screenshots 截屏2023-04-18 00 31 14

Desktop (please complete the following information):

  • OS: macOS 13.3.1
  • nvim --version:
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3
  • deno --version:
deno 1.32.4 (release, aarch64-apple-darwin)
v8 11.2.214.9
typescript 5.0.3
  • plugin setup:
return {
	{
	'toppair/peek.nvim',
	build = 'deno task --quiet build:fast',
	ft = 'markdown',
	config = function()
		vim.api.nvim_create_user_command('PeekOpen', require('peek').open, {})
		vim.api.nvim_create_user_command('PeekClose', require('peek').close, {})
		require('peek').setup ({
			theme = 'light',
			app = 'browser',
		})
	end
	}
}

Additional context None.

columbine2k avatar Apr 17 '23 16:04 columbine2k

You can get more information if you open Console in Developer tools, usually Ctrl+Shift+I. Check #31, the symptoms are the same.

tom-kuca avatar Apr 18 '23 00:04 tom-kuca

I am seeing this same behavior, but opening up the console does not show the same errors as described in #31

garrett361 avatar Apr 18 '23 17:04 garrett361

In session storage I have session with the "{"base":"http://localhost:35241/?theme=dark","html":"\n <div class=\"loader\"></div>\n "}".

The network panel shows no additional activity after the first websocket frame. The Console is empty.

network-panel

Update it is now working, I can see frames in the websocket response. Don't know if this is due to a recent Deno upgrade I've did, Firefox (now using 113.0.2 (64-bit)) or something else (maybe https://github.com/toppair/peek.nvim/commit/67752e7581f88da6899838985a05705b008e4185)

haroun avatar Apr 21 '23 14:04 haroun