slidevjs / slidev-vscode

VS Code extension for Slidev
https://marketplace.visualstudio.com/items?itemName=antfu.slidev
MIT License
252 stars 17 forks source link

Preview does not work #16

Closed ChiMaoShuPhy closed 4 months ago

ChiMaoShuPhy commented 2 years ago

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.

leon-ziya commented 1 year ago

SLIDEV extension icon not appearing in activity bar image

Fanisting commented 1 year ago

I have the similar problem!

wq24 commented 1 year ago

I have the same problem!Have you solved it?

ChiMaoShuPhy commented 1 year ago

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.

FrancescoSaverioZuppichini commented 6 months ago

same here

KermanX commented 5 months ago

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 commented 4 months ago

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.