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

Breakpoints do not work when running tests #554

Open
kimlai opened this issue Apr 28, 2023 · 1 comment
Open

Breakpoints do not work when running tests #554

kimlai opened this issue Apr 28, 2023 · 1 comment

Comments

@kimlai
Copy link

kimlai commented Apr 28, 2023

Describe the bug

Hello,

I'm having trouble getting breakpoints to work when running tests.

They work fine when running a main class.

video example
Screen.Recording.2023-04-28.at.11.32.16.mov

However when running a test, the debugger stop, but nothing shows up in the dap ui (frames, scopes etc.). When I resume the session the test runner resumes normally.

video example
Screen.Recording.2023-04-28.at.11.31.16.mov

Everything works fine in VSCode:

video example
Screen.Recording.2023-04-28.at.11.37.53.mov

In another repository I get a "breakpointRejected" message, but I couldn't find any information about where that can come from.

Expected behavior

the debugger should stop at breakpoints normally when running tests.

Operating system

macOS

Version of Metals

scalameta/metals@24790ce

Commit of nvim-metals

26968e2

@ckipp01
Copy link
Member

ckipp01 commented May 1, 2023

Thanks for the report @kimlai. I'll need to dig in and look at the DAP communication for this to see what's going on. I'll report back when I have some time to look at it.

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

No branches or pull requests

2 participants