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

[Android] Random blocks replaced by - id:: xxxx #11270

Open
1 of 2 tasks
e-zz opened this issue Apr 26, 2024 · 0 comments
Open
1 of 2 tasks

[Android] Random blocks replaced by - id:: xxxx #11270

e-zz opened this issue Apr 26, 2024 · 0 comments

Comments

@e-zz
Copy link
Contributor

e-zz commented Apr 26, 2024

Search first

  • I searched and no similar issues were found

What Happened?

Sometimes the content of some random blocks are lost and replaced by id:: xxxx string

For example,

- the first block
- the second block
- ....

sometime after the block might turn blank. The content in some block is missing:

- the first block
- id:: 65c42282-ae26-4d6f-9531-ad90f2ddfe82
- ....

It's not clear to me why some are affected while the others are intact. I believe this happens on android because when I restore the content from the backup folder, the change is made between two xxx.Androd.md files. This happens both to desktop and android applications I think. And it might be closely related to the self-hosted syncing service ( Like syncthig) which modifies the files on device and might cause problems.

Reproduce the Bug

test if you have the same problem

I don't know what's the cause. But it's easy to check if you're plagued by the same bug:

  • Open the entire graph folder with vscode (or other editors that can perform a global regex search through your graph folder)
  • Search for "blank" blocks globally. Press ctrl+shift+f to start a global search in vscode, and paste this into the search box
^\s*- id::.*\n\s*-

You might have to adapt the regex depending on which editor you are using. The regex is to catch pattern like

- id:: 65c42282-ae26-4d6f-9531-ad90f2ddfe82
- ...

Expected Behavior

No response

Screenshots

No response

Desktop or Mobile Platform Information

Logseq(Android) v0.10.7
Logseq v0.10.5

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants