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

Error when loading ".. include ::" #2

Open
btyokotast opened this issue Mar 17, 2017 · 0 comments
Open

Error when loading ".. include ::" #2

btyokotast opened this issue Mar 17, 2017 · 0 comments

Comments

@btyokotast
Copy link

I am using textlint-plugin-rst via textlint.
When executing the textlint command, the following error occurred.

$ textlint pass/index.rst
<stdin>:1: (SEVERE/4) Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'C:/may-declaration.rst'.
Exiting due to level-4 (SEVERE) system message.
× Error
Command failed: rst2ast -q
<stdin>:1: (SEVERE/4) Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'C:/my-declaration.rst'.
Exiting due to level-4 (SEVERE) system message.


× Stack trace
Error: Command failed: rst2ast -q
<stdin>:1: (SEVERE/4) Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'C:/my-declaration.rst'.
Exiting due to level-4 (SEVERE) system message.

    at checkExecSyncError (child_process.js:464:13)
    at execSync (child_process.js:504:13)
    at parse (C:\mydir\npm\node_modules\textlint-plugin-rst\lib\rst-to-ast.js:38:54)
    at preProcess (C:\mydir\npm\node_modules\textlint-plugin-rst\lib\ReSTProcessor.js:25:48)
    at TextlintCore._parallelProcess (C:\mydir\npm\node_modules\textlint\lib\textlint-core.js:237:23)
    /* omitted */

The target file is as follows.
pass/index.rst

.. include:: /my-declaration.rst

contents
// omitted

It probably occurred because ".. include :: /my- declaration.rst" of "index.rst" was interpreted as an absolute path.

Is there a workaround?

The usage environment is as follows.


OS:windows7
textlint:v7.3.0
node:v4.4.4

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

No branches or pull requests

1 participant