简体   繁体   中英

Compojure Ring Server Generated By 'lein ring server' Acting Oddly

So I was coding and I got an exception. I fixed the exception and then went back to check that things were working. Instead of seeing my fixes I instead saw the website that was generated prior to the exception having been thrown. Like my previous code had been cached and now it was being used. I double checked this intuition by commenting everything out and trying to put in a string instead of the web page and this still resulted in no changes to my site. So I went ahead and tried restarting the server. This didn't fix things. So then I tried running lein clean. This didn't fix things either. What the hell is going on here and how do I fix it?

I'm pretty sure my code is irrelevant, because I'm getting the same problem no matter what code I use. For those that are wondering the initial exception was that the function clojure.string/replace was already being used at clojure.core/replace or in other words I had a naming conflict. I resolved this by (:require [clojure.string :as string]).

Hmm, so I ended up restarting my computer and the problem was solved. The actual reason I had this problem I'm not so sure of.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM