Fork me on GitHub
#figwheel-main
<
2023-02-21
>
Tom Fenton16:02:33

Hi all! I’ve just (sort-of) managed to get my own server running alongside the figwheel-main repl. Where I’m still struggling is that my cljs (re)compiles perfectly when I run figwheel-main, but as soon as I start my web server in a different process (aleph using secure-site ring-defaults), I get what looks like a resource locking issue. I get that aleph might lock the js files in resources/public, but how can I work around that? Or have I got my setup fundamentally wrong somehow?

dominicm16:02:30

What do you mean it “locks” it?

dominicm16:02:36

I don’t think that’s a thing.

Tom Fenton16:02:06

The error I receive is: java.io.FileNotFoundException: resources\public\public\cljs-out\dev\web_demo\cljs\app.js (The requested operation cannot be performed on a file with a user-mapped section open) Which I would associate with the file being locked by another process. As you can see in the attached, I have multiple successful compiles before and after starting my REPL, but as soon as I start the aleph server, I get the above.