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)
- Asciidoc: Export Document as PDF --> prompts user every time HOT 1
- Preview scroll offset wrong when includes are used HOT 1
- Make error more prominent
- Preview scroll offset wrong when working with tables HOT 1
- Disabling SSL verification HOT 2
- Syntax highlighting broken if a variable is used with bash source
- Preview not rendering checkboxes in checklist
- Ctrl + Alt + V break HOT 1
- [Windows Only][Antora Support] `include::example$something` not working on windows
- Cant use asciidoctor in my own extension as soon as i active asciidoctor-vscode extension HOT 7
- Antora preview doesn't work if version is not specified in antora.yml
- Callout and Syntax Highlighting in code blocks
- Right-click causes incorrect multi-select behavior HOT 3
- xrefstyle is not honored when displaying xrefs HOT 2
- Table display issue
- [Feature Request] Point asciidoc.preview.asciidoctorAttributes to file which holds attributes HOT 2
- Verse delimited block syntax breaks syntax highlighting. HOT 1
- Section syntax highlighting stop working when adding extra space to a table separator (`|== `) HOT 2
- reduce frequency of antora support prompt HOT 1
- ${workspaceFolder} on windows has a leading slash. it must not.
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.