Skip to content
This repository has been 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

Open
collinalexbell opened this issue Aug 18, 2016 · 2 comments
Open

Comments

@collinalexbell
Copy link

collinalexbell commented Aug 18, 2016

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.

@collinalexbell
Copy link
Author

I can't tell if this is an error with cider itself. I think it might be.

@MalloZup
Copy link

MalloZup commented Aug 5, 2019

autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants