kassio/neoterm

Cannot run T twice.

ahoglund opened this issue · 5 comments

Describe the bug
I am unable to run :T ls twice. It will run once, but the 2nd time (or 3rd, 4th,...) it silently does nothing. Have tried turning on verbose, but haven't been able to find anything causing this.

To Reproduce
Steps to reproduce the behavior:

  1. Run:T ls
  2. neoterm window opens, showing files
  3. closed neoterm with q! (or c mapping)
  4. Run :T ls again
  5. nothing happens

Of course, if I quit vim and reenter, I can run :T ls again (once)

Expected behavior
:T ls should open a neoterm every time its run.

Screenshots

Screen Shot 2020-04-17 at 1 21 13 PM

Versions (please complete the following information):

  • OS: [e.g. iOS]
  • neoterm commit sha1
  • Vim or Neovim
    • Vim
    • Neovim
$ nvim -v
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5

Additional context
Add any other context about the problem here.

Closing a neoterm window doesn't close its buffer, like any other vim buffer, it's in the background, you'll need to open it again to see the result. You can reopen it with :Topen or :Ttoggle.

@kassio - Thanks for the feedback here, I should probably provide a bit more context though. The real reason this matters is b/c I can no longer runvim-test with let test#strategy = "neoterm". At some point in the past few months some functionality broke that no longer allows me to run :TestNearest (for example) multiple times. Is there maybe something broken with the integration with vim-test then? Or do I need extra configuration to get this working again?

Appreciate your help 🙏

Can you provide an example, please? I use vim-test with neoterm almost daily and I'm not having problems.

Sure!

$ vim file_test.rb

:TestFile
# neoterm opens, runs test fine
:ZZ 
# closes neoterm, vim buffer still open
# edit code

# then try running: 

:TestLast
# or
:TestFile
# nothing happens when I run this now, it used to reopen the neoterm window

#After you feedback, I found I could run 
:Topen 

# which _does_ reopen the neoterm window and I can run tests again.

I can record a gif screen recording if that would help...

  • A gif would help
  • Can you also put your neoterm configs, please?
  • On the issue description you mention that you use neovim, on your example you used vim, which one are you using?