`cram` (add missing libspec) fails if there are no :requires yet
daveyarwood opened this issue · 0 comments
daveyarwood commented
If I have a bare-bones namespace declaration like:
(ns foo)And I move my cursor over something like str/includes? and type cram, I get an error message: nil
If I add in a :require part of the ns form:
(ns foo
(:require []))and then do the same thing, then it works.
I would guess that this is something to do with not being able to locate the :require part of the ns (because it doesn't exist yet) and not handling that case specially. I think the right behavior there would be to add the :require form for you.