Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running vitest on some test files crashes nvim #11

Open
flunderpero opened this issue Jul 28, 2024 · 5 comments
Open

Running vitest on some test files crashes nvim #11

flunderpero opened this issue Jul 28, 2024 · 5 comments

Comments

@flunderpero
Copy link
Contributor

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
Copy link
Owner

quolpr commented Jul 28, 2024

@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
Copy link
Contributor Author

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

@quolpr
Copy link
Owner

quolpr commented Jul 29, 2024

@flunderpero but use_baleia=true crashes nvim, right?

@flunderpero
Copy link
Contributor Author

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

@quolpr
Copy link
Owner

quolpr commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants