Giter Club home page Giter Club logo

things-to-org's People

Contributors

chrizel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

things-to-org's Issues

Pandoc version 3.1.11 is not supported, we proceed as if pandoc 2.19.2 was used.

Hello, I'm getting this error:

* No Project
** TODO Move 1  project to next
SCHEDULED: <2024-01-01 Mon>
/opt/homebrew/lib/python3.11/site-packages/pandoc/utils.py:62: UserWarning: 
Pandoc version 3.1.11 is not supported, we proceed as if pandoc 2.19.2 was used. 
The behavior of the library is undefined if the document models of these versions differ.
  warnings.warn(error)
Traceback (most recent call last):
  File "/Users/ritchie/Downloads/things/../things-to-org.py", line 67, in <module>
    print_tasks(tasks, '**')
  File "/Users/ritchie/Downloads/things/../things-to-org.py", line 57, in print_tasks
    print_task(task, level)
  File "/Users/ritchie/Downloads/things/../things-to-org.py", line 49, in print_task
    print(pandoc.write(doc, format='org'))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/pandoc/__init__.py", line 355, in write
    pandoc(options)
  File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/base.py", line 113, in __call__
    return self.run(args, **kwargs)[1]
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/base.py", line 252, in run
    return p.run()
           ^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/base.py", line 215, in runner
    return run_proc(p, retcode, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/processes.py", line 299, in run_proc
    return _check_process(proc, retcode, timeout, stdout, stderr)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/processes.py", line 17, in _check_process
    proc.verify(retcode, timeout, stdout, stderr)
  File "/opt/homebrew/lib/python3.11/site-packages/plumbum/machines/base.py", line 27, in verify
    raise ProcessExecutionError(
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 64
Command line: | /opt/homebrew/bin/pandoc -t org -o /var/folders/55/jrxhtwg11gzftpggx7xz5y5r0000gp/T/tmpsq01g49v/output -f json /var/folders/55/jrxhtwg11gzftpggx7xz5y5r0000gp/T/tmpsq01g49v/input.js
Stderr:       | JSON parse error: Error in $: Incompatible API versions: encoded with [1,22,2,1] but attempted to decode with [1,23,1].

DONE and CANCELED tasks not included

I don't know if it is on purpose, but the script currently only exports current tasks. For my intended use, I needed a full copy of the database, including any historical DONE and CANCELED task.

This can primarily be achieved by explicitly calling the things.todo() with status=None.
I also removed the filter for a start date.

If you want, I can submit a PR with my modifications.

Script requires pandoc at most version 2.19.2

I had installed the latest pandoc through Homebrew, which is at version 3.x at the moment. When running the export script, it complained and errored over pandoc. I downgraded to version 2.19.2 (the last 2.x version) to have the export script running without errors.

Downgrade:

I think this is due to the upstream things library, so nothing to be done atm. But this could at least be mentioned in the project README?

notes is None

The script errored on one specific todo with a note that was None. So I added an additional check for that to skip the note.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.