Skip to content

Instantly share code, notes, and snippets.


David J Patrick linuxcaffe

View GitHub Profile
linuxcaffe /
Created Nov 24, 2016 — forked from wbsch/
Proof of concept for a Taskwarrior on-exit hook that manages a git repository in ~/.task
#!/usr/bin/env python
# PoC: Manage a git repository in ~/.task that gets updated on changes.
# Only and are included by default.
# You can use "git add" to add whatever files you want to track in your
# task folder.
# Inspired by
# Works with any Taskwarrior version that supports hooks.
View timew make errors
pulled on Apr22 after midnight
on the laptop, after (seemingly fruitful) git pull --recurse-submodules, and cmake .
djp@cutter:~/tmp/timew.git$ uname -a
Linux cutter 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux
djp@cutter:~/tmp/timew.git$ make
[ 40%] Building CXX object src/CMakeFiles/timew.dir/Daterange.cpp.o
[ 42%] Building CXX object src/CMakeFiles/timew.dir/Exclusion.cpp.o
View gist:3408422b898d05cc028dfafab778fa6e
[ 60%] Building CXX object src/CMakeFiles/timew.dir/init.cpp.o
/home/djp/tmp/timew.git/src/init.cpp: In function ‘void initializeDataAndRules(const CLI&, Database&, Rules&)’:
/home/djp/tmp/timew.git/src/init.cpp:173:3: error: ‘lookForwards’ is not a member of ‘Datetime’
Datetime::lookForwards = false;
src/CMakeFiles/timew.dir/build.make:330: recipe for target 'src/CMakeFiles/timew.dir/init.cpp.o' failed
make[2]: *** [src/CMakeFiles/timew.dir/init.cpp.o] Error 1
CMakeFiles/Makefile2:152: recipe for target 'src/CMakeFiles/timew.dir/all' failed
make[1]: *** [src/CMakeFiles/timew.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
View timew-errors.txt
djp@transit:~/tmp/timew$ make
[ 34%] Built target libshared
[ 36%] Building CXX object src/CMakeFiles/timew.dir/CLI.cpp.o
/home/djp/tmp/timew/src/CLI.cpp: In member function ‘void CLI::lexArguments()’:
/home/djp/tmp/timew/src/CLI.cpp:186:84: error: ‘str_replace’ was not declared in this scope
/home/djp/tmp/timew/src/CLI.cpp:186:84: error: unable to deduce ‘auto’ from ‘<expression error>’
make[2]: *** [src/CMakeFiles/timew.dir/CLI.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/timew.dir/all] Error 2
make: *** [all] Error 2
View gist:72ac9455f6ef7331c0d188970e6de98b
(gdb) run diag
Starting program: /home/djp/tmp/timew.git/src/timew diag
timew 0.1.0
Platform: Linux
Version: 4.9.2
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++11
View gist:c7e09692ae22667b5518cf5c4fbe7669
(gdb) run
Starting program: /home/djp/tmp/timew.git/src/timew
There is no active time tracking.
[Inferior 1 (process 23903) exited normally]
(gdb) where
No stack.
View gist:58947b584dfdd99a4117906c6d3b382a
djp@cutter:~/tmp/timew.git/src$ gdb timew
GNU gdb (Debian 7.10-1+b1) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
View gist:2c812ac821a343fa09472236b1fbf06c
djp@cutter:~/tmp/timew.git/src$ apt-cache show ghc | grep Conflicts
Conflicts: ghc-dynamic (<< 7.8), ghc6 (<< 7), libghc-array-dev, libghc-base-dev, libghc-bin-package-db-dev, libghc-binary-dev, libghc-bytestring-dev, libghc-containers-dev, libghc-deepseq-dev, libghc-directory-dev, libghc-filepath-dev, libghc-ghc-prim-dev, libghc-haskeline-dev, libghc-haskell2010-dev, libghc-haskell98-dev, libghc-hoopl-dev, libghc-hpc-dev, libghc-integer-gmp-dev, libghc-old-locale-dev, libghc-old-time-dev, libghc-pretty-dev, libghc-process-dev, libghc-template-haskell-dev, libghc-terminfo-dev, libghc-time-dev, libghc-transformers-dev, libghc-unix-dev, libghc-xhtml-dev
View gist:a2c7d9b341ba1f50d89268d440fdf106
djp@cutter:~/tmp/timew$ make
on host transit;
djp@transit:~/tmp/timew$ uname -a
Linux transit 4.5.0-x86_64-linode65 #2 SMP Mon Mar 14 18:01:58 EDT 2016 x86_64 GNU/Linux
djp@transit:~/tmp/timew$ make
[ 33%] Built target libshared
Scanning dependencies of target timew
[ 35%] Building CXX object src/CMakeFiles/timew.dir/CLI.cpp.o
View tw_diag_Jan8.txt
task 2.5.1
Platform: Linux
Version: 4.7.2
Caps: +stdc +stdc_hosted +c8 +i32 +l32 +vp32 +time_t32
Compliance: C++11
Build Features
You can’t perform that action at this time.