GithubHelp home page GithubHelp logo

Comments (12)

arulrajnet avatar arulrajnet commented on May 25, 2024 2

Found the problem. I am using another extension for reStructuredText. That causing the problem. After disable that its working fine. Thanks for this nice extension

Help -> Toggle Developer Tools helped me to find the exact issue instead of Debug console of vscode.

image

from asciidoctor-vscode.

NenoLoje avatar NenoLoje commented on May 25, 2024 1

PS: Just to let you know. It's working great now. Thanks for the good work, João!

from asciidoctor-vscode.

joaompinto avatar joaompinto commented on May 25, 2024

Hi, please try: View -> Debug Console, and then press the CTR-K r, hopefully it will report the error on the debug console.

from asciidoctor-vscode.

NenoLoje avatar NenoLoje commented on May 25, 2024

Thanks for the suggestion. I tried, but unfortunately the Debug Console remains empty. :(

from asciidoctor-vscode.

joaompinto avatar joaompinto commented on May 25, 2024

Right, so let's do some requirements check, this extension requires "asciidoctor", are you using Windows or Linux ? Does "asciidoctor" on a terminal/command prompt work ?

from asciidoctor-vscode.

NenoLoje avatar NenoLoje commented on May 25, 2024

I'm running on WIndows.
Asciidoctor is installed, but possibly it's not defined in the PATH.

How are you detecting asciidoctor?

from asciidoctor-vscode.

NenoLoje avatar NenoLoje commented on May 25, 2024

I think this is it. When adding the ruby/asciidoctor folder to %PATH%, it works as expected.

Maybe you could:
(1) Handle the detection error more gracefully, in cases where asciidoctor is not installed or %PATH% not set correctly.
(2) Optionally, be more flexible and allow users to set the path and not rely on %PATH%.

from asciidoctor-vscode.

joaompinto avatar joaompinto commented on May 25, 2024

Neno,
you can setup the path in the extension config.
File -> Preferences -> User Setttings,
you need to copy the required setting into your local config:
"AsciiDoc.html_generator": "YOUR_PATH\asciidoctor -o-" .

Anyway I will let this issue open, will close it with after adding the code for your suggestion (2), it should report that asciidoctor is missing from the path.

from asciidoctor-vscode.

NenoLoje avatar NenoLoje commented on May 25, 2024

Sounds good - thanks a lot, João!

from asciidoctor-vscode.

joaompinto avatar joaompinto commented on May 25, 2024

PS: Thanks for reporting. The error message with a suggestion for the path config was added on the new version.

from asciidoctor-vscode.

arulrajnet avatar arulrajnet commented on May 25, 2024

I am getting the same error in ubuntu 16.04.
image

Asciidoctor 1.5.4

PATH of asciidoctor bin /usr/bin/asciidoctor

asciidoctor -o- 1-introduction.asc prints html on terminal.

image

there is no error in vscode Debug console.

vscode version

1.14.0
b8cd5b9556d8b70ea560d35b903422363f6c5c40

from asciidoctor-vscode.

rathiram1978 avatar rathiram1978 commented on May 25, 2024

I had Restructured Text previewer installed. Disabling the plugin solved the issue. Thanks !

from asciidoctor-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.