-
Notifications
You must be signed in to change notification settings - Fork 333
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 watch throws NoSuchElementException #6761
Comments
This works for me on the newest snapshot of Metals, so this might have actually been already fix. I will try and release a new version of metals soon. |
This issue was closed because no new information was added for the last 30 days. If you have any relevant information, feel free to add it and reopen the issue. |
What more information is required? |
Ach, I think I forgot to write if you could check the snapshot versions. I was supposed to release a new version, but I keep finding bugs to fix |
Thanks for reopening the ticket. I think I’ll wait for a stable version, no rush. Snapshot might fix this problem but introduce another. |
Are you able to reproduce it in 1.4.0 Metals version? |
I still am able to reproduce it using 1.4.0 Metals and VSCode 1.95.1 |
Looks like the reason for it is that first stop is not inside the for, but outside of it. @adpi2 any idea is that expected? Might be limitation. |
Yes the issue is the compiler declares a debug line on the instantiation of the lambda. In this example: xs.map { x =>
x + 1
} The compiler creates 3 debug lines: one on |
Looks like this is expected and work as intended. Thanks @adpi2 for adding the additional info. |
Describe the bug
When a breakpoint is put on the line
yield
, and variablesc
andx
added to the watch, the panel throwsNoSuchElementException
. See screenshot below.Expected behavior
Watch panel should be able to evaluate expressions.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.3.5
Extra context or search terms
VSCode version 1.93.0
Scala version 3.4.2
JDK Version 21.0.4
The text was updated successfully, but these errors were encountered: