Ark: Emit debug prompts on StdIn in console mode? #4921
Labels
area: console
Issues related to Console category.
area: debugger
Issues related to Debugging
area: kernels
Issues related to Jupyter kernels and LSP servers
lang: r
Milestone
We've had plans to emit browser prompts on StdIn in notebook mode because the current experience is confusing: posit-dev/ark#572.
But should we do this in console mode too? This would help with:
Debugging sessions should have independent console history #4478
In case of multiline expressions, avoid sending pending expressions to the browser prompt, instead emit those at the next regular prompt.
This exploits the fact that input prompts on StdIn are nested in execute-request prompts and would make debug prompts consistent with readline prompts in that regard (see discussion in Some multiline code in R console not working a #4901 (comment)).
Things to consider:
Completions within debug prompts. Currently R completions are disabled in readline prompts but we'd want those in debug prompts.
R code evaluated from an editor during a debug session should be sent directly to the browser prompt instead of being enqueued on the frontend's list of pending inputs.
This special behaviour could be maintained by adding a custom field to the stdin request to indicate this nested prompt is expecting R code.
Also what experience do we want for notebooks? Note that currently stdin prompts do not seem to work in Positron: #4920.
The text was updated successfully, but these errors were encountered: