category builder not working

Open
#1,389 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

The issue mentions 'aw-watcher-window_unknown' bucket and category builder UI not loading. Start by checking the watcher logs for hostname 'unknown' and see how buckets are created. Look at the category builder code to understand how it fetches 'Common words' from uncategorized events. The fix likely involves handling missing hostname or bucket matching logic.

Written by the indexing model from the issue text.

Description

type: bug
  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: 26.5.2 (25F84) MacOS Tahoe
  • ActivityWatch version: v0.13.2

Describe the bug

2 parts to my issue which might be linked but I'm unsure.

(1) I'm getting the error: "Unable to find bucket matching 'aw-watcher-window_unknown' (hostname filter set to 'None')" randomly appear at the top of my activity feed whenever I click on filtering the reports etc.

(2) I'm getting 'High uncategorized time' as a warning telling me to go to the category builder. However when I visit the page I'm getting "Common words in "Uncategorized" events" come back as 'Loading' and it never loads.

I did see a similar issue a couple of years back when I checked, my hostname is 'unknown' but I couldn't seem to figure out if that was part of the problem.

Expected behavior

The unknown category to load and for me to be able to classify it. Image

Documentation

Additional context

Dominant language
Python
Stars
19.7k
Forks
1.1k
Avg merge
2d 19h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/activitywatch

All issues in ActivityWatch/activitywatch

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.