Tab completion fails for deno.land/x/polkadot with throw_on_side_effect: Some(true)
#14967
Labels
needs investigation
requires further investigation before determining if it is an issue or not
repl
related to the Read-Eval-Print-Loop functionality of Deno
Hi, I'm building a online repl playground called Subshell for the deno.land/x/polkadot library using deno, but found some issue with tab completion functionality in deno repl, and added a small patch to fix that.
However I'm not sure if there are better ways to do it.
Steps to reproduce:
First save the following snippet to
tini.ts
:Then start a repl using tini.ts as eval-file. Pressing tab(s) on the following input doesn't show any completion:
(The equivalent code in Node.js will give such output:)
And after some trial and error, I have located the relevant bit in deno's source tree that causes the problem.
By changing this line from
deno/cli/tools/repl/editor.rs
Line 132 in 8d82ba7
to
tab completion will work again:
I'm wondering if we can safely disable
throw_on_side_effect
in deno by default, so I don't have to maintain a separate fork. Or should there be a command line switch allowing people to disable this flag?The text was updated successfully, but these errors were encountered: