-
Notifications
You must be signed in to change notification settings - Fork 5
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
Makes it compile with nim 2.1.99 #fixes #36 #37
base: master
Are you sure you want to change the base?
Conversation
Tried running this with ~/anonimongo/tests/utils_test.nim(78, 34) template/generic instantiation of `newMongo` from here
~/anonimongo/src/anonimongo/core/types.nim(306, 17) Error: ambiguous identifier: 'Uri' -- use one of the following:
uri.Uri: Uri
QKind.URI: QKind I think it's because the |
Yes. Thats why I moved it to the top in one of the changes. I missed that one because I couldnt get the test to work in local and it seems that the error you are seeing didnt trigger by my use case |
It's solved by adjusting to Also, at very least you should run In case you want to test for most of db commands, you can set your |
I will test soon, what is the status, was the |
No, not yet. |
I'm testing these changes... they seem to work fine on some of my applications. I'm still debugging other issues and going really slow, but these changes appear to work fine so far. Has anyone else done any testing for this branch? Update when running testing: /home/testing/shared/anonimongo/tests/test_bson_test.nim(24, 27) Error: type mismatch
Expression: newbson([("hello", toBson(100)), ("array world", bsonArray(["red", 50, 4.2])),
("hello world", toBson(isekai))])
[1] [("hello", toBson(100)), ("array world", bsonArray(["red", 50, 4.2])),
("hello world", toBson(isekai))]: array[0..2, (string, BsonBase)]
Expected one of (first mismatch at [position]):
[1] proc newBson(first: (string, BsonBase); table: varargs[(string, BsonBase)]): BsonDocument
[1] proc newBson(table = newOrderedTable[string, BsonBase]();
stream: Streamable = newStream(); filename = ""): BsonDocument
Tip: 55 messages have been suppressed, use --verbose to show them.
tools.nim(36) doCmd
Error: Execution failed with exit code 1 which I managed to change by explicitly adding table = newOrderedTable([...]) there are other issues I'm still testing, specifically regarding the |
Update: I've been trying to run the tests. there are multiple errors in the test_bson_test.nim. Times and Ints seem to be the major issue... we may need to go through all of these issues to test the macros. |
No description provided.