marp-team / marp-vscode

Marp for VS Code: Create slide deck written in Marp Markdown on VS Code
https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode
MIT License
1.58k stars 75 forks source link

Failure to export #377

Closed cviroulaud closed 2 years ago

cviroulaud commented 2 years ago

Hello I try marp (2.2.1) in vscodium (1.70.1) but i have an error when exporting:

[CLIError] Failed converting Markdown (protocol error (Target.setAutoAttach): target closed)

Chromium is installed

Thank you

cviroulaud commented 2 years ago

Debian 11 Vscodium 1.70.1 Marp for vscode 2.2.1 Chromium 104 (path /etc/chromium)

I try this code: `

marp: true

Slide 1

foo


Slide 2

bar `

then Marp: Export Slide Deck ---> [CLIError] Failed converting Markdown (protocol error (Target.setAutoAttach): target closed)

yhatt commented 2 years ago

That error will be happen if failed spawning the process of Chromium browser. The path /etc/chromium you've described is likely a wrong path because generally it's a folder, not executable.

If you have a path in manually set in markdown.marp.chromePath, please reset it to the empty and retry, to leave the browser detection to Marp. I've tested PDF export in VSCodium on Debian and it works for me.

cviroulaud commented 2 years ago

I change the chromium 's package and it works thanks