Micro: can we have a stable format for settings.json or at least have a mechanism to make it backword compatible?

Created on 29 Feb 2020  路  1Comment  路  Source: zyedidia/micro

Description of the problem or steps to reproduce

Use micro 2.x and 1.4 interchangeably leads to crash of

Details here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952111#10

Ideal thing would be to not change the settings.json often or if it has to make it in a way that older versions can ignore things it does not understand. or at the minimum give a better error message if settings.json format is not understood. Having versions for the settings.json format will help to check compatibility easily.

Most helpful comment

Hi,
I agree that some sort of settings version check could be helpful, but perhaps the idea that micro has "_change the settings.json often_" is not accurate; it's been several years since there has been a new major version of micro. I also personally don't think it's entirely unreasonable for major versions to be incompatible with older ones. So perhaps we're just looking at a better error message in the future.

Considering that micro is released as a single portable binary with no dependencies, I don't see why you "_need to use both versions_". You can simply download the latest binary from the official micro releases and use that same version in your _multi-OS-releases_ home directory (e.g. ~/bin/micro).

Just my opinion, cheers.

>All comments

Hi,
I agree that some sort of settings version check could be helpful, but perhaps the idea that micro has "_change the settings.json often_" is not accurate; it's been several years since there has been a new major version of micro. I also personally don't think it's entirely unreasonable for major versions to be incompatible with older ones. So perhaps we're just looking at a better error message in the future.

Considering that micro is released as a single portable binary with no dependencies, I don't see why you "_need to use both versions_". You can simply download the latest binary from the official micro releases and use that same version in your _multi-OS-releases_ home directory (e.g. ~/bin/micro).

Just my opinion, cheers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nabeelomer picture nabeelomer  路  4Comments

KhodeN picture KhodeN  路  3Comments

utkarsh2102 picture utkarsh2102  路  3Comments

aerth picture aerth  路  4Comments

AndreyTheHacker picture AndreyTheHacker  路  3Comments