Closed piersolenski closed 9 months ago
Are you by any chance using a wrapper around vim.ui.select
(like dressing.nvim
)? If so, does the issue persist if you disable that wrapper?
Also, what version of nvim are you on?
Can you try the latest version? https://github.com/thenbe/neotest-playwright/commit/ea972015695704846ffaeffb364a898c6f2be847 may have fixed this.
Hmm If I switch from headed
(as my default) to debug
, it works, but then when switching back to headed
it seems to keep using the debug
mode 🤔
Hmm If I switch from
headed
(as my default) todebug
, it works, but then when switching back toheaded
it seems to keep using thedebug
mode 🤔
I can't reproduce this one. When you turn up the log level, is the preset name getting logged successfully every time you use NeotestPlaywrightPreset
?
opts = function()
return {
+ log_level = vim.log.levels.DEBUG,
adapters = {
-- ...
},
consumers = {
-- ...
},
}
end,
tail -F ~/.local/state/nvim/neotest.log
DEBUG | 2023-12-02T21:37:31Z+0300 | ...ts/neotest-playwright/lua/neotest-playwright/logging.lua:7 | [neotest-playwright] preset headed
DEBUG | 2023-12-02T21:37:41Z+0300 | ...ts/neotest-playwright/lua/neotest-playwright/logging.lua:7 | [neotest-playwright] preset debug
DEBUG | 2023-12-02T21:37:45Z+0300 | ...ts/neotest-playwright/lua/neotest-playwright/logging.lua:7 | [neotest-playwright] preset headed
DEBUG | 2023-12-02T21:37:48Z+0300 | ...ts/neotest-playwright/lua/neotest-playwright/logging.lua:7 | [neotest-playwright] preset none
The current preset value can also be printed like so:
:lua =require('neotest-playwright').adapter.options.preset
Hmm it seems to be working now, might have been my config at fault! Thanks so much for the fix!
When I run
NeotestPlaywrightPreset
and select "headed", it still uses my preset ofpreset = "debug"
.My config: