Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow direct cljs nREPL connections #420

Open
chr15m opened this issue Sep 20, 2024 · 0 comments
Open

Allow direct cljs nREPL connections #420

chr15m opened this issue Sep 20, 2024 · 0 comments

Comments

@chr15m
Copy link

chr15m commented Sep 20, 2024

First, thank you so much for Fireplace and your years of work on Vim plugins! 🙏

There are now runtime environments that are pure ClojureScript running on e.g. Node and they have no Clojure/JVM or Piggieback in sight. For example nbb is cljs on Node and provides a basic nREPL (there are others). Some other nREPL clients are able to connect to and use this as documented in that link. Not all features are supported but you can at least send code and have it run.

To stand up an nbb nREPL:

mkdir nbb-nrepl-test; cd nbb-nrepl-test
echo {} > package.json
npm i nbb
npx nbb nrepl-server :port 1337

In Fireplace after running gvim test.cljs I can connect to this with :Connect 127.0.0.1:1337 and I can do :CljEval and it works, as I guess Fireplace assumes it's a regular Clojure nREPL. However when I do cqq on a form I get:

Fireplace: no default ClojureScript REPL

Is there a way for me to tell Fireplace that the current REPL connection it has open is already a ClojureScript REPL? If not, any tips or pointers for adding thise so I can raise a PR are much appreciated! Many thanks!

Updated to add: here is a thread where they work out the same issue in CIDER on Emacs: clojure-emacs/cider#3061

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant