asciidoctor / asciidoctor-vscode

AsciiDoc support for Visual Studio Code using Asciidoctor
Other
323 stars 97 forks source link

[Ubuntu 20.04; VS Codium] The extension either doesn't "see" or doesn't want to use a standalone executable of wkhtmltopdf #472

Closed VanBrugg3n closed 2 years ago

VanBrugg3n commented 2 years ago

Description

The extension either doesn't "see" or doesn't want to use a standalone executable of wkhtmltopdf, despite an explicit path to it being set in settings.

If I save my file as html and then convert it to pdf using wkhtmltopdf directly from terminal, everything works fine. BTW it's the fastest workaround, if anyone reading this has the same problem.

System Information

VSCodium Version: 1.61.2 Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643 Date: 2021-10-20T00:21:59.656Z Electron: 13.5.1 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Linux x64 5.4.0-89-generic wkhtmltopdf Version: 0.12.6-1 (most up-to-date, available only as a .deb file from the project's website.

Extension Settings

{
    "asciidoc.use_kroki": true,
    "workbench.colorTheme": "Monokai Dimmed",
    "window.zoomLevel": 2,
    "editor.accessibilitySupport": "off",
    "editor.bracketPairColorization.enabled": true,
    "editor.dragAndDrop": false,
    "workbench.preferredDarkColorTheme": "Monokai Dimmed",
    "workbench.statusBar.visible": false,
    "asciidoc.preview.refreshInterval": 100,
    "asciidoc.preview.useEditorStyle": false,
    "asciidoc.useWorkspaceRoot": true,
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true,
    "asciidoc.preview.scrollPreviewWithEditor": false,
    "editor.multiCursorModifier": "ctrlCmd",
    "workbench.enableExperiments": false,
    "workbench.settings.enableNaturalLanguageSearch": false,
    "update.showReleaseNotes": false,
    "telemetry.telemetryLevel": "off",
    "extensions.ignoreRecommendations": true,
    "asciidoc.wkhtmltopdf_path": "/usr/local/bin/wkhtmltopdf"
}

To Reproduce

  1. Use Ubuntu 20.04 or a distro based on it.
  2. Download the .deb file of wkhtmltopdf v0.12.6-1
  3. Run the .deb file.
  4. Locate the installed wkhtmltopdf executable and move it to /usr/local/bin/.
  5. In AsciiDoc Extension Settings, set wkhtmltopdf_path to /usr/local/bin/wkhtmltopdf.
  6. Create a new .adoc file and set any first level title.
  7. Open Command Pallete.
  8. Select AsciiDoc: Export document as PDF.

Screenshots & Files

image

Zhou-Yicheng commented 2 years ago

same problem