Skip to content

Sniprun becomes quirky with snippets entailing a prompt for value from stdin #146

@kqvanity

Description

@kqvanity

Describe the bug
A clear and concise description of what the bug is.

What do the bug concerns? Sniprun itself, a particular interpreter?
The bug seems to stem from sniprun

To Reproduce
Steps to reproduce the behavior:

  1. Open a source code file
  2. visually select a block of cpp/python code encompassing a line prompting the use for input via stdin
  3. open command mode and run Sniprun
  4. A varying quirky behavior arises .

Varying quirky behaviors

  • At terminal view with c++, it executes the whole code (prior to and after the use prompt line), but if i pressed a or i for input within the terminal , then the terminal essentially freezes .
  • At classic view, it just executes the whole code ignoring any lines of input functions .
  • Whether at terminal window or classic view with python, it just print RuntimeError: EOFError: EOF when reading a line

Expected behavior
Atleast the terminal window to be chosen, and i get the ability to input values normally .

Environment:

  • Neovim version [e.g. v0.6.0]
  • elementary os 6.1
  • Ubuntu GLIBC 2.31-Oubuntu9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions