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

Debug fails because file_path is nil #60

Closed
GordianDziwis opened this issue Nov 12, 2023 · 4 comments · Fixed by #68
Closed

Debug fails because file_path is nil #60

GordianDziwis opened this issue Nov 12, 2023 · 4 comments · Fixed by #68
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@GordianDziwis
Copy link

When trying to run a test with:

require("neotest").run.run_last({ strategy = "dap" })

I get:

neotest-rust: ...vis/.neovim/bundle/neotest/lua/neotest/lib/file/init.lua:22: attempt to concatenate local
 'file_path' (a nil value)

I know this is not much, I do not have rust-tools installed, maybe there is an undocumented dependency.

If it is needed:

dap.adapters.codelldb = {
    type = 'server',
    port = '${port}',
    executable = {
        -- CHANGE THIS to your path!
        command = '/home/notme/.local/share/nvim/mason/packages/codelldb/codelldb',
        args = { '--port', '${port}' },
    },
}

Any pointers where to look?

@rouge8 rouge8 added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 12, 2023
@rouge8
Copy link
Owner

rouge8 commented Nov 12, 2023

I’ve never actually used the debug functionality other than testing to verify it worked. @MarkEmmons any ideas?

@theoribeiro
Copy link

I have rust-tools installed and am also getting the same error when trying to debug a test. They run just fine, debugging is the only issue.

@MarkEmmons
Copy link

I'll try to take a look in the next week.

@Frederick888
Copy link
Contributor

Can you try #68? Not really familiar with the treesitter queries and stuff, but fingers crossed it fixes the issue.

@rouge8 rouge8 closed this as completed in #68 Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants