You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symptom paredit/slurp-forward-fully throws when slurping into an empty seq that is the last item within a seq
Reproduction
(defzloc (->"[[1 []] 3 4]"
z/of-string
z/down
z/down
z/rightmost))
;; double-check we are where we think we are
(z/string zloc)
;; => "[]"
(-> zloc
pe/slurp-forward-fully
z/root-string)
Actual behavior
;; => Execution error (NullPointerException) at rewrite-clj.paredit/slurp-forward-fully (paredit.cljc:265).;; Cannot invoke "Object.getClass()" because "x" is null
Expected behavior
[[1 [34]]]
(and we should be located at node 3)
Diagnosis
Working on it.
Action
Working on it.
The text was updated successfully, but these errors were encountered:
Because of #256, slurp fns had to be rewritten. During rewriting:
- address design flaw by deprecating existing `slurp` fns and adding
replacement `slurp-`*`-into` fns (closes#339)
- stop adding space char when preserving slurped newlines (closes#345)
- review ambiguous `-slurp-`*-`fully` fn behaviour (closes#341)
- when slurping, don't consider a node with `#_` uneval nodes
empty (closes#338)
- don't throw on rewrite-clj parseable but invalid clojure
`{:a}` (closes#336)
- slurping forward fully no longer throws when slurping into an empty
seq that is last item in a seq (closes#335)
- slurping backward at empty-seq at start of seq no longer
throws (closes#334)
- slurp forward now slurps when at empty-seq at end of seq (closes#333)
Version
1.1.49
Platform
All
Symptom
paredit/slurp-forward-fully
throws when slurping into an empty seq that is the last item within a seqReproduction
Actual behavior
Expected behavior
(and we should be located at node
3
)Diagnosis
Working on it.
Action
Working on it.
The text was updated successfully, but these errors were encountered: