Mara-Li / obsidian-bartender

Allows for rearranging the elements in the status bar and sidebar ribbon
60 stars 2 forks source link

[Bug]: Sort order conflicts with secondary device #3

Open not-alaris opened 4 months ago

not-alaris commented 4 months ago

Issue validation

Describe the bug

For some reason, using this plugin for sorting works on my iPhone, but not my Mac. Both are connected to the same vault, and sync using Obsidian sync. I can reorder folders on both, but they only save on the iPhone. If I close Obsidian on my Mac and reopen it, it does not save.

In addition, if I order it on my phone, it does not sync correctly to the Mac either way. The sync log says that it accepts the file, yet it doesn't change. I'm not sure if it's a plugin problem or an Obsidian sync, but it's very strange.

The data file below shows the files in the correct order I set, but it does not display in that order, the real order is random.

How to reproduce ?

  1. Open the same vault on a phone and computer.
  2. Order folders on one, and see if it saves.
  3. Check if the config syncs between the devices.

Minimal Reproducible Example

Not sure what a Minimal Reproducible Example is, but if you follow the reproduction steps it should show that it doesn't save.

Configuration

{
  "statusBarOrder": [],
  "ribbonBarOrder": [],
  "fileExplorerOrder": {
    "/": [
      "Personal",
      "2023-2024 School Year",
      "2024-2025 School Year",
      "Finance + Investments",
      "Aviation",
      "Books",
      "Clippings",
      "Daily Notes",
      "Housing",
      "Backend"
    ],
    "": [
      "Personal",
      "2023-2024 School Year",
      "2024-2025 School Year",
      "Finance + Investments",
      "Aviation",
      "Books",
      "Clippings",
      "Daily Notes",
      "Housing",
      "Backend"
    ]
  },
  "actionBarOrder": {},
  "autoHide": false,
  "autoHideDelay": 2000,
  "dragDelay": 200,
  "sortOrder": "custom",
  "useCollapse": true
}

Relevant log output

No response

Anything else?

No response

OS

IOS, MacOS

Obsidian information

macOS info:

SYSTEM INFO:
    Obsidian version: v1.5.3
    Installer version: v1.4.13
    Operating system: Darwin Kernel Version 22.6.0: Mon Apr 22 20:54:28 PDT 2024; root:xnu-8796.141.3.705.2~1/RELEASE_X86_64 22.6.0
    Login status: logged in
    Catalyst license: none
    Insider build toggle: off
    Live preview: on
    Base theme: dark
    Community theme: Tokyo Night v0.2.5
    Snippets enabled: 7
    Restricted mode: off
    Plugins installed: 21
    Plugins enabled: 20
        1: Auto Link Title v1.5.4
        2: Banners v2.0.5-beta
        3: Book Search v0.7.4
        4: BRAT v1.0.1
        5: Calendar v1.5.10
        6: Charts v3.9.0
        7: Dataview v0.5.67
        8: Excalidraw v2.2.7
        9: Force note view mode v1.2.2
        10: Homepage v3.8.1
        11: Iconize v2.14.1
        12: Math+ v0.7.0
        13: Multi-Column Markdown v0.9.1
        14: Plugin Update Tracker v1.5.2
        15: Sortable v0.3.1
        16: Style Settings v1.0.8
        17: Table Generator v1.4.1
        18: Imgur v2.5.2
        19: Clear Unused Images v1.1.0
        20: Bartender v0.5.14

iOS info:

SYSTEM INFO:
    Operating system: ios 17.5.1 (Apple iPhone15,3)
    Obsidian version: 1.6.5 (147)
    API version: v1.6.5
    Login status: logged in
    Catalyst license: none
    Live preview: on
    Base theme: dark
    Community theme: Tokyo Night v0.2.5
    Snippets enabled: 7
    Restricted mode: off
    Plugins installed: 21
    Plugins enabled: 20
        1: Auto Link Title v1.5.4
        2: Banners v2.0.5-beta
        3: Book Search v0.7.4
        4: BRAT v1.0.1
        5: Calendar v1.5.10
        6: Charts v3.9.0
        7: Dataview v0.5.67
        8: Excalidraw v2.2.7
        9: Force note view mode v1.2.2
        10: Homepage v3.8.1
        11: Iconize v2.14.1
        12: Math+ v0.7.0
        13: Multi-Column Markdown v0.9.1
        14: Plugin Update Tracker v1.5.2
        15: Sortable v0.3.1
        16: Style Settings v1.0.8
        17: Table Generator v1.4.1
        18: Imgur v2.5.2
        19: Clear Unused Images v1.1.0
        20: Bartender v0.5.14

I'm on a 2019 macbook pro and a iPhone 14 Pro Max

Plugin version

0.5.14

Mara-Li commented 3 months ago

I have an iphone and a windows, and multiple windows. I don't notice this bug, even on Iphone or Ipad. Sometimes, at sync, it doesn't update but it's not a problem.

Did you try to reload obsidian on the mac after the sync?