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

Fix to work in VS Code context #100

Closed
wants to merge 1 commit into from

Conversation

apupier
Copy link

@apupier apupier commented Aug 8, 2023

it avoids to rely on process.execPath which resolves to code binary in VS Code context although it expects the node binary

relates to asciidoctor/asciidoctor-vscode#731

it avoids to rely on `process.execPath` which resolves to `code` binary
in VS Code context although it expects the `node` binary

relates to asciidoctor/asciidoctor-vscode#731

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@apupier
Copy link
Author

apupier commented Aug 8, 2023

first attempt but resulting in this kind of error:

Uncaught Error: spawnSync /home/apupier/git/unxhr/lib/request.js EACCES

EDIT: I guess I misunderstood how execFileSync is working and the file is not a script but any executable

@apupier apupier closed this Aug 17, 2023
@apupier apupier deleted the useFileSync branch August 17, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant