Skip to content

Export Document as PDF fails after some time #973

@ViToni

Description

@ViToni

Please provide details about:

  • What you're trying to do:
    • Trying to export the current document as PDF
  • What happened
    • If vscode has been open for some time, no PDF gets created.
    • If all instance of vscode are closed (closing asciidoctor project window is NOT sufficient) and vscode restarted (with all previously opened windows), the PDF is created just fine.
  • What you expected to happen
    • It should be always (within limits) possible to export as PDF.

Logs in error case:

[Extension Host] Error: command failed: asciidoctor-pdf
    at ChildProcess.<anonymous> (/Users/vitoni/.vscode/extensions/asciidoctor.asciidoctor-vscode-3.4.5/src/commands/exportAsPDF.ts:375:16)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1101:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:346:12)
gbs @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
C @ event.ts:1201
fire @ event.ts:1232
fire @ ipc.net.ts:652
l.onmessage @ localProcessExtensionHost.ts:383
console.ts:137 [Extension Host] Error while trying to execute 'bundle exec asciidoctor-pdf' from '/Users/vitoni/Library/Application Support/Code/User/globalStorage/asciidoctor.asciidoctor-vscode/asciidoctor-pdf-install', cause:  Error: spawn /bin/sh ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)

System information:

  • MacBook Pro (M4), Tahoe 26.0.1
  • VSCode Version: 1.105.1 (Universal)
  • asciidoctor.asciidoctor-vscode Version 3.4.5
  • asciidoctor 2.0.23 (installed via brew)
    • error persists with asciidoctor 2.0.25 (installed via brew)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions