cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
frederic 2020-11-01T18:48:38.345Z

Hi, silly question: I have a deps.edn project with a directory structure where the foo namespace would be in the src/main/foo/bar.clj file. But when I create that file in Cider, it adds a (ns main.foo.bar) namespace declaration instead. Is there some configuration I can tweak so that it generates a (ns foo.bar) form instead?

frederic 2020-11-02T10:13:55.348300Z

Oh, that would explain why I didn't find anything in the cider docs 😅 Thank you!

practicalli-john 2020-11-01T20:15:28.345100Z

It seems unusual to have a directory under src that is not part of the namespace. I would remove the main directory if its not part of the namespace and problem solved.

practicalli-john 2020-11-01T20:16:58.345300Z

Otherwise, if you keep main directory, I assume you have had to set :paths ["src/main"] configuration in the project deps.edn file to make the code run with a namespace without main (otherwise I assume it will fail if run on the command line or as a jar)

frederic 2020-11-01T22:55:01.345700Z

I agree that it's unusual.

frederic 2020-11-01T22:55:44.345900Z

:paths is already set to ["src/main"] , and the code runs fine

frederic 2020-11-01T22:58:00.346100Z

I'm just trying to find out if there is a way to make Cider work a little better with the existing code base