-
-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: e.slice().map is not a function error after updating to version 0.13 #1067
Comments
Hi there! |
Doesn't work in Brave on macOS either. TypeError: e.slice(...).map is not a function. See dev console (F12) and/or server logs for more info. |
Warning Important to note is that "Clearing cookies" also clears your categorization settings. Clearing your cookies for localhost seems to fix this. |
I would assume that it's a problem with the migration to the server-side settings |
Seems the issue is here: https://github.com/ActivityWatch/aw-webui/blob/05c25c98b172fcb72e2ae7cbf40be6bc77526c65/src/util/classes.ts#L109 The exact line and surrounding chunk hasn't changed in 3+ years, so it's probably an issue where Clearly something went wrong in the migration to server-side settings. I'd love to figure this out ASAP so I can ship a new patch release soon! |
It seems like my categories were wiped out after I cleared the cookies. Not a big deal though because my rules weren't that sophisticated anyway. I'm not sure what could be causing the issue with |
Yo can save you rules before clean your cookies. Go to:
From the bottom part of the screen where you can see the rules (sorry I've already deleted my cookies), right click, then select copy object, then use your clipboard to fill the categories array: {
"categories": [
{
"name": [
"Work"
],
"rule": {
"type": "regex",
"regex": "Google Docs|libreoffice|ReText"
},
"data": {
"color": "#0F0"
},
"id": 0
},
{
"name": [
"Work",
"Programming"
],
"rule": {
"type": "regex",
"regex": "GitHub|Stack Overflow|BitBucket|Gitlab|vim|Spyder|kate|Ghidra|Scite"
},
"id": 1
}
]
} Hope it helps someone that has lost access to settings page due to vue errors as it happened to me. |
I really wonder how many users will face this issue when upgrading... @avi-cenna I edited in a warning in #1067 (comment) so people will hopefully realize. Any proper solution would include correctly parsing the localStorage settings and migrating them to the server without any action by the user. I realized the " Analysis: The issue was probably introduced in ActivityWatch/aw-webui@1131f9b When parsing we assume settings keys with a But when writing we serialize all objects as JSON, so this may have been a bad assumption: https://github.com/ActivityWatch/aw-webui/blame/05c25c98b172fcb72e2ae7cbf40be6bc77526c65/src/stores/settings.ts#L183 This worked before the commit, since |
Thanks for the fast response and analyze. It didn't even think to check the local storage. I was able to restore my categories and the problem with manually exporting the categories from local storage and reimported via get UI. Which likes it is working so far. I adapted the export to be similar to the JSON generated by the export function. For me the problem is fixed. @ErikBjare should I close this issue or would like to keep it open for other users? |
Lets keep the issue open until I've had time to merge a fix. |
@ErikBjare just wanted to say thanks for developing this application. In recent weeks, I've been experimenting with several time-tracking services, such as RescueTime and ManicTime, and I have found ActivityWatch to be both the most user-friendly and the most powerful, due to the RegEx pattern matching. |
I think I have a fix in ActivityWatch/aw-webui#583, but I would appreciate a review/test from someone. |
Manually verified, everything works perfectly :) |
Describe the bug
Since the new version (updated from 0.12.2 to 0.13) the WebUI does not work in Firefox anymore. There is an error
Opening the WebUI and everything is fine.
To Reproduce
Updating
While updating I found that you provide a deb package. I used the generic Linux zip file and started the binary from their.
I installed the deb file and started the application new from the
/opt/activitywatch/aw-qt
instead of$HOME/.local/bin/activitywatch/aw-qt
Expected behavior
Documentation
I added some screenshots above, I hope this is fine.
Additional context
Maybe another bug or mistake I made, but I enable since the update and/or enable the rust server my categorization is gone. I don't think this i related to the firefox bug.
The text was updated successfully, but these errors were encountered: