-
Notifications
You must be signed in to change notification settings - Fork 33
"Locals" acts weird #145
Comments
I failed to reproduce this. Are there any errors logged to the console output (ctrl+alt+i to show) in atom? |
Whenever I try to use it the locals dropdown is empty so I have to add everything I want to watch. |
I also see it having the wrong value for the local variable |
@alexandernst said:
I can confirm this. I sometimes see double variables or occasionally a value from the previous/next variable. I thought I was going crazy. Often I set a variables in watches because they are not showing in locals or just to be sure. E.g. loops like
There is no Check this scope for example: Local is not local, watch is local: |
It seems like mercury hg.array suffers from some kind of disease... It could be worth trying to swap out the hg.array in the treeview in favor of the, not so convenient (in this case), hg.varhash. @Redsandro Are you in a position to provide any reproduction steps for this bug? |
It's difficult. I encounter this now and again with big code. When I try to simplify this, into reproduction code, it starts working. :( The problem with the hidden vars is easier. You got that one confirmed, or do you prefer reproduction code for that too? |
It seems "Locals" is not emptied/filled with the variables from the current scope. Sometimes some variables are missing, sometimes variables get duplicated.
This is easily reproducible with randomly opening and closing the "Locals" element before/after stepping into a new context.
The text was updated successfully, but these errors were encountered: