nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
Gleb Posobin 2020-11-13T16:46:29.052500Z

ns-path behaves differently for clj and cljs.

cljs: (cider-nrepl-send-sync-request `("op" "ns-path" "ns" "ampie-frontend.events.user")) -> (dict "status" ("done") "id" "1009" "path" "ampie_frontend/events/user.cljs" "session" "1aa9e7df-efad-453e-968c-6c32fc32d531")

clj: (cider-nrepl-send-sync-request `("op" "ns-path" "ns" "ampie-backend.users")) -> (dict "status" ("done") "id" "443" "path" "file:/Users/posobin/2020/dev/ampie-backend/src/ampie_backend/users.clj" "session" "0a41d39a-4235-4b7e-9e01-5a83809bd891")

Gleb Posobin 2020-11-13T16:48:52.054200Z

The file path for cljs is relative to classpath looks like. Is there a way to fix this? Because of that cider's cider-find-ns doesn't work correctly on my cljs project, it switches to a wrong buffer, which is also called user.cljs , but in a different directory.

Gleb Posobin 2020-11-13T16:51:34.054600Z

Should I file this as a bug to nrepl?