GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Display UUID of task created by add, even if ID is displayed

Open
#2,085 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

*(This thread was opened in accordance with @pbeckingham 's [request][1].)*

As of 2.5.1 (I haven't checked other versions of TaskWarrior), the `new-uuid` verbosity setting does not seem to take effect unless the `new-id` verbosity setting is disabled, despite the two settings being [ostensibly unrelated][1].

Whether this thread should be regarded as a bug report or a feature request is a subjective matter, dependent upon whether you think TaskWarrior's current behaviour is "as intended".

**With** `new-id` enabled, `new-uuid` does not work:
```
$ task _get rc.verbose
blank,header,footnote,label,new-id,new-uuid,affected,edit,special,project,sync,unwait,recur
$ task add foo
Created task 106.
```
I would have expected the above to output *both* the ID and the UUID, since both are enabled. Something like: `Created task 106 (a3208e1b-b8cb-4370-b017-402a2224ca05).`

**Without** `new-id` enabled, `new-uuid` works as expected:
```
$ task _get rc.verbose
blank,header,footnote,label,new-uuid,affected,edit,special,project,sync,unwait,recur
$ task add foo
Created task a3208e1b-b8cb-4370-b017-402a2224ca05.
```

**Version info**:
```
$ task _get rc.verbose
task 2.5.1
Platform: Linux

Compiler
Version: 6.3.0 20170516
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++11

Build Features
Built: Nov 28 2018 20:17:42
Commit: 493bbadb1
CMake: 3.7.2
libuuid: libuuid + uuid_unparse_lower
libgnutls: n/a
Build type:

Configuration
File: /home/sampablokuper/.taskrc (found), 4511 bytes, mode 100644
Data: /home/sampablokuper/.task (found), dir, mode 40755
Locking: Enabled
GC: Enabled
Server:
Trust: strict
Certificate: , not readable, 0 bytes
Key: , not readable, 0 bytes
Ciphers: NORMAL
Creds:

Hooks
System: Enabled
Location: /home/sampablokuper/.task/hooks
(-none-)

Tests
$TERM: xterm-256color (251x54)
Dups: Scanned 1210 tasks for duplicate UUIDs:
No duplicates found
Broken ref: Scanned 1210 tasks for broken references:
No broken references found
```

[1]: https://github.com/GothenburgBitFactory/taskwarrior/issues/331#issuecomment-446773150

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.