Comments (4)
@dakotak I see there is a 2024-05.data
in ~/.data/timewarrior/data
after you called timew start test
, but does it have any content?
Can you try to manually create a ~/.timewarrior
directory an see whether it works then? 🤔
from timewarrior.
@lauft I can see the files in ~/.data/timewarrior/data
growing in size after each command, so it seems data is being correctly written just not read from this location. Manually creating ~/.timewarrior
makes the application work it seems (though not using xdg directories).
~ → ll ~/.data/timewarrior/data
.rw-r--r-- dakota staff 106 B Wed May 8 19:48:11 2024 2024-05.data
.rw-r--r-- dakota staff 47 B Wed May 8 19:48:11 2024 tags.data
.rw-r--r-- dakota staff 361 B Wed May 8 19:48:11 2024 undo.data
~ → timew start test2
Note: 'test2' is a new tag.
Tracking test2
Started 2024-05-08T19:50:05
Current 05
Total 0:00:00
~ → timew
There is no active time tracking.
~ → ll ~/.data/timewarrior/data
.rw-r--r-- dakota staff 135 B Wed May 8 19:50:05 2024 2024-05.data
.rw-r--r-- dakota staff 70 B Wed May 8 19:50:05 2024 tags.data
.rw-r--r-- dakota staff 456 B Wed May 8 19:50:05 2024 undo.data
~ → mkdir ~/.timewarrior
~ → timew
There is no active time tracking.
~ → timew start test2
Note: 'test2' is a new tag.
Tracking test2
Started 2024-05-08T19:50:55
Current 55
Total 0:00:00
~ → timew
Tracking test2
Started 2024-05-08T19:50:55
Current 51:00
Total 0:00:05
~ → ll ~/.timewarrior/data
.rw-r--r-- dakota staff 29 B Wed May 8 19:50:55 2024 2024-05.data
.rw-r--r-- dakota staff 25 B Wed May 8 19:50:55 2024 tags.data
.rw-r--r-- dakota staff 95 B Wed May 8 19:50:55 2024 undo.data
from timewarrior.
@dakotak Debugging further...
When using XDG, how does the output of timew start test2 :debug
look like? The :debug
hint will print more context information which may help us reproducing the issue.
from timewarrior.
@lauft Here are the outputs from running times start test2 :debug
. I ran it twice, once with the ~/.timewarrior
directory in place and another after deleting the ~/.timewarrior
directory.
~ → timew start test2 :debug
CLI Parser
_original_args
timew start test2 :debug
_args
word basename='timew' raw='timew' BINARY
word canonical='start' raw='start' ORIGINAL CMD
word raw='test2' ORIGINAL FILTER TAG
word canonical=':debug' raw=':debug' ORIGINAL HINT FILTER
>> 2024-05.data: 2 intervals
>> Loaded 0 tracked intervals
>> 2024-05.data: Added inc 20240511T122146Z # test2
Tracking test2
Started 2024-05-11T05:21:46
Current 46
Total 0:00:00
>> Moving '/Users/dakota/.timewarrior/data/2024-05.data.70516-2.tmp' -> '/Users/dakota/.timewarrior/data/2024-05.data'
>> Moving '/Users/dakota/.timewarrior/data/undo.data.70516-3.tmp' -> '/Users/dakota/.timewarrior/data/undo.data'
>> Moving '/Users/dakota/.timewarrior/data/tags.data.70516-4.tmp' -> '/Users/dakota/.timewarrior/data/tags.data'
>> Timer timew 0.023992 sec
And after removing ~/.timewarrior
:
~ → rm -rf ~/.timewarrior
~ → timew start test
Tracking test
Started 2024-05-11T05:22:24
Current 24
Total 0:00:00
~ → timew
There is no active time tracking.
~ → timew start test2 :debug
CLI Parser
_original_args
timew start test2 :debug
_args
word basename='timew' raw='timew' BINARY
word canonical='start' raw='start' ORIGINAL CMD
word raw='test2' ORIGINAL FILTER TAG
word canonical=':debug' raw=':debug' ORIGINAL HINT FILTER
>> Loaded 0 tracked intervals
>> 2024-05.data: 6 intervals
>> 2024-05.data: Added inc 20240511T122239Z # test2
Tracking test2
Started 2024-05-11T05:22:39
Current 39
Total 0:00:00
>> Moving '/Users/dakota/.data/timewarrior/data/2024-05.data.71170-2.tmp' -> '/Users/dakota/.data/timewarrior/data/2024-05.data'
>> Moving '/Users/dakota/.data/timewarrior/data/undo.data.71170-3.tmp' -> '/Users/dakota/.data/timewarrior/data/undo.data'
>> Moving '/Users/dakota/.data/timewarrior/data/tags.data.71170-4.tmp' -> '/Users/dakota/.data/timewarrior/data/tags.data'
>> Timer timew 0.022123 sec
~ → timew
There is no active time tracking.
from timewarrior.
Related Issues (20)
- internal parsing of tags starting with number broken HOT 1
- Bash completion of tags broken since 1.7.0 HOT 9
- Retrieval of intervals with tags containing hyphens is broken HOT 3
- Entries with accentuated characters not showing up in charts
- Assertion `is_open () || end >= start HOT 4
- changed hook to only transfer project name from task warrior to timewarrior. HOT 1
- [Question] How to specify database directory? HOT 2
- 'daily' not allowed as tag HOT 2
- Tags with special characters (e.g. `+`, `-`) do not apply tag coloring for `tags.<Tag>.color`
- Deleting tags.data and undo.data (question)
- using week numbers accounts Sunday through Saturday, not Monday through Sunday
- Add retag command to internal help HOT 2
- Segfaults: Can't modify entry left running overnight/can't continue using ID HOT 3
- Docs for summary and hints do not include the :annotations hint
- Support :annotations hint for timew command
- Timewarrior 1.7.1 Linux built from source no help or man pages HOT 1
- Tag order in CLI arguments is not preserved HOT 3
- Reference ids without at symbol (@)
- Modify both start and end time in same command?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timewarrior.