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

"Cannot move empty block" error #19

Open
quantumfrost opened this issue Aug 27, 2023 · 7 comments
Open

"Cannot move empty block" error #19

quantumfrost opened this issue Aug 27, 2023 · 7 comments

Comments

@quantumfrost
Copy link

When I try to move a block while keeping an embed, I often get "Cannot move an empty block" error. Works after a few tries.

@G-i-o
Copy link

G-i-o commented Mar 13, 2024

Same here. When trying to move any block anywhere (cut/copy) it fails and shows the "Cannot move an empty block".

Tested on Logseq v0.10.7 as well as on previous versions.

Looking forward to see this fixed as I find this a useful addon.

Thank YOU!

@vipzhicheng
Copy link
Owner

I can not reproduce this issue, so I think I need some examples to debug.

@vipzhicheng
Copy link
Owner

Please upgrade and test again. Before the logic is stop at empty block if you select more than one. Now the logic is to ignore empty block and continue to process the rest of blocks.

@G-i-o
Copy link

G-i-o commented May 18, 2024

@vipzhicheng, re-tested on latest version.

As before, it would work on some blocks, in particular in newly created ones. On some others it would give out an error as "Found empty selected block, ignore and continue to process!".

@vipzhicheng
Copy link
Owner

This means selected blocks include empty blocks. Here I need some example cases to reproduce.

@G-i-o
Copy link

G-i-o commented Jun 5, 2024

I understand. I cannot see empty blocks but it seems that if I delete the empty lines than it works.

Here's an example that does not work:

- TODO [#C] Report Bugs :#IT:
  
	* Bug 1
	* Bug 2

But if I change it to the following, it works:

- TODO [#C] Report Bugs :#IT:
	* Bug 1
	* Bug 2

@G-i-o
Copy link

G-i-o commented Jun 5, 2024

Something strange. I have just tried manually re-inputting the first example above and this time it works. But if I copy it from here as it is, it doesn't. Still, I cannot see any empty blocks.

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

3 participants