Closed subsetpark closed 2 years ago
Yes, this is a limitation with how getline is working - makes it hard for a completion to be customized, especially with some from across a network, so currently it is just using the default autocomplete built into getline, which works with the default client environment. The proper fix here is to have and ev-aware getline
implementation.
As of 31a5009cc9acc2096f14ada0cd2dde7d14839431, the default netrepl client should have this. A number of improvements have been made to netrepl, such that it should feel much like the default Janet repl.
Having started a server-single instance, I connect with two clients. From client A (a text editor) I define a bunch of functions. We'll take
warn-proto-method-shadow
as an example. From client B (a janet session runningclient
) we see the following confusing behavior:We see that the symbol is bound. However,
warn-<TAB>
immediately completes:Even though the function is in the current environment, it's not in the list of tab completion options.