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
Can't run Red from other programs #3562
Comments
I also tried to create a wrapper like this:
With it I don't get the error, but got no output either. From what I tried this works with |
If you need only the Red interpreter, compile the CLI console and use that binary instead of |
I work around this issue by wrapping the Red call into sh -c "red -r code.red" I suspect a path issue in certain environment Other example, given
Run a Red Console:
Wondering if it's a regression, must have had similar code working without wrapping long ago. Not really related.. we should really have something like |
I found similar bug on windows.
below case will trigger error
below case will not trigger error
|
I tried the test cases with rebol-core and rebol-view, all the two cases trigger error for red do not trigger error for rebol. |
Thanks for the note @beenotung. |
I get the same error when running from ipython3:
Running from python3 gives a slightly different error:
It doesn't matter what arguments are given, |
I just realized that, on Windows, if your And also the output speed is much faster on Powershell. |
The Red binary is now separated in several binaries. The CLI console binary can be called from other languages if needed. |
Describe the bug
When I try to execute Red from another program it fails with
PROGRAM ERROR: Invalid encapsulated data.
To Reproduce
Steps to reproduce the behavior:
iex -S mix
{#PID<0.170.0>, :data, :out, "PROGRAM ERROR: Invalid encapsulated data.\n"}
Expected behavior
flush()
prints message with "10" returned by Red, Red is runnable.Screenshots
Platform version(please complete the following information):
The text was updated successfully, but these errors were encountered: