Giter VIP home page Giter VIP logo

Comments (6)

rcarriga avatar rcarriga commented on July 19, 2024

Are you saying that NeoVim completely crashes? If so then that's a NeoVim core issue. You can try see what causes it with a backtrace (you can get one as described here https://github.com/neovim/neovim/wiki/FAQ#debug)

I can't reproduce with the 0.7.2 app image. The way the window closes should cause no issue, so not at all sure what this could be.

from neotest.

tomhampshire avatar tomhampshire commented on July 19, 2024

It actually freezes. I can't even CTRL+C, I have to kill the terminal, which, it seems, doesn't produce a stack trace...

from neotest.

rcarriga avatar rcarriga commented on July 19, 2024

Unfortunately I can't do much without being able to reproduce. Can you try with the nighly version of NeoVim? Also can you try with the following init.lua: nvim --clean -u minimal.lua, adjusting for your own adapters to see if it still happens

-- ignore default config and plugins
vim.opt.runtimepath:remove(vim.fn.expand("~/.config/nvim"))
vim.opt.packpath:remove(vim.fn.expand("~/.local/share/nvim/site"))
vim.opt.termguicolors = true

-- append test directory
local test_dir = "/tmp/nvim-config"
vim.opt.runtimepath:append(vim.fn.expand(test_dir))
vim.opt.packpath:append(vim.fn.expand(test_dir))

-- install packer
local install_path = test_dir .. "/pack/packer/start/packer.nvim"
local install_plugins = false

if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
  vim.cmd("!git clone https://github.com/wbthomason/packer.nvim " .. install_path)
  vim.cmd("packadd packer.nvim")
  install_plugins = true
end

local packer = require("packer")

packer.init({
  package_root = test_dir .. "/pack",
  compile_path = test_dir .. "/plugin/packer_compiled.lua",
})

packer.startup(function(use)
  -- Packer can manage itself
  use("wbthomason/packer.nvim")

  use("vim-test/vim-test")
  use({
    "nvim-neotest/neotest",
    requires = {
      "nvim-lua/plenary.nvim",
      "nvim-treesitter/nvim-treesitter",
      "antoinemadec/FixCursorHold.nvim",
      "nvim-neotest/neotest-python",
    },
    config = function()
      require("neotest").setup({
        adapters = {
          require("neotest-python"),
        },
      })
    end,
  })

  if install_plugins then
    packer.sync()
  end
end)

vim.cmd([[
command! NeotestSummary lua require("neotest").summary.toggle()
command! NeotestFile lua require("neotest").run.run(vim.fn.expand("%"))
command! Neotest lua require("neotest").run.run(vim.fn.getcwd())
command! NeotestNearest lua require("neotest").run.run()
command! NeotestDebug lua require("neotest").run.run({ strategy = "dap" })
command! NeotestAttach lua require("neotest").run.attach()
]])

from neotest.

tomhampshire avatar tomhampshire commented on July 19, 2024

I found the bug! It isn't actually really a bug...
So, I wasn't pressing <c-w> h, I was accidentally pressing i whilst in the test output floating window, which would take me into insert mode. I thought nvim had frozen, but really, I can <c-\><c-n> out, then leave the window.
As a suggestion, disallow entering insert mode in the floating window, as you can't actually edit the text anyway!

from neotest.

rcarriga avatar rcarriga commented on July 19, 2024

Ah good to know 👍 I've stopped insert mode being possible in the output window

from neotest.

tomhampshire avatar tomhampshire commented on July 19, 2024

Ok. Thanks for the great plugin!

from neotest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.