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

try use this lib, but not working #1

Open
enieber opened this issue Nov 17, 2019 · 3 comments
Open

try use this lib, but not working #1

enieber opened this issue Nov 17, 2019 · 3 comments

Comments

@enieber
Copy link

enieber commented Nov 17, 2019

I try instalation using yarn and npm but the erros is equals.
my config is:

  • Manjaro Arch Linux
  • nodejs v12.11.1

the message erros is:

src/Index.re
[error] src/Index.re: Error: spawnSync refmt ENOENT
[error]     at Object.spawnSync (internal/child_process.js:1041:20)
[error]     at Object.spawnSync (child_process.js:607:24)
[error]     at module.exports.sync (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier-plugin-reasonml/node_modules/execa/index.js:334:30)
[error]     at format (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier-plugin-reasonml/src/parse.js:4:5)
[error]     at Object.parse (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier-plugin-reasonml/src/parse.js:13:11)
[error]     at Object.parse (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier/bin-prettier.js:9743:19)
[error]     at coreFormat (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier/bin-prettier.js:13258:23)
[error]     at format (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier/bin-prettier.js:13516:73)
[error]     at formatWithCursor (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier/bin-prettier.js:13532:12)
[error]     at Object.formatWithCursor (/home/enieber/.fnm/node-versions/v12.11.1/installation/lib/node_modules/prettier/bin-prettier.js:44213:15)
@Anahkiasen
Copy link
Member

This library just wraps around refmt, if you run it directly on your file does it throw the same error?

@enieber
Copy link
Author

enieber commented Nov 18, 2019

I don't know how to run only refmt because I starting with reasonml now

@Anahkiasen
Copy link
Member

Anahkiasen commented Nov 19, 2019

If I recall you use refmt itself like this, but it's not really well documented on the ReasonML website:

refmt src/Index.re --in-place

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

2 participants