micro-autofmt icon indicating copy to clipboard operation
micro-autofmt copied to clipboard

Issues persist

Open dzalf opened this issue 5 months ago • 6 comments

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"?

Image

EDIT: I have changed the file permissions and reinstalled the plugin both as sudo and without sudo, and now I get this error:

Image

These are my plugins:

Image

and micro version:

Image

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:

Image

dzalf avatar Jul 15 '25 10:07 dzalf

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?

a11ce avatar Jul 16 '25 17:07 a11ce

Oh what OS are you on?

a11ce avatar Jul 16 '25 17:07 a11ce

@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)

dzalf avatar Jul 18 '25 12:07 dzalf

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!

jrc03c avatar Sep 18 '25 15:09 jrc03c

@dzalf Did you install with micro -plugin install or make?

a11ce avatar Nov 07 '25 16:11 a11ce

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?

a11ce avatar Nov 07 '25 16:11 a11ce