Issues persist
I tried to open issue #2, however, GH did not allow me.
"It's-a-me" again.
I had to reopen this because I am facing a similar issue right now:
Why, no matter what I do, do I get the red message "Unknown command fmt"?
EDIT: I have changed the file permissions and reinstalled the plugin both as sudo and without sudo, and now I get this error:
These are my plugins:
and micro version:
It would be great if the documentation for the installation and usage of this plugin were clearer and more explanatory.
For the life of me, I cannot get this to work
My code is very poorly indented due to a strange copy-paste situation with ssh:
Agh. I closed #2 because I was able to install the plugin on a new system and have it work correctly. It's strange it lists autofmt as installed by the command isn't there. Is there any chance you'd be able to call sometime on discord and share your screen to debug together?
Oh what OS are you on?
@a11ce Apologies for the late reply.l and thanks for your help.
I am using micro on Kali Linux in pure terminal mlde on a Raspberry Pi zero 2 w.
I believe that the issue might be related to a missing link between clang-formatter system PATH and the autofmt plug in
If I run the clang on the terminal, my code formats fine. If I do it by CTRL-e + fmt I get the error described.
(I am on my phone right now so I am unable to provide further details)
Hey! I just installed this plugin in Linux (Mint 22.2 w/ Micro 2.0.13) using:
micro -plugin install autofmt
And I got the same error:
Unknown command fmt
However, when I uninstalled the plugin and reinstalled it using your official instructions (i.e., git clone and then make), the error went away!
@dzalf Did you install with micro -plugin install or make?
I believe that the issue might be related to a missing link between clang-formatter system PATH and the autofmt plug in
Can you elaborate on why you believe this?