Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.
This repository was archived by the owner on May 18, 2024. It is now read-only.

Error when autocompleting a record in a namespace with a hyphen. #36

@collinalexbell

Description

@collinalexbell

I know this is a very specific error reproduction, but I know why it is happening.

First, I can haz you reproduce it.

Start a new Lein project

Save the following to ./src/dameon/visual_cortex/derp.clj

(ns dameon.visual-cortex.derp)

(defrecord HerpDerp [Lerp])

C-c C-l to load derp.clj

Then go back into the buffer and type

(Herp

You will get a Cider Middleware Error

Here is what is happening:
Go to the defrecord line and compile in place using C-c C-c
You will see that dameon.visual_cortex.derp appears. Notice the underscore and not the hyphen.

Clojure converts all _ to -, but apparently not for records since they are Java classes.

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