-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fireplace has problems with the Babashka nREPL #401
Comments
Guessing from the error message it's this line: vim-fireplace/autoload/fireplace.vim Line 1366 in 2e4540d
You could try putting |
Here's what happens:
Here's what I did, and wanted to show it just in case I misunderstood:
|
Oh it must have function keys, try |
Woooo! That did it! I hope you can make sense of this :)
|
The important part is up front:
It's giving up waiting on a response before receiving a single message. I'm not sure why this would happen. Perhaps it could be a consequence of the connection terminating unexpectedly. You can check for that by looking for a running |
I see the python process both before and after the error, retaining the same PID. I'm fairly sure I have the right one because I see the nrepl port on the command line. And just FYI I did a bundle update yesterday just to be sure I was up to date. |
Absent a better idea:
|
One other thing you could try is delete the
|
My setup has been working with lein and clj. I tried removing the catch, but it didn't show anything new. I'll try neovim next, but will need to learn how to set it up first. "Jan K" from the Clojurians slack has the same problem, but noted that adding |
I don't know much about babashka. It wouldn't surprise me if some high level functionality like |
I had this issue, but it's disappeared! My steps as best I can remember them:
After that my memory gets blurry but I tried putting the try/catch back - still works. Tried |
Ran into this today, some notes from my explorations: Some of the previous suggestions in this thread may have "worked" because they were inadvertently evaluating in the When running It may not seem like Evaluating Informal babashka scripts often skip many Clojure formalities (ex. namespace declarations, namespace-file locations), breaking For informal babashka scripts, instead of For more formal babashka scripts (as recommended by Babashka docs):
|
This all tracks. Skipping |
I appear to be having the same issue with Babashka. I have 2 namespaces that I'm working with. We'll call them The behaviour of this seems to vary, but for the moment I can reproduce the following.
Previously, evaluation of the expressions in It doesn't matter what order I load the files in, the namespace in my bb.edn is as follows:
Running I'm connected to the nrepl server run by Babashka using the command It may be worth looping Borkdude into this conversation. Further info: Evaluating |
I can confirm that this is definitely a Babashka issue. Running an nrepl through clj works just fine. |
@marrs can you publish a minimal repo that reproduces the issue? |
I can't get fireplace to work with the babashka nrepl.
Fireplace seems to connect OK. I've tried using
:Connect
. And the nrepl confirms a connection is closed vim exits.But trying to eval code fails:
The text was updated successfully, but these errors were encountered: