Skip to content

Script output (not sure what is expected) #5

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

Closed
kiraarghy opened this issue Mar 26, 2021 · 3 comments
Closed

Script output (not sure what is expected) #5

kiraarghy opened this issue Mar 26, 2021 · 3 comments

Comments

@kiraarghy
Copy link

Thank you so much for the work on this, you've saved me quite a few hours migrating from Roam to Obsidian!

I'm currently running the script and it's taking a long time to execute, which I understand cause it's probably doing a lot.

However it is constantly spitting out the message on:

rj2obs/r2o.py

Lines 57 to 59 in 3468d50

if uid not in uid2block:
print('************** uid not found:', uid)
else:

Is that to be expected? I'm not sure if the code is in an infinite loop, or it's waiting till it parses that block as part of the first run?

Thanks again!

@renerocksai
Copy link
Owner

Chances are, Roam changed sth in the blockref department. The script shouldn't take very long unless your database is really huge.

Do you have more info?

@kiraarghy
Copy link
Author

From debugging, it seems like it's the same uid causing a loop to form.

I'll have a look into the blockref changes and if I find anything out I'll get back to you!

@kiraarghy
Copy link
Author

Looking into it @lkhphuc's PR'ed fix with the break clause worked for me #2!

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