You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just set up neotest-python after using neotest-rspec without issue.
If I run tests that return an error, about half the time neotest creates a new window at the bottom of the screen and shows the error there correctly. The other half, it'll take over the primary window, show the error there, and shrink the buffer to the height of the error panel.
Perhaps best explained by screen capture. (In video, test works as expected the first time, error occurs 2nd time)
As mentioned, it happens intermittently (~50% of the time) in neotest-python
If no errors are returned, the issue doesn't occur
If I have the summary panel open, the error shows up in the summary panel instead of the main buffer
Command is triggered by lua require('neotest').run.run() or derivatives (eg: lua require('neotest').run.run(vim.fn.expand('%')))
`
No issues running pytest outside vim
My configuration for neotest-python is bare bones. Specifically:
local status_ok, neotest = pcall(require, "neotest")
if not status_ok then
print("Neotest could not be loaded")
return
end
local status_ok, neotest_python = pcall(require, "neotest-python")
if not status_ok then
print("Neotest-python could not be loaded")
return
end
local status_ok, neotest_rspec= pcall(require, "neotest-rspec")
if not status_ok then
print("Neotest-rspec could not be loaded")
return
end
neotest.setup({
adapters = {
neotest_rspec({
rspec_cmd = function()
return vim.tbl_flatten({
"bundle",
"exec",
"rspec"
})
end
}),
neotest_python,
}
})
Any thoughts appreciated, and thanks for neotest - loving it. :)
The text was updated successfully, but these errors were encountered:
I just set up neotest-python after using neotest-rspec without issue.
If I run tests that return an error, about half the time neotest creates a new window at the bottom of the screen and shows the error there correctly. The other half, it'll take over the primary window, show the error there, and shrink the buffer to the height of the error panel.
Perhaps best explained by screen capture. (In video, test works as expected the first time, error occurs 2nd time)
Screen Capture of Issue
A few notes:
This doesn't happen in neotest-rspec
As mentioned, it happens intermittently (~50% of the time) in neotest-python
If no errors are returned, the issue doesn't occur
If I have the summary panel open, the error shows up in the summary panel instead of the main buffer
Command is triggered by
lua require('neotest').run.run()
or derivatives (eg:lua require('neotest').run.run(vim.fn.expand('%'))
)`
No issues running pytest outside vim
My configuration for neotest-python is bare bones. Specifically:
Any thoughts appreciated, and thanks for neotest - loving it. :)
The text was updated successfully, but these errors were encountered: