Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cljfmt config issue #20

Open
ikappaki opened this issue Apr 4, 2024 · 0 comments · May be fixed by #21
Open

cljfmt config issue #20

ikappaki opened this issue Apr 4, 2024 · 0 comments · May be fixed by #21

Comments

@ikappaki
Copy link

ikappaki commented Apr 4, 2024

Hi,

the current .cljfmt.edn configuration causes clfmt tool to fail
Exception in thread "main" java.lang.RuntimeException: No dispatch macro for: "

This has a knock on effect on clojure-lsp which fails to format regions in, at least, Emacs returning an Internal Error msg.

To reproduce

  1. Simply install and run cljfmt in the starter app
c:/src/electric-starter-app $ cljfmt.exe 
Exception in thread "main" java.lang.RuntimeException: No dispatch macro for: "
	at clojure.lang.Util.runtimeException(Util.java:221)
	at clojure.lang.EdnReader$DispatchReader.invoke(EdnReader.java:552)
	at clojure.lang.EdnReader.readDelimitedList(EdnReader.java:757)
	at clojure.lang.EdnReader$MapReader.invoke(EdnReader.java:680)
	at clojure.lang.EdnReader.read(EdnReader.java:145)
	at clojure.lang.EdnReader$MetaReader.invoke(EdnReader.java:576)
	at clojure.lang.EdnReader.readDelimitedList(EdnReader.java:757)
	at clojure.lang.EdnReader$MapReader.invoke(EdnReader.java:680)
	at clojure.lang.EdnReader.read(EdnReader.java:145)
	at clojure.lang.EdnReader.read(EdnReader.java:111)
	at clojure.lang.EdnReader.readString(EdnReader.java:67)
	at clojure.edn$read_string.invokeStatic(edn.clj:46)
	at cljfmt.config$read_config.invokeStatic(config.clj:23)
	at cljfmt.config$load_config.invokeStatic(config.clj:71)
	at cljfmt.main$_main.invokeStatic(main.clj:93)
	at cljfmt.main$_main.doInvoke(main.clj:93)
	at clojure.lang.RestFn.invoke(RestFn.java:397)
	at clojure.lang.AFn.applyToHelper(AFn.java:152)
	at clojure.lang.RestFn.applyTo(RestFn.java:132)
	at cljfmt.main.main(Unknown Source)

PR to follow

@ikappaki ikappaki linked a pull request Apr 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant