Comments (12)
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.
from asciidoctor-vscode.
PS: Just to let you know. It's working great now. Thanks for the good work, João!
from asciidoctor-vscode.
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.
Thanks for the suggestion. I tried, but unfortunately the Debug Console remains empty. :(
from asciidoctor-vscode.
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.
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.
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.
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.
Sounds good - thanks a lot, João!
from asciidoctor-vscode.
PS: Thanks for reporting. The error message with a suggestion for the path config was added on the new version.
from asciidoctor-vscode.
I am getting the same error in ubuntu 16.04.
Asciidoctor 1.5.4
PATH of asciidoctor bin /usr/bin/asciidoctor
asciidoctor -o- 1-introduction.asc
prints html on terminal.
there is no error in vscode Debug console.
vscode version
1.14.0
b8cd5b9556d8b70ea560d35b903422363f6c5c40
from asciidoctor-vscode.
I had Restructured Text previewer installed. Disabling the plugin solved the issue. Thanks !
from asciidoctor-vscode.
Related Issues (20)
- Add Ability to Run Antora on Playbook .yml Files from VSCODE GUI (Right-Click > Launch Antora)? HOT 3
- Antora support prompt always appears unexpectedly in a Git workspace HOT 20
- Consistent code completion for includes HOT 5
- Find templates automatically under .asciidoctor/templates HOT 5
- Improve antora experience by putting a doc div into generated preview html HOT 9
- Unable to preview resources (images, css...) outside of the workspace 401 Unauthorized HOT 9
- ToC placement "preamble" / "macro" forces white background for ToC HOT 1
- Preview render is fixed width HOT 6
- Increase preview rendering speed HOT 2
- Syntax Highlighting doesn't work in preview HOT 8
- add imagesdir setting in asciidoctor attributes when antora is enable HOT 7
- Test "Antora support with single documentation component" is flaky HOT 1
- Preview stops working if reference to bibliography entry exists in 3.2.1 HOT 5
- `npm install` reports 9 vulnerabilities on `master` HOT 1
- Quotes have a dark overlay in preview but not in .pdf HOT 4
- `package.json` and `package-lock.json` are not in sync after `prepare branch for development [no ci]` HOT 2
- Add test coverage reporting
- Project README / CHANGELOG is Markdown instead of AsciiDoc
- Asciidoc: Export Document as PDF --> prompts user every time HOT 1
- Preview scroll offset wrong when includes are used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciidoctor-vscode.