Closed zhouji2013 closed 9 months ago
It is difficult for anyone to help you with only current informations. Could you share the log in the console of VS Code Developer Tools while exporting PDF with Marp? (Help -> Toggle Developer Tools -> "Console" tab)
As mentioned in https://github.com/orgs/marp-team/discussions/113, it is also worth trying to set the specific path to the Linux Chrome/Chromium browser in the settings of the extension.
this is all the output from Console: (nothings else happening except for the progress bar)
[Extension Host] Execute Marp CLI [-c /tmp/.marp-vscode-cli-conf-LBAxbxkXv_YWK-DfX93_d.json /home/THE_FILE_NAME.md -o /home/THE_FILE_NAME.pdf] ({}) console.ts:137 [Extension Host] [ INFO ] Converting 1 markdown... w @ console.ts:137 $logExtensionHostMessage @ mainThreadConsole.ts:39 S @ rpcProtocol.ts:456 Q @ rpcProtocol.ts:441 M @ rpcProtocol.ts:371 L @ rpcProtocol.ts:297 (anonymous) @ rpcProtocol.ts:161 y @ event.ts:1140 fire @ event.ts:1171 fire @ ipc.net.ts:650 z @ ipc.net.ts:1015 (anonymous) @ ipc.net.ts:875 y @ event.ts:1140 fire @ event.ts:1171 acceptChunk @ ipc.net.ts:394 (anonymous) @ ipc.net.ts:350 (anonymous) @ browserSocketFactory.ts:230 y @ event.ts:1140 fire @ event.ts:1171 j.onload @ browserSocketFactory.ts:91 console.ts:137 [Extension Host] [ WARN ] Insecure local file accessing is enabled for conversion from ../../../../../../../../home/THE_FILE_NAME.md.
I also noticed the following error when the project is opened but before using marp. Maybe it is relevent.
ERR [Extension Host] (node:23419) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
One more piece of information that may be useful, especially when people need a work-around: the version that had the problem is v2.8.0. After I rolled back to v.2.7.0, the problem is gone.
The export command is internally using Marp CLI so https://github.com/marp-team/marp-cli/issues/561 may be a original cause. Could you try whether the same problem will be reproduced in Marp CLI, and share the debug log about Puppeteer if reproduced? (Run with DEBUG
environment value as puppeteer:*
)
https://github.com/marp-team/marp-cli/issues/561#issuecomment-1808371166
We are temporarily closing this issue until additional information necessary for verification and reproduction is provided. If the problem persists, please reopen this issue with the required information.
VS Code 1.84.1 on WSL2
One day, it stopped exporting PDF. The exporting progress bar just keeps running without error message. Exporting as HTML works fine.