You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ timew start '"a'
Note: '"\"a"' is a new tag.
Tracking "\"a"
[…]
$ timew stop
Trying to decrement non-existent tag '"a'
After timew start is run, the tags.data file contains {"\"a":{"count":1}}. When running timew stop, libshared's parse_pair parses the key "\"a", but does not unescape it. This causes timewarrior not to find "a because the key is internally stored as \"a.
Possible solutions:
Add a function to retrieve the key name in unescaped form and change timewarrior to use this function
Change the internal representation of _data to store the unescaped string
The
json::object::parse_pair
function callsgetQuoted
to parse object keys. This means thatobject::_data
contains JSON-escaped keys.This causes the following issue in timewarrior as of GothenburgBitFactory/timewarrior@bdb28fa:
After
timew start
is run, thetags.data
file contains{"\"a":{"count":1}}
. When runningtimew stop
, libshared'sparse_pair
parses the key"\"a"
, but does not unescape it. This causes timewarrior not to find"a
because the key is internally stored as\"a
.Possible solutions:
_data
to store the unescaped stringPossibly related to GothenburgBitFactory/timewarrior#159
The text was updated successfully, but these errors were encountered: