Skip to content

[nightly] transform --nocapture arg when using nextest  #864

@giggio

Description

@giggio

Have you read the docs and searched existing issues?

Neovim version (nvim -v)

0.11.4

Operating system/version

Ubuntu 24.04.3

Output of :checkhealth rustaceanvim

rustaceanvim:                                                               ✅

Checking for Lua dependencies ~
- ✅ OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.

Checking external dependencies ~
- ✅ OK rust-analyzer: found rust-analyzer 1.92.0-nightly (695857b 2025-10-21)
- ✅ OK Cargo: found cargo 1.92.0-nightly (367fd9f21 2025-10-15)
- ✅ OK rustc: found rustc 1.92.0-nightly (695857bc3 2025-10-21)
- ✅ OK cargo-nextest: found cargo-nextest 0.9.106
- ✅ OK debug adapter: found codelldb 

Checking config ~
- ✅ OK No errors found in config.

Checking for conflicting plugins ~
- ✅ OK No conflicting plugins detected.

Checking for tree-sitter parser ~
- ✅ OK tree-sitter parser for Rust detected.

How to reproduce the issue

git clone https://github.com/giggio/rustacean_bug1.git
cd rustacean_bug1
nvim -u minimal.lua
# in nvim:
:e proj1/src/main.rs
:RustLsp testables
# see error

Expected behaviour

Tests run

Actual behaviour

error: failed to parse test binary arguments --nocapture: arguments are unsupported

[Process exited 96]

The minimal config used to reproduce this issue.

vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))()

require('lazy.minit').repro {
  spec = {
    {
      'mrcjkb/rustaceanvim',
      version = '^6',
      init = function()
        vim.g.rustaceanvim = {        }
      end,
      lazy = false,
    },
  },
}

Additional context:

I provided a shell.nix and flake.nix in the repo.
If not in a workspace, it works.
If not using nextest, it works (if you comment out enable_nextest = false in minimal.lua).
If using neotest with rustaceanvim, it fails with "Failed to read junit.xml file", which is the error I found first.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions