Skip to content

[BUG] combinations are broken #161

Description

@ogarcia

Describe the bug

The combination system seems to be broken. From what I can tell, the combinations are stored in ~/.config/syncall/tw_gtasks_configs.yaml, but then the system goes to read them from ~/.config/syncall/tw__google_tasks__configs.yaml (which is empty).

I tried copying the contents of one file to another, but all I got was this error:

% tw_gtasks_sync -b Personal
13:57:35.60 | INFO      | Loading preferences...
13:57:35.60 | INFO      |

Loading configuration - /home/ogarcia/.config/syncall/tw__google_tasks__configs.yaml | Personal
Traceback (most recent call last):
  File "/home/ogarcia/.local/virtualenvs/syncall/bin/tw_gtasks_sync", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/ogarcia/.local/virtualenvs/syncall/lib/python3.12/site-packages/click/core.py", line 1485, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ogarcia/.local/virtualenvs/syncall/lib/python3.12/site-packages/click/core.py", line 1406, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/ogarcia/.local/virtualenvs/syncall/lib/python3.12/site-packages/click/core.py", line 1269, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ogarcia/.local/virtualenvs/syncall/lib/python3.12/site-packages/click/core.py", line 824, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ogarcia/.local/virtualenvs/syncall/lib/python3.12/site-packages/syncall/scripts/tw_gtasks_sync.py", line 110, in main
    tw_sync_all_tasks = app_config["tw_sync_all_tasks"]
                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'tw_sync_all_tasks

To Reproduce

Just make a sync:

tw_gtasks_sync -v -l 'Mis tareas' -p Personal --days 30 -s Personal

And then try using that combination:

tw_gtasks_sync -b Personal

This happens regardless of whether I name the combination myself or leave it with the default name generated by the system

Versions

OS Version (cat /etc/*-release; uname -a)

Arch Linux

Python version (python --version; python3 --version)

Python 3.12.13

--version of your executable

tw_gtasks_sync, version 1.8.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions