quolpr / quicktest.nvim

Run your tests in split window or popup with live feedback
MIT License
66 stars 5 forks source link

Running vitest on some test files crashes nvim #11

Open flunderpero opened 1 month ago

flunderpero commented 1 month ago

The nvim process just exits with status 139. NeoVim version 0.10.1

It happens occasionally on the most simple test file like this:

import {expect, test} from "vitest"

test("Remove cards from columns", async () => {
    expect(1).toBe(3)
})

The test runs fine in both, vim-test and neotest.

quolpr commented 1 month ago

@flunderpero thanks for the report!

Could you check that use_baleia = false in config will stop crashing? I pushed that config option recently, so you will need to update quicktest before. You will have output without colors.

If it helps, I will think what I should do nest. Either write own ansi colorizer or help baleia author to improve the lib 🤔

flunderpero commented 1 month ago

I tried a few times with and without use_baleia = false and it seems to fix it.

quolpr commented 1 month ago

@flunderpero but use_baleia=true crashes nvim, right?

flunderpero commented 1 month ago

@quolpr Yes. ;-) Some tests always crash, some crash from time to time, others never crash.

quolpr commented 1 month ago

@flunderpero got it, thanks. Then I will think how to make coloring without baleia