-
Notifications
You must be signed in to change notification settings - Fork 25
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 throws Cannot evaluate because of java.lang.NegativeArraySizeException: -2
when evaluating list size
#628
Comments
Thanks for the report! |
This comment was marked as abuse.
This comment was marked as abuse.
@asarkar Thanks for the report and reproduction. Next time, could you avoid using such emphasis as: "the watch panel is completely broken". It can be perceived as aggressive and it won't help us fix the bug. |
This comment was marked as abuse.
This comment was marked as abuse.
The problem with this build is the compiler is configured with |
Fix #628: remove `indent` and `-rewrite` options when evaluating expression
In repo: https://github.com/asarkar/99-scala
In
P01.scala
set breakpoint at line 10 (case lst :: Nil => lst
), and debugP01Suite.scala
"last element of a non-empty list"
test. Try to evaluatel.size
, seeCannot evaluate because of java.lang.NegativeArraySizeException: -2
.More info in the original issue: scalameta/metals#5997.
dap version: v3.1.5
The text was updated successfully, but these errors were encountered: