flow-storm / flow-storm-debugger

A debugger for Clojure and ClojureScript with some unique features.
The Unlicense
708 stars 32 forks source link

automatic namespace reload IDEA issue #185

Closed velios closed 2 weeks ago

velios commented 4 months ago

Hi and thank you for amazing tool.

Use the same pedestal repo as in #184

I stop system -> load from Browser io.pedestal.interceptor.chain. -> hit Apply -> all reload -> load from Browser hello. -> hit Apply (messages with failures here) -> start system

The functionality works fine, events are also instrumented. I don’t know what these errors affected, I didn’t notice anything. But I decided to provide information.

Unloading hello
Unloading io.pedestal.http
Unloading io.pedestal.http.ring-middlewares
Unloading io.pedestal.http.impl.servlet-interceptor
Unloading io.pedestal.http.tracing
Unloading io.pedestal.http.route
Unloading io.pedestal.interceptor.chain
Unloading io.pedestal.interceptor.chain.debug
Loading io.pedestal.interceptor.chain.debug
Loading io.pedestal.interceptor.chain
Loading io.pedestal.http.route
Loading io.pedestal.http.tracing
Loading io.pedestal.http.impl.servlet-interceptor
Loading io.pedestal.http.ring-middlewares
Loading io.pedestal.http
Loading hello
Failed to read /Users/velios/Library/Application Support/JetBrains/IntelliJIdea2023.3/plugins/clojure-plugin/lib/runtime.jar!/cursive.clj ignoring...
Failed to read file:/Users/velios/.m2/repository/ring/ring-codec/1.2.0/ring-codec-1.2.0.jar!/ring/util/codec.clj java.lang.RuntimeException: EvalReader not allowed when *read-eval* is false.
Failed to read /Users/velios/Library/Application Support/JetBrains/IntelliJIdea2023.3/plugins/clojure-plugin/lib/runtime.jar!/cursive/repl/runtime/class.clj ignoring...
Failed to read /Users/velios/Library/Application Support/JetBrains/IntelliJIdea2023.3/plugins/clojure-plugin/lib/runtime.jar!/cursive/repl/runtime.clj ignoring...
Unloading hello
Loading hello
jpmonettas commented 2 weeks ago

Hi @velios, sorry for the late reply, for some reason I missed this. I'll take a look!

jpmonettas commented 2 weeks ago

This doesn't seams to be happening anymore with the current version of FlowStorm (4.0.0).

Now I see this :

user=> Unloading hello
Unloading io.pedestal.http
Unloading io.pedestal.http.ring-middlewares
Unloading io.pedestal.http.impl.servlet-interceptor
Unloading io.pedestal.http.tracing
Unloading io.pedestal.http.route
Unloading io.pedestal.interceptor.chain
Unloading io.pedestal.interceptor.chain.debug
Loading io.pedestal.interceptor.chain.debug
Loading io.pedestal.interceptor.chain
Loading io.pedestal.http.route
Loading io.pedestal.http.tracing
Loading io.pedestal.http.impl.servlet-interceptor
Loading io.pedestal.http.ring-middlewares
Loading io.pedestal.http
Loading hello
Unloading hello
Loading hello

Please re-open if you are still experiencing issues