-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Possible bug: Is deleting all history entries supposed to delete everything in the local history file? #1481
Comments
The thing is, we don't modify the file until we need to, and this is done asynchronously (which means that it happens when you don't necessarily expect it to, and is invisible to you). To get the fresh version of history, always refer to the Nyxt-stored one, e.g., via (with-data-unsafe (history (history-path (current-buffer)))
(htree:do-tree (node history)
(when (> (nyxt::explicit-visits (htree:data node)) 5)
(bookmark-url :url (url (htree:data node)))))) Even though this seems to load history from a file, this semblance is misleading: it just uses file name as an identifier for Nyxt-internal data. Long story short, always use Nyxt-internal data (with |
Thanks @aartaka, I tried again and the history file shows that websites accessed before the deletetion process were indeed removed! When I tried this a few days ago, I even re-started my computer to check it because I thought there could be some asynchronous process going on. Even after the computer re-start, I could still see websites supposed to be deleted there. After the re-start, I think I checked the history file while Nyxt was closed. But I am not sure. However, as I said, the deleted websites are gone on the history file. How should I proceed after interactions like this happen? Should I close the issue? Should I await for you to close? Is this the most appropriate place for questions like this one? Sometimes I am not sure between choosing discourse or github. |
Well, that is bug. I believe that #1492 will resolve that.
If it's resolved — close it. We usually don't close issues for someone, because the person might still have some unresolved details or questions related to the issue.
Questions about expected behavior and inconsistencies with it are for GitHub, because these are potential bugs. The rule I'd stick to is:
|
I'm not sure I understand the issue completely. #1492 only fixes the potential file corruptions. If the history loads fine but entries are missing (or still there while they should not), then this is not related to #1492. |
It may be related, because serialization stops on browser shutdown. This can lead to a non-fresh file info. But yes, it can actually be a different thing. I'll reopen the issue, just in case. |
Hi guys, I came across this again accidentally as I was doing some tests for issue #1310. I think there is indeed a bug. I will report it here instead of creating a new issue. Describe the bug After deleting all history entries with I cannot delete the following websites: Even after trying to delete everything, after pressing Some of them are in my bookmarklists. They entered there because I was doing experiments for #1310. However, I must highlight that is not exactly the same thing. The websites that persis across deletion are not all the URLs bookmarked. Some of my bookmarks were added via commands in the REPL (not with the Nyxt's GUI). If you wanna have a look, this is my current local bookmark list file. Precise recipe to reproduce the issue
OS name+version: Graphics card and driver: Desktop environment / Window manager name+version: How you installed Nyxt (Guix pack, package manager, build from source): Information from command copy-system-information: ASDF version: 3.3.1 Quicklisp dist version: 2021-05-31 Output when started from a shell I do not start Nyxt from a shell. I start it inside the SLIME REPL with:
|
Can you reproduce on master?
|
Hi Pierre,
Few minutes ago, I deleted everything with I have just reproduced it running from source under version:
These are the logs:
|
So, it should be fixed with |
I initially couldn't reproduce, so my guess is that it was a race condition in @pdelfino Can you reproduce? |
Stale. |
I think there might be a genuine bug here! :) |
Hi,
I am able to succesfully delete the history in Nyxt with
execute-command
+delete-history-entry
+alt-a
(select all) +enter
.After doing this there is nothing showed as history in Nyxt's GUI. However, I can find everything in a local
.lisp
file at:/home/pedro/.local/share/nyxt/history/default.lisp
I am not sure if this is intentional. It might be a bug.
I thought that after deleting on the GUI there would be some sort of "list surgery" and mutation on the history file with the disappearance of the deleted elements.
I came across this after trying to build a humble and local prototype for this "good-first issue" feature.
The process of deleting stuff was done with two version's of Nyxt's GUI. The last stable version offered for download (version-2-pre-release-7) and the current master version 2.0.0-20g664d8953.
The details of my set-up (OS, graphic drivers and et cetera) were provided here.
The text was updated successfully, but these errors were encountered: