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

The file on disk has changed #2531

Closed
s3rgeym opened this issue Aug 21, 2022 · 3 comments
Closed

The file on disk has changed #2531

s3rgeym opened this issue Aug 21, 2022 · 3 comments

Comments

@s3rgeym
Copy link

s3rgeym commented Aug 21, 2022

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
@s3rgeym
Copy link
Author

s3rgeym commented Aug 21, 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"

@s3rgeym
Copy link
Author

s3rgeym commented Aug 21, 2022

image

@dmaluka
Copy link
Collaborator

dmaluka commented Apr 15, 2024

Fixed by #3009

@dmaluka dmaluka closed this as completed Apr 15, 2024
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

No branches or pull requests

2 participants