You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying the --library / -l functionality of janet-netrepl:
-l, --library VALUE Load libraries in the repl as with the janet -l flag
I noticed that specifying something for VALUE that lives under JANET_PATH leads to a client connection being ended right after successful establishment.
The following is a demo.
Suppose spork is installed (so spork lives under JANET_PATH and janet-netrepl is available).
Start server:
$ janet-netrepl -l spork
Starting networked repl server on 127.0.0.1, port 9365...
Start client (note the exiting apparent from the second prompt):
When trying the
--library
/-l
functionality ofjanet-netrepl
:I noticed that specifying something for
VALUE
that lives underJANET_PATH
leads to a client connection being ended right after successful establishment.The following is a demo.
Suppose spork is installed (so spork lives under
JANET_PATH
andjanet-netrepl
is available).Start server:
Start client (note the exiting apparent from the second prompt):
Observe output for server:
Some investigation revealed that
(dyn :syspath)
's value wasnil
within the handler function forspork/netrepl.janet
'sserver
function.The following diff seemed to yield better results here:
Not sure if that's a good way to address things, but the "immediate client disconnect" situation described above was resolved.
The text was updated successfully, but these errors were encountered: