www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - code.dlang.org package search subtly broken?

reply Brian <bcallah openbsd.org> writes:
Hello --

When I go to https://code.dlang.org and use the search function 
on the top right corner, it usually works fine. However, there 
was one package I knew I specifically wanted (png-d) but when I 
typed png-d into the search bar, I was greeted with an error 
page, reproduced at the bottom of this message. I get this error 
whenever a hyphen is in the search query. I have not tested other 
special characters for this error.

Thanks!

~Brian

500 - Internal Server Error

Internal Server Error

Internal error information:
vibe.db.mongo.connection.MongoDriverException ../../vibe.d/mongodb/vibe/db/
ongo/cursor.d(304): Query failed. Does the database exist?
----------------
??:? [0x562f5f97e175]
??:? [0x562f5f9a62b6]
??:? [0x562f5f98912d]
/root/ldc2-1.24.0-linux-x86_64/bin/../import/std/exception.d:517 
[0x562f5f3ee1c5]
/root/ldc2-1.24.0-linux-x86_64/bin/../import/std/exception.d:437 
[0x562f5f3e0625]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/../../vibe.d/mongodb/vibe/d
/mongo/cursor.d:304 [0x562f5f44820d]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/source/app.d:462 
[0x562f5f448cb0]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/source/app.d:322 
[0x562f5f448ad7]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/source/app.d:367 
[0x562f5f470f96]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/../../vibe.d/mongodb/vibe/d
/mongo/cursor.d:233 [0x562f5f447cfd]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/../../vibe.d/mongodb/vibe/
b/mongo/cursor.d:60 [0x562f5f36ba6d]
/root/ldc2-1.24.0-linux-x86_64/bin/../import/std/algorithm/iteration.d:615
[0x562f5f470088]
/root/ldc2-1.24.0-linux-x86_64/bin/../import/std/array.d:140 
[0x562f5f366182]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/source/dubregistr
/dbcontroller.d:333 [0x562f5f31dee0]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/source/dubreg
stry/registry.d:103 [0x562f5f2eba03]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/source/dubregistry/web.d:476
[0x562f5f2eb967]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/../../vibe.d/web
vibe/web/web.d:1043 [0x562f5f39947a]
/mnt/c/Users/soenke/develop/0-dlang/dub-registry/../../vibe.d/we
/vibe/web/web.d:214 [0x562f5f399083]
router.d:218 [0x562f5f7f0024]
router.d:674 [0x562f5f7f2856]
router.d:607 [0x562f5f7efcf6]
router.d:211 [0x562f5f7efaae]
server.d:2292 [0x562f5f7f80cb]
server.d:253 [0x562f5f7f64fe]
server.d:245 [0x562f5f7f5dbd]
server.d:2048 [0x562f5f80047e]
task.d:712 [0x562f5f8ea4b5]
task.d:730 [0x562f5f8e7091]
task.d:439 [0x562f5f8e67db]
??:? [0x562f5f97f5ba]
Mar 27 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 27 March 2021 at 13:48:10 UTC, Brian wrote:
 Hello --

 When I go to https://code.dlang.org and use the search function 
 on the top right corner, it usually works fine. However, there 
 was one package I knew I specifically wanted (png-d) but when I 
 typed png-d into the search bar, I was greeted with an error 
 page, reproduced at the bottom of this message. I get this 
 error whenever a hyphen is in the search query. I have not 
 tested other special characters for this error.

 [...]
Yeah, the search is broken sadly. I made a PR about it some time ago. Partial searches doesn't work
Mar 27 2021
next sibling parent Brian <bcallah openbsd.org> writes:
On Saturday, 27 March 2021 at 14:53:52 UTC, Imperatorn wrote:
 Yeah, the search is broken sadly. I made a PR about it some 
 time ago. Partial searches doesn't work
Good to know. Thank you.
Mar 27 2021
prev sibling parent reply bachmeier <no spam.net> writes:
On Saturday, 27 March 2021 at 14:53:52 UTC, Imperatorn wrote:

 Yeah, the search is broken sadly. I made a PR about it some 
 time ago. Partial searches doesn't work
I don't think it's Dub search that's broken, really, it's that Dub uses MongoDB for searches, as discussed here: https://forum.dlang.org/post/mpeevfwstiymjzasbiui forum.dlang.org There have been complaints about Dub search for as long as I can remember, but for whatever reason it's never been brought up to standards.
Mar 27 2021
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 27 March 2021 at 20:36:08 UTC, bachmeier wrote:
 On Saturday, 27 March 2021 at 14:53:52 UTC, Imperatorn wrote:

 Yeah, the search is broken sadly. I made a PR about it some 
 time ago. Partial searches doesn't work
I don't think it's Dub search that's broken, really, it's that Dub uses MongoDB for searches, as discussed here: https://forum.dlang.org/post/mpeevfwstiymjzasbiui forum.dlang.org There have been complaints about Dub search for as long as I can remember, but for whatever reason it's never been brought up to standards.
I have a fix for it but got stuck at setting up dub-registry. There was some config or credentiall issue or smth. Maybe I can try again next week
Mar 27 2021