Closed philipmw closed 7 months ago
Github doesn't support XML files, but here it is with the TXT extension.
May have sth to do with https://github.com/kit-clj/kit/pull/130 I also observed the above error when I manually applied the changes in my current project, but I assumed I did sth wrong and didn't think more about it.
@markokocic?
-Tobias
ons 21 feb. 2024 kl. 04:21 skrev Philip White @.***>:
Github doesn't support XML files, but here it is with the TXT extension.
pom.xml.txt https://github.com/kit-clj/kit/files/14353619/pom.xml.txt
— Reply to this email directly, view it on GitHub https://github.com/kit-clj/kit/issues/133#issuecomment-1955806327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADU5TG7MASEG2XLP74RVLYUVR4VAVCNFSM6AAAAABDSIXVQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVHAYDMMZSG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
You are right, I pushed a fix to git.
@yogthos , we may need a new release.
@philipmw In the meantime, you can fix the issue by redefining :router/core in handler.clj
with the following code:
(defmethod ig/init-key :router/core
[_ {:keys [routes env] :as opts}]
(if (= env :dev)
#(ring/router ["" opts routes])
(constantly (ring/router ["" opts routes]))))
Ah ok makes sense, just ping me when you've got a pr up and I can push a release out then.
I already committed the fix directly to master 1249b3f3e4a9f8c0f28ee5c754edff6b5fb795f0
Awesome, just pushed out a new template with a fix.
Thanks -- making the suggested fix manually to my existing app solved the problem.
Does Kit support merging updates to templates into existing apps?
No. Once the app is generated from the template, only manual changes are possible.
I am following the Guestbook tutorial.
I create the app:
I package it:
I start it:
I make a request:
In the JRE, I see this exception:
However, it works fine when started using
(go)
in the REPL.I will try to attach
target/classes/META-INF/maven/kit/guestbook/pom.xml
.