noir-clojure/noir

Compilation sometimes fails with "File name too long"

Opened this issue · 0 comments

When using this defpage:

(defpage [:post ["/store/:uid/:apikey/items" :uid #"\d+" :apikey #"[a-z0-9]+"]] {:keys [uid apikey payload]}

I get a file named

store$POST_LBRACK__DOUBLEQUOTE___store___GT_uid___GT_apikey__items_DOUBLEQUOTE_ _GT_uid SHARP__DOUBLEQUOTE__BSLASH_d_PLUS__DOUBLEQUOTE _GT_apikey SHARP__DOUBLEQUOTE__LBRACK_a_z0_9_RBRACK__PLUS__DOUBLEQUOTE__RBRACK.class

and the error:
Exception in thread "main" java.io.IOException: File name too long, compiling:(xyz/views/store.clj:46)

I could reproduce this 2-3x then I gave the route a name and after lein clean it worked again...