Skip to content

ServerTree.add is not updating global variables #59

@jenshaase

Description

@jenshaase

Hello,

I found a bug when using global variables and ServerTree.add.

This is the code I have:

(
    ServerTree.removeAll();
    ServerTree.add({
        ~fxGroup = Group.new;
    })
)
    
~fxGroup

Then I will do the following:

  • I evaluate the first region
  • I press Cmd + . to create a new group. The group is existing on the server.
  • I evaluate the line ~fxGroup
  • I would expect that that ~fxGroup evaluates to the group number, but it is evaluating to nil.

If I do the same in ScIDE I get the expected value and pressing Cmd + . multiple times will update the global variable ~fxGroup.

Some additional note:

  • If I evaluate CmdPeriod.run() instead of pressing Cmd + . everything is working as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions