-
Notifications
You must be signed in to change notification settings - Fork 166
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
New file format (testing appreciated) #522
Conversation
On trying to launch with my personal dataset on the file_format_2 branch on my Ubuntu GTG smoke testing machine, while having previously launched it under master, I get this traceback preventing startup (and the process hangs there, you have to kill it):
|
Can't replicate. Maybe it's a race condition ( |
I was able to reproduce. Looking at it, In my case, the loop before calling I don't know how it would work for you. |
Deleting |
Pushed a fix for that bug |
Now it launches, but with my personal data set (anonymized version) auto-imported/converted by your implementation:
|
This was mentioned in #279. We don't really need another xml file since everything is inside |
9b32801
to
a9f337d
Compare
be941e0
to
0d6999b
Compare
And fix some broken ones from the rebase
Following the spec and XML data types
For translations
Sometimes the first run task can be called before initialization. If versioning isn't called then, it can create a new empty file instead.
This avoids a freeze when backends.conf is empty or doesn't exist. We need to call this_is_first_run() *after* the datastore has been set in the backend
We moved to emojis earlier than anticipated, so there's no need to keep the old icons around. fixes #540
This used to be only for @-style IDs, but we have to do it for the older IDs too. Otherwise GTG can't connect subtasks to their parents (since they are using UUIDs)
CDATA takes about everything but that combination of characters, so we need to encode them.
4f87e93
to
3aff2f8
Compare
Synced the code and the latest one on master branch is fa7b34a. After Do I have to run I gave a try to run the script and got:
What prerequisite is required to run the script? |
Confirmed in #565 If you work with the dev version (as I do), the script should not work, because there is no data .local/ folder. |
@WhilelM is this data from older versions of GTG (0.3 and earlier)? Could you try renaming that file to |
I have backup from 2013 and I use debian, so I think so. |
How can I convert my data to new format ? |
HI @WhilelM, it should convert automatically. Try using master, not this branch though. |
I still have issue with my data. I'm stucked with commit 5442868 and can't load any task if I use anything less older. |
That's weird, there's no change in the file format there or in any recent commit. Are you getting any errors in the terminal? |
This is a branch for the new file format based on a spec from #279 with help from @johnnybubonic.
The spec is documented here: https://github.com/getting-things-gnome/gtg/blob/file_format_2/docs/contributors/file%20format.md
Testing super appreciated! GTG makes tons of backups, but this should still be as rock solid as possible.
closes #279
How to test:
Basically open GTG dev and play around. See if anything is saved incorrectly or there are any weird errors.
Another option is to use the import scripts from the
scripts
folder. You can import your tasks from GTG stable and test with them.