what does find users of variable mean?

Issue #284 resolved
Wenjie Wu created an issue

When I right-click on a variable and select 'find users of this block', then I will get all the variable accessors. Is this a bug?

For variables, should 'find users of this block' be hidden?

Comments (9)

  1. Turgut Guneysu

    Hi Wenjie

    this is a brand new feature Bernat provided. It is used to help debug programs by finding where in the code a variable is used.

  2. Wenjie Wu reporter

    Hi @Turgut Guneysu Thank you for your reply.

    I love this powerful new feature, one of the menus seems to have problems working with variables.

  3. Bernat Romagosa

    Hi, Wenjie.

    You’re right that this is sort of a misfeature. The variable block is the same operator regardless of which variable it holds, that’s why finding its users finds all variable reporters in the project. I think we may want to hide this option for variable reporters, unless there is a use case for finding all variable reporters in a project, which I can’t think of right now…

  4. Wenjie Wu reporter

    I also think there seems to be no clear use case.
    For find variables, the find variable accessors and find variable modifiers are perfectly adequate.

  5. John Maloney repo owner

    We might have find users on a variable block just do find variable accessors. Or hide that option, as Bernat suggests.

  6. Log in to comment