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

REPL runner hangs when trying to run a function that assigns another recurrence to the output stream #20

Open
pt7k opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pt7k
Copy link
Contributor

pt7k commented Jan 15, 2025

  1. Summary

    • Description: Bug Summary in 2 to 3 sentences.
    • There is an error message when trying to directly run a program that contains a reference to any timeline variable recurrence other than declared input and output streams.
    • But it is possible to create a simple intermediary function that references other recurrence relations with variable timeline.
    • If such function assigns just the input and output relations to the output stream everything works fine, but when assigning a previously declared recurrence stored in defs to the output, the REPL will attempt to run the intermediary function and would hang in a loop without any output or messages.
  2. Environment

    • Tau Version: for now "v0.7-alpha" -162
    • Build Number or Date: c534f60
    • Operating System: Ubuntu
  3. Steps to Reproduce
    Step 1: What input did you first provide?

sbf o1 = console

r[0](x) := 1

r[n](x) := r[n-1](x)'

f(x) := o1[n] = r[n](x)

r f(1)

Step 2: Any additional input to Tau?
- No input stream necessary in this example.

Expected Result
Output of the r[n](x) assigned to o1
Actual Result
REPL hanging in an endless loop with no output provided. When severity set to debug the program prints out attempts to run n-1-1-1... endlessly.

  1. Additional Information
    • Error Messages or Logs:
    • Screenshots:
      image

severity set to debug:
image

  1. Severity and Impact

    • Severity Level: Major
    • Impact on Work: Program Hanging
  2. Workaround (if applicable)

    • Tell us if you found a way around this problem:
  3. Contact Information

    • Name: pt7k
    • Email: Telegram @ksdjfskfh
    • Additional Notes: I'm not sure whether it's intended for the REPL to run such programs (with outside recurrence assigned to the output), so please clarify if there is another proper way to do it, or if not it can be suppressed with an error message.

Submission Instructions

  • Make sure to attach any input files to this bug report. n/a
@pt7k pt7k added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant