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

Only displays the diagnostics after saving the file #45

Closed
DasOhmoff opened this issue Oct 31, 2022 · 2 comments
Closed

Only displays the diagnostics after saving the file #45

DasOhmoff opened this issue Oct 31, 2022 · 2 comments

Comments

@DasOhmoff
Copy link

Hello 👋 ,

I am using this nice plugin, and I have the following issue: I run the tests and it fails, but no diagnostic is shown which indicates the position of the failure (no signs or virtual text to display the exact position of the failure). But after I save the file with :w, only then the diagnostics appear.

How can I fix this? I would like the diagnostics to immediately appear after the test failed or passed.

Thank you! :)

@DasOhmoff
Copy link
Author

I want through the code and I found out that this is actually related to my previous posts: #42, #44

It seems that the path is not set correctly and therefore neotest is not able to figure out the correct path, I think the lines for that are here: https://github.com/nvim-neotest/neotest/blob/0be9899e859da147ad28c23a30a1df2081c16741/lua/neotest/consumers/diagnostic.lua#L207

@DasOhmoff
Copy link
Author

I think this seems to be a neotest issue. I opened up the following issue there: nvim-neotest/neotest#141

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

1 participant