GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Wrong task description when using a context with 'and' clause

Open
#3,313 2 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

Bug report

* What command(s) did you run?
```
rm -rf ~/.task
task context define customer1 project:work and +customer1
task context customer1
task add test
```
* What did you expect to happen?
* one task "test" added to project 'work' with tag 'customer1' set
* What actually happened?
* one task "and test" added to project 'work' with tag 'customer1' set
* Output of the command ```task```:
```
ID Age Project Tag Description Urg
1 5min work customer1 and test 1.8

1 task
Context 'customer1' set. Use 'task context none' to remove.
There are 8 local changes. Sync required.
```
* Paste the output of the ```task diag``` command.
```
task 3.0.0
Platform: Linux

Compiler
Version: 11.4.0
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++17

Build Features
Commit: 06fdfc5af
CMake: 3.22.1
libuuid: libuuid + uuid_unparse_lower
Build type: release

Configuration
File: /home/jerome/.config/task/taskrc (found), 1529 bytes, mode 100664
Data: /home/jerome/.task (found), dir, mode 40775
Locking: Enabled
GC: Enabled
$EDITOR: nvim
Hooks
System: Enabled
Location: /home/jerome/.task/hooks
(-none-)

Tests
Terminal: 204x52
Dups: Scanned 1 tasks for duplicate UUIDs:
No duplicates found
Broken ref: Scanned 1 tasks for broken references:
No broken references found
```

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.