emacs + netrepl setup #1318
Replies: 5 comments 3 replies
-
There are a couple of things I've tried building: The terribly-named former one (a-janet-spork-client) might possibly be enough (or a base to work from may be?). It doesn't support some bits like The latter one (snr) starts a proxy so that the communication to / from an emacs process can use standard input and output instead of sockets. snr is newer and I haven't worked with it as much, but FWIW. [1] Olical's conjure has some level of support for |
Beta Was this translation helpful? Give feedback.
-
snr doesn't seem to work with local jpm trees, it expects spork installed in a global location (which I don't want to do). Is there a way to force it to use the jpm tree of the current project? |
Beta Was this translation helpful? Give feedback.
-
I installed spork globally, and it still doesn't work -- now it just hangs forever. It's a bit disappointing as a newcomer how nonexistent emacs netrepl support is :( |
Beta Was this translation helpful? Give feedback.
-
As mentioned in Zulip, it looks like better behavior can be obtained if the game loop yields (e.g. by using a call to IIUC, the netrepl server runs in a fiber and the game loop lives in the same thread on a separate fiber and it seems to work better if the two cooperate by taking turns. I had success connecting and evaluating using a-janet-spork-client as well as conjure once an appropriate
There isn't currently. I'll try to think about this though. Thanks for the idea. My intent in mentioning snr was more along the lines of pointing out some code that might be adapted. Sorry if that didn't come across well (^^; |
Beta Was this translation helpful? Give feedback.
-
I thought about this a bit more and it is possible to do this currently for some setups. Below is a description of something that worked here. In a project directory where one has already done
This arrangement worked for me. I tried evaluation via the terminal and also via emacs. Via the terminal I saw prompts -- via emacs I didn't see prompts [2] ( Note that, like a-janet-spork-client, snr doesn't support [1] Note that Probably known, but for future readers, one way to do this is to start emacs like Another way is to evaluate the emacs-lisp form Both of these worked for me. [2] This is the way snr is currently. |
Beta Was this translation helpful? Give feedback.
-
Wondering if anyone's gotten a good setup going for emacs and netrepl?
All the repl setups I see around the internet have you starting the Janet process from emacs, but I'm making a game. Displaying a window/drawing graphics doesn't really fit well to being started from emacs, so I'd rather start the game independently, it spins up a netrepl on a fiber, then I connect to it from emacs.
Beta Was this translation helpful? Give feedback.
All reactions