micro
micro copied to clipboard
The file on disk has changed
When i open ~/.config/micro/settings.json I always see prompt The file on disk has changed.
My /etc/fstab:
# /dev/mapper/cryptroot LABEL=arch
UUID=02790d6b-b3ed-442b-865b-8161eddfd539 /home btrfs rw,noatime,ssd,commit=600,discard=async,space_cache=v2,subvolid=261,subvol=/@home 0 0
Does micro require atime/realtime instead noatime??????????????????
❯ micro --version
Found existing alias for "micro". You should use: "nano"
Version: 2.0.11
Commit hash: 225927b9
Compiled on August 09, 2022
Same problem with realtime.
❯ findmnt /home
TARGET SOURCE FSTYPE OPTIONS
/home /dev/mapper/cryptroot[/@home] btrfs rw,relatime,ssd,discard=async,space_cache=v2,commit=600,sub
~
❯ stat ~/.config/micro/settings.json
File: /home/sergey/.config/micro/settings.json
Size: 331 Blocks: 8 IO Block: 4096 regular file
Device: 0,40 Inode: 7800329 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ sergey) Gid: ( 1000/ sergey)
Access: 2022-08-21 21:51:23.978554911 +0300
Modify: 2022-08-21 21:51:27.441836219 +0300
Change: 2022-08-21 21:51:27.441836219 +0300
Birth: 2022-08-21 21:20:29.664083643 +0300
~
❯ cat ~/.config/micro/settings.json
{
"colorcolumn": 80,
"ft:go": {
"tabstospaces": false
},
"ft:python": {
"colorcolumn": 78,
"tabsize": 4
},
"ftoptions": false,
"lsp.server": "python=pylsp,go=gopls,typescript=deno lsp",
"rmtrailingws": true,
"softwrap": true,
"tabsize": 2,
"tabstospaces": true
}
~
❯ stat ~/.config/micro/settings.json
File: /home/sergey/.config/micro/settings.json
Size: 331 Blocks: 8 IO Block: 4096 regular file
Device: 0,40 Inode: 7800329 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ sergey) Gid: ( 1000/ sergey)
Access: 2022-08-21 21:53:27.619185690 +0300
Modify: 2022-08-21 21:51:27.441836219 +0300
Change: 2022-08-21 21:51:27.441836219 +0300
Birth: 2022-08-21 21:20:29.664083643 +0300
~
❯ micro ~/.config/micro/settings.json
Found existing alias for "micro". You should use: "nano"

Fixed by #3009