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

set fmt-onsave false -- Invalid Option #2

Open
dzalf opened this issue Oct 6, 2023 · 4 comments
Open

set fmt-onsave false -- Invalid Option #2

dzalf opened this issue Oct 6, 2023 · 4 comments

Comments

@dzalf
Copy link

dzalf commented Oct 6, 2023

Hi

I am facing issues with the plugin running on the wsl system for Windows (Ubuntu 20.04 LTS).

When typing the option to disable formatting on save I get this:

image

Running the command CTRL-E > fmt does nothing even when saving the file and reopening it

I am running the latest version of Micro:

image

Any ideas?

Cheers

@a11ce
Copy link
Owner

a11ce commented Oct 9, 2023

What is the result of plugin list within micro? How did you install autofmt?

@dzalf
Copy link
Author

dzalf commented Oct 9, 2023

What is the result of plugin list within micro? How did you install autofmt?

Hi

Thanks for the prompt response

I installed it cloning the repo and running make

The list of installed plugins is this:

image

I am currently testing with this ugly code:

image

Doing CTRL+e >> fmt does NOTHING after saving the file.

Executing: CTRL+e >>set fmt-onsave false throws the invalid option error

EDIT: Corrected typo on command

@dzalf
Copy link
Author

dzalf commented Oct 27, 2023

Hi @a11ce

Any ideas? 🤔

@ghost
Copy link

ghost commented Jun 9, 2024

Can confirm. This happens when the "fmt-onsave" option is not in the settings.json file.
Once you add it manually, you can then change it with the command.

Edit: The real issue was just a typo, the setting is called autofmt.fmt-onsave. Adding fmt-onsave to the config file only works because of a similar typo in the tryFmt function

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

Successfully merging a pull request may close this issue.

2 participants