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

[BUG] Async call does not work inside is_test_file function #444

Open
s1n7ax opened this issue Aug 3, 2024 · 2 comments
Open

[BUG] Async call does not work inside is_test_file function #444

s1n7ax opened this issue Aug 3, 2024 · 2 comments
Assignees

Comments

@s1n7ax
Copy link

s1n7ax commented Aug 3, 2024

This is related to the previous issue I have created.

#323

I just retested the theory with nio. When any async call including native client.request_sync, next functions such as discover_positions is never called.

2024-08-03.13-45-34.mp4
@e7nd7r
Copy link

e7nd7r commented Jan 8, 2025

@s1n7ax I think I have the same issue...

adapters = {
   require("neotest-python") {
       runner = "pytest",
       dap = { justMyCode = false },
       args = { "--log-level", "DEBUG" },
           is_test_file = function (test_file)
               local a = is_test_file2(test_file)
               return true
           end
   },
      ....
},

tgat is_test_file2 function calls some oi operations inside .. but nvm if I call vim.notify it won't work regardless if I explicitly returning true...

@s1n7ax any finding ?

@s1n7ax
Copy link
Author

s1n7ax commented Jan 8, 2025

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

3 participants