slidev-vscode icon indicating copy to clipboard operation
slidev-vscode copied to clipboard

Preview does not work

Open ChiMaoShuPhy opened this issue 3 years ago • 5 comments

I update @slidev/cli to v0.35.5, installed globally and slidev-vscode is 0.4.0.

The .md file is in the project root, I also have @slidev/cli dep in project root pakcage.json. The slide could be open in browser. Slidev extension icon also appears in the activity bar. Convert current selection to HTML works fine, Show slidev and Go to previous slide works fine.

However, The preview panel did not show up and Command 'Slidev: Focus side panel' resulted in an error (command 'slidev.focus-side-panel' not found) and Command 'Slidev: Move slide up resulted in an error (Cannot read properties of undefined (reading 'info')), Move slide down results in the same error as Move slide up.

ChiMaoShuPhy avatar Aug 16 '22 02:08 ChiMaoShuPhy

SLIDEV extension icon not appearing in activity bar image

leon-ziya avatar Mar 03 '23 06:03 leon-ziya

I have the similar problem!

Fanisting avatar Mar 03 '23 16:03 Fanisting

I have the same problem!Have you solved it?

wq24 avatar May 10 '23 05:05 wq24

I have the same problem!Have you solved it?

Actually I have switched to using Marp. I stopped searching for a fix but this issue got accidentally fixed after an OS re-installation.

ChiMaoShuPhy avatar May 16 '23 11:05 ChiMaoShuPhy

same here

This is because Slidev cannot make sure it is a "Slidev Markdown" or a common markdown when there is no package.json indicating this. A simpler workaround could be setting slidev.enabled to true in the workspace settings.

kermanx avatar Apr 16 '24 00:04 kermanx

We've rewritten the VSCode extension for Slidev (https://github.com/slidevjs/slidev/pull/1557). Upgrading the VSCode extension to the latest (0.49.1) can fix this issue.

kermanx avatar May 10 '24 15:05 kermanx