-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
0.6.124 has a regression for cljs.test/assert-expr #234
Comments
I'll look into it tomorrow. |
@borkdude Thanks for the fix! I bumped to 0.6.125 and ran into a cryptic Could not resolve symbol: G__107. I was able to work around this by changing the |
@logseq-cldwalker The issue is this: SCI needs to pass the context to this multimethod since the context is used here: And there is a special field in a SCI var which indicates that the interpreter should pass the context as the first argument when it's called. This should be invisible to the code. But I didn't realize that when you implement this multi-method, that the user does in fact has to provide the corresponding arity. The automatic context passing might not work so good here. Another alternative might be to let sci.configs or sci itself have the idea of a global context (atom or so) so that libraries like sci.configs can use that instead. |
The previous issue also resulted from this: since the context needed to be passed, the multimethod was wrapped with |
So perhaps |
I'm ok with whatever you solution you'd prefer. Agree that the more compatible the end solution is with clj/cljs the better.
I'm guessing this is a sci user in which case the nbb experience is indeed better |
Yes, indeed, it's a SCI config thing, not something the script writer would see. |
Will take a stab at this tomorrow. |
Confirmed this works as intended on nbb-features - https://github.com/babashka/nbb-features/runs/7344301638?check_suite_focus=true . Thanks! |
Hey @borkdude. Noticed this regression while looking to bump nbb-logseq to latest nbb
version
0.6.124
platform
osx 12.0.1 and node 16.13.1
problem
When bumping nbb-features to latest nbb, CI fails on this line with exception
Message: No protocol method IMultiFn.-add-method defined for type function:
repro
expected behavior
I expected nbb-feature tests to run like they did for nbb 0.5.103
The text was updated successfully, but these errors were encountered: