ring-clojure / ring

Clojure HTTP server abstraction
MIT License
3.75k stars 519 forks source link

Multipart params fails on `require` #445

Closed inaimathi closed 2 years ago

inaimathi commented 3 years ago

I'm trying to use the multipart-params middleware. I've included [ring "1.9.4"] in my project.clj. When I require the relevant module, I get an error.

project.core> (require '[ring.middleware.multipart-params :as mp])
CompilerException java.lang.RuntimeException: No such var: parsing/find-content-type-charset, compiling:(ring/middleware/multipart_params.clj:60:3) 

Pulling in util.parsing directly confirms that there is, in fact, no such var.

project.core> (require '[ring.util.parsing :as parsing])
nil
project.core> parsing/re-TABTAB
---------------------------------------------
Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
parsing/re-quoted <v>
parsing/re-token <v>
parsing/re-value <v>

Am I importing something improperly here, or is there a deeper issue?

weavejester commented 3 years ago

This looks like a dependency or class compilation issue. Try running lein clean first, then trying again. It might be an old class file that's causing an issue. If the problem persists, try running lein deps :tree and looking for dependency conflicts.