Closed niwinz closed 1 year ago
For the refresh
- it loads also malli.app2
which is meant to be a standalone app (swapping the default registry), not a test. If you exclude the app
folder from refresh, it should work. The repl helpers most welcome!
see https://github.com/niwinz/malli/compare/niwinz-uuid-schema...metosin:malli:niwinz-uuid-schema
to watch tests from command-line, there is
./bin/kaocha --watch
Regression tests added. Thanks for the hint of the malli.app2, now the issue is fixed.
I'm aware of kaocha --watch
but I prefer just start a cli REPL and run the rests executing the function that reloads and runs the concrete test case or a namespace when I want, not when the file changes.
Then, I have added the dev/user.clj
and bin/repl
on the second commit, feel free to do whatever you want, merge it or discard (just tell me if you don't want the commit and I will remove it from the PR)
like the bin/repl
and thanks for the UUID fix!
I will check this and make a new pr for fixing that.
El dom., 26 mar. 2023 0:24, 胡雨軒 Петр @.***> escribió:
@.**** commented on this pull request.
In src/malli/transform.cljc https://github.com/metosin/malli/pull/869#discussion_r1148448120:
@@ -89,15 +89,15 @@ :else x) x))
+(def ^:private uuid-re
"^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$")
@.*** https://github.com/ikitommi kind poke 👋, not sure this comment is visible as this PR is merged)
— Reply to this email directly, view it on GitHub https://github.com/metosin/malli/pull/869#discussion_r1148448120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGN7KIRXAHK6DFAHWYYVNDW555CTANCNFSM6AAAAAAV2HL24Q . You are receiving this because you authored the thread.Message ID: @.***>
This commit fixes the https://github.com/metosin/malli/issues/867 issue. It normalizes all to an uuid regex check and then a simple platform dependent UUID object creation.
Additional:
I used to use a rebel repl + tools.namespaces + user ns for experimenting and running tests and tried to add this workflow locally (don't pretend this merged on malli. But I found that I'm unable to start repl because I constantly get exceptions on refreshing the namespaces.
Example:
I'm pretty sure that I missed something but I don't understand exactly the cause of the exception. I added all the necessary code to an additional commit that I will delete before merge, but can you please help me understand what is happening?
I don't add nothing special, just tools.namespace and call (clojure.tools.namespace.repl/refresh), the same happens if I start plain clojure repl with
clj -M:shadow:rebel:test -r