Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On start error, the REPL window closes immediately so one can't read the error #346

Open
teto opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@teto
Copy link

teto commented Jul 13, 2023

I am using f603de5

I dont have a lua interpreter in PATH so running IronRepl lua logically fails BUT it does so in a weird way, e.g., iron.nvim starts a window which immediately disappears so I can't read what's on it. Then when I try to quit, neovim complains because of running jobs:

:lua vim.pretty_print(vim.api.nvim_list_chans())
{ {                                                                                                                                                                                                                                                             
    client = {                                                                                                                                                                                                                                                  
      [true] = 6                                                                                                                                                                                                                                                
    },                                                                                                                                                                                                                                                          
    id = 1,                                                                                                                                                                                                                                                     
    mode = "rpc",                                                                                                                                                                                                                                               
    stream = "stdio"                                                                                                                                                                                                                                            
  }, {                                                                                                                                                                                                                                                          
    id = 2,                                                                                                                                                                                                                                                     
    mode = "bytes",                                                                                                                                                                                                                                             
    stream = "stderr"                                                                                                                                                                                                                                           
  }, {                                                                                                                                                                                                                                                          
    argv = { "/run/current-system/sw/bin/nix", "repl", "/home/teto/nixpkgs" },                                                                                                                                                                                  
    buffer = 10,                                                                                                                                                                                                                                                
    id = 3,                                                                                                                                                                                                                                                     
    mode = "terminal",                                                                                                                                                                                                                                          
    pty = "/dev/pts/6",                                                                                                                                                                                                                                         
    stream = "job"                                                                                                                                                                                                                                              
  }, {                                                                                                                                                                                                                                                          
    argv = { "/run/current-system/sw/bin/zsh", "-c", "lua" },                                                                                                                                                                                                   
    buffer = 14,                                                                                                                                                                                                                                                
    id = 4,                                                                                                                                                                                                                                                     
    mode = "terminal",                                                                                                                                                                                                                                          
    pty = "/dev/pts/8",                                                                                                                                                                                                                                         
    stream = "job"                                                                                                                                                                                                                                              
  } } 

So I wish a failing REPL would not disappear (hoping it's not a behavior due to some of my other plugins) and I dont think it used to be the case, something must have changed recently.

This could be interesting to support :checkhealth iron.nvim too to see if all REPLs are correctly configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant