Skip to content
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

Running a Swarm script from command line does not load definitions #2182

Open
xsebek opened this issue Oct 15, 2024 · 1 comment
Open

Running a Swarm script from command line does not load definitions #2182

xsebek opened this issue Oct 15, 2024 · 1 comment
Labels
Bug The observed behaviour is incorrect or unexpected.

Comments

@xsebek
Copy link
Member

xsebek commented Oct 15, 2024

Describe the bug

Running a Swarm script from the command line does not add the definitions to the environment.

To Reproduce

  • run:
    cabal run swarm -O0 -- --scenario Blank --debug=all --run example/maybe.sw
  • use one of the definitions:
    > just
    1:1: Unbound variable just
    
  • there is also nothing in robot environment:
     curl -s localhost:5357/robot/0 | yq -P '.program'
    Out:
      - VUnit: []
      - mu: []
        next: 0
      - []

Expected behavior

The player should be able to use the definitions from the run file.

@xsebek xsebek added the Bug The observed behaviour is incorrect or unexpected. label Oct 15, 2024
@byorgey
Copy link
Member

byorgey commented Oct 19, 2024

😠 #495

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The observed behaviour is incorrect or unexpected.
Projects
None yet
Development

No branches or pull requests

2 participants