-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Neovim version (nvim -v)
v0.8.3
Operating system/version
NixOS 22.11 / NixOS unstable with home-manager
How to reproduce the issue
Open a file with multiple tests (e.g. https://github.com/neovimhaskell/nvim-hs/blob/main/tests/EventSubscriptionSpec.hs).
Run all tests of a file with multiple tests:
require("neotest").run.run(vim.fn.expand("%"))
Expected behaviour
Tests execute without errors.
Actual behaviour
Some tests usually fail with a failure message such as this:
Build profile: -w ghc-9.0.2 -O1
In order, the following will be built (use -v for more details)
- nvim-hs-2.3.2.2 (test:hspec) (first run)
ghc-pkg: cannot create: /home/saep/src/nvim-hs/dist-newstyle/bu
/hspec/package.conf.inplace already exists
The minimal config used to reproduce this issue.
Basically:
require('neotest').setup{
adapters = require('neotest-haskell'),
}
I tried to use the minimal config from this repository with the lines above added, but it cannot find tests. I don't know why. The 2 lines above is the only neotest configuration I have.
nix-shell -p neovim
NVIM_DATA_MINIMAL=/tmp/minimal nvim --clean -u ~/src/neotest-haskell/tests/minimal.lua tests/EventSubscriptionSpec.hs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working