Giter VIP home page Giter VIP logo

Comments (4)

lauft avatar lauft commented on August 24, 2024

@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.

dakotak avatar dakotak commented on August 24, 2024

@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.

lauft avatar lauft commented on August 24, 2024

@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.

dakotak avatar dakotak commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.