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

Debugging recipe in wiki needs minor correction #61

Closed
amenonsen opened this issue Aug 14, 2021 · 1 comment
Closed

Debugging recipe in wiki needs minor correction #61

amenonsen opened this issue Aug 14, 2021 · 1 comment

Comments

@amenonsen
Copy link
Contributor

At https://github.com/rcarriga/vim-ultest/wiki/Debugging-Recipes, the pytest recipe refers to a module_index variable that's not defined. I don't (yet) fully understand what ought to be in cmd, but I used the following code just to follow the intent of the code in the recipe, and I can confirm it works (i.e., :UltestDebug starts up a debugging session).

+                            local module_index = 1
+                            if vim.tbl_contains(non_modules, cmd[1]) then
+                                module_index = 3
+                            end
+                            local module = cmd[module_index]
+                            local args = vim.list_slice(cmd, module_index + 1)

(I didn't see a way to edit the wiki directly, and I'm not sure how to make a PR against it, hence this issue.)

@rcarriga
Copy link
Owner

Thanks for pointing out! I'll make the edit now

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