-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add try/catch when reading EDN data #256
Conversation
Ignores unreadable entities.
A test would be nice I think. Please also add a one liner to the changelog. Thanks again, really appreciated. |
Moved the "reading" to a separate function and wrote a minimal test for verifying that. Let me know if you'd like to restructure things differently. |
good work @andersenleo! will release a new snapshot in the evening. |
@expez - the |
Thanks @andersenleo I eventually got that and deleted my comment hoping nobody would've seen it! :p Great job on this! 👍 |
new snapshot version is on clojars |
Lovely - it seems to work. I'm no Emacs expert, but adding (setq cider-jack-in-lein-plugins '(("refactor-nrepl" "2.4.1-SNAPSHOT" :predicate cljr--inject-middleware-p)
("cider/cider-nrepl" "0.22.0-beta1")))
works fine. Should be an easier way to override the refactor-nrepl version I guess? Suggestions are welcome :). Any idea when a "proper" release could be made available? |
looks legit to me. no release is planned atm. nothing blocking one either afaik |
Fixes #255
Since the
artifacts/get-clojars-artifacts!
function is written in a way that isn't easily testable I opted out on tests. I would need to refactor the code a bit more to make it possible to write a test for this. Let me know if you'd like me to do that.The fix is simply to use
keep
instead ofmap
- and swallow any exception onedn/read-string
.