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

It converted only a portion of the files #26

Open
gerroon opened this issue Nov 29, 2024 · 4 comments
Open

It converted only a portion of the files #26

gerroon opened this issue Nov 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@gerroon
Copy link

gerroon commented Nov 29, 2024

Describe the bug
I have like 350 .tid files from tiddlywiki JS version. It converted only 14 files out of the whole thing. I used jimmy [folderto tids]

OS
Debian

To Reproduce
Please provide a minimal example file for debugging.

aaaa.tar.gz

@gerroon gerroon added the bug Something isn't working label Nov 29, 2024
@marph91
Copy link
Owner

marph91 commented Nov 29, 2024

Thanks for the report.

  1. For now, only individual .tid files can be converted. But I will extend the script to support a folder of .tid files, too.
  2. There might be an issue with the format. There is much (unexpected) HTML in the notes. Did you export by Export tiddler -> TID text file?

grafik

Tomorrow I will have likely some time to look closer at it.

@gerroon
Copy link
Author

gerroon commented Nov 29, 2024

I just converted the original tid folder. I am not aware of a method of exporting all of them at one go.

marph91 added a commit that referenced this issue Nov 30, 2024
@marph91
Copy link
Owner

marph91 commented Nov 30, 2024

Turned out that HTML blocks can be contained in Wikitext. That makes things complicated. But at the end I figured out some implementation (though it's not perfect). Can you try the latest release?

The command should be like described at the documentation:
jimmy-cli-linux /folder/to/tiddlers --format tiddlywiki

@gerroon
Copy link
Author

gerroon commented Dec 1, 2024

Hi

Thanks for the update. I am getting different kind of error

[11/30/24 19:19:05] INFO     Jimmy 0.0.37 (Pandoc 3.5)
                    INFO     Importing notes from "/home/USER/tidwiki/tiddlers"
                    INFO     Start parsing
Traceback (most recent call last):
  File "jimmy_cli.py", line 139, in <module>
  File "jimmy_cli.py", line 135, in main
  File "jimmy.py", line 123, in jimmy
  File "jimmy.py", line 80, in convert_all_inputs
  File "converter.py", line 66, in convert_multiple
  File "formats/tiddlywiki.py", line 234, in convert
  File "formats/tiddlywiki.py", line 206, in convert_tid
ValueError: not enough values to unpack (expected 2, got 1)
[PYI-847015:ERROR] Failed to execute script 'jimmy_cli' due to unhandled exception!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants