Giter VIP home page Giter VIP logo

Comments (7)

rcarriga avatar rcarriga commented on July 19, 2024

You need to install vim-test to use vim-test adapter 😄

from neotest.

zeitchef avatar zeitchef commented on July 19, 2024

Missed that line in the docs - thanks! 😄

from neotest.

zeitchef avatar zeitchef commented on July 19, 2024

@rcarriga This has worked great for weeks, but recently a version of this error has cropped up:

Screen Shot 2022-10-15 at 14 00 16

And the config:

use({
	"nvim-neotest/neotest",
	requires = {
		"nvim-lua/plenary.nvim",
		"nvim-treesitter/nvim-treesitter",
		"antoinemadec/FixCursorHold.nvim",
		"haydenmeade/neotest-jest",
	},
	config = function()
		require("neotest").setup({
			adapters = {
				require("neotest-jest")({
					jestCommand = "npm test --",
					env = { CI = true },
					cwd = function()
						return vim.fn.getcwd()
					end,
				}),
			},
			icons = {
				running = "↻",
			},
		})
	end,
})

I'm quite certain it's all in order. Any idea what's happening here?

from neotest.

rcarriga avatar rcarriga commented on July 19, 2024

It's unrelated to this issue. It looks like it's related to recent changes to use a second neovim instance for parsing. I've added better error handling so you won't see the error being raised. The underlying problem will still occur though, can you enable info logging by adding log_level = vim.log.levels.INFO to your setup table and paste it here after reproducing the issue? Also what version of neovim are you using?

from neotest.

zeitchef avatar zeitchef commented on July 19, 2024

NVIM v0.9.0-dev-47-gcfdb4cbad-dirty

This cleared up the error message, but when trying to reproduce the error there are no messages being logged in ~/.cache/nvim/neotest.lua which is where I would expect the logs to be.

from neotest.

rcarriga avatar rcarriga commented on July 19, 2024

With the newest release of neovim, the log file is moved to vim.fn.stdpath("log") which is usually in ~/.local/state/nvim

from neotest.

zeitchef avatar zeitchef commented on July 19, 2024

Thanks for that. Unfortunately, logs are not super useful:

INFO | 2022-10-17T16:42:35Z+0200 | ...te/pack/packer/start/neotest/lua/neotest/config/init.lua:270 | Configuration complete
INFO | 2022-10-17T16:43:36Z+0200 | ...te/pack/packer/start/neotest/lua/neotest/config/init.lua:270 | Configuration complete
INFO | 2022-10-17T16:44:52Z+0200 | ...te/pack/packer/start/neotest/lua/neotest/config/init.lua:270 | Configuration complete

In any case, I'm not hitting the error anymore so tests are running. I have a separate issue where neotest reports a failing test when in fact it's not, but I'll file a separate bug ticket.

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.