nb icon indicating copy to clipboard operation
nb copied to clipboard

New bookmarks always marked as duplicates when adding

Open axelav opened this issue 3 years ago • 6 comments

When I add any new bookmark to nb, I receive this warning and have to confirm that it is not a duplicate: <n> bookmarks for this URL exist in this folder (screenshot below). I'm a new user of nb with a very basic configuration. I have gone through the documentation fairly closely, believe I am using the tool as intended, and have not found any settings that would cause this to happen or similar bug reports :( so am not sure why this happens.

I'm happy to provide any other details about my setup/config if that's helpful.

image

axelav avatar Oct 18 '22 13:10 axelav

Hi @axelav, thanks for the report. Can you share the output of the following command?

uname -a; bash --version; grep --version; rg --version

xwmx avatar Oct 18 '22 22:10 xwmx

Sure thing @xwmx - here's what that spits out:

Darwin Axels-iMac 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64 arm Darwin
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
ripgrep 13.0.0
-SIMD -AVX (compiled)

Thank you for having a look at this issue :)

axelav avatar Oct 19 '22 11:10 axelav

Hi @axelav, so far I've been unable to reproduce the issue. I don't have an M1 mac, so that might be a factor. The Bash version being used is 3.2 which comes with macOS, while the current version is Bash 5, and that might also be a factor. It works on Bash 3.2 on my intel mac, but maybe there's a difference on the M1 macs.

I recommend trying to update Bash and see whether it works. If you have homebrew, you can update Bash with brew install bash. If you can, please let me know whether updating Bash resolves the issue.

xwmx avatar Oct 23 '22 21:10 xwmx

Another update: I had someone try it on Apple Silicon with Bash 3.2 and none of the recommended dependencies, and it worked normally for the couple bookmarks they tried.

I looked at the code and don't see anything that seems like it could be causing it yet. I still recommend updating Bash with brew install bash and seeing whether that helps at all. I'll look into this further.

xwmx avatar Oct 25 '22 03:10 xwmx

Thanks @xwmx. I did try installing bash 5.2 but it didn't change anything. I'll take a look through the dependencies and possibly try a clean install on my machine as well. It sounds like something specific to my set up, but again thank you for taking the time to look at this.

axelav avatar Oct 25 '22 23:10 axelav

@axelav Let me know if you find out anything. I'll keep thinking about this.

xwmx avatar Oct 25 '22 23:10 xwmx