Open MoskitoHero opened 4 months ago
@MoskitoHero the second error is because you are missing a prettierrc config. Adding it to your project should help.
The first step to debugging Apheleia running a formatter is to run the formatter yourself. Once you figure out the correct command line to invoke the formatter, you can come back and configure Apheleia to use that - or propose a change to the default. But Apheleia has nothing to do with formatter installation or configuration, it just runs the configured command line.
I am experiencing an issue with this package in my ruby on rails project.
I am using doom emacs - latest pinned version, which is
96a9805ecb75aac2adde7568d26b3e3b3ffc19af
.🐛 Whenever I save a file, I get this error message in the messages buffer:
Failed to run apheleia-npx: exit status 1 (see buffer *apheleia-apheleia-npx-log*)
And this is what that buffer tells me:
I have a
node_modules
directory, but I do not want to touchpackage.json
as dependencies are a bit touchy on this project.I did try to install @prettier, etc. locally, but when I did, what I got was another error:
I read through the README to see if I had overlooked some installation step, but I cannot see anything relevant...