Skip to content

cram (add missing libspec) fails if there are no :requires yet #28

Open
@daveyarwood

Description

@daveyarwood

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions