Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Vale with Asciidoctor.js #895

Open
1 task done
danyill opened this issue Sep 10, 2024 · 2 comments
Open
1 task done

Using Vale with Asciidoctor.js #895

danyill opened this issue Sep 10, 2024 · 2 comments

Comments

@danyill
Copy link

danyill commented Sep 10, 2024

Check for existing issues

  • Completed

Describe the feature

I'm trying to use Vale with Asciidoctor.js but having difficulty with finding the executable when running Vale.

I've placed the executable in the same folder as the executable for Vale 3.7.1.

The following commands show that it is correctly on the path (I have explicitly added it to the path although it should be unnecessary and it doesn't work without this either) but it doesn't appear to be callable from within Vale. Is there any way to specify the Asciidoctor command line explicitly?

C:\PA_Applications\vale3.7.1>SET "PATH=%PATH%;C:PA_Applications/vale3.7.1" && vale.exe --config C:\PA_Applications\vale_styles\.vale.ini --output=line  "C:\Git\digital-substation\standard-packages\pcs-221s-merging-unit\modules\overview\pages\firmware.adoc"
E100 [lintAdoc] Runtime error

asciidoctor not found

Execution stopped with code 1.

C:\PA_Applications\vale3.7.1>SET "PATH=%PATH%;C:PA_Applications/vale3.7.1" && where asciidoctor
C:\PA_Applications\vale3.7.1\asciidoctor.exe

C:\PA_Applications\vale3.7.1>set PATH=%PATH%;C:PA_Applications/vale3.7.1/ && asciidoctor -v
Asciidoctor.js 2.2.8 (Asciidoctor 2.0.23) [https://asciidoctor.org]
Runtime Environment (node v12.22.1 on win32)

Background is that I'm trying to set up the external tool configuration for IntelliJ but don't have the ability to install Ruby on my system and was hoping that using the executable Asciidoctor.js would function correctly.

@cpkio
Copy link

cpkio commented Sep 10, 2024

You have a typo: C:PA_Applications/vale3.7.1, forgot slash.

@danyill
Copy link
Author

danyill commented Sep 11, 2024

You have a typo: C:PA_Applications/vale3.7.1, forgot slash.

That's true and I'll fix that and try again although I think the current working directory should always be on the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants