You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just started trying this out and run into an issue where interpreter tries to create a file using a hear document, this seems a reasonable thing to do but the resulting file is not as expected. As you can see below creating the test file with three lines, when it cats it again its actually got echos between each line. Additionaly if I cat the file outside of interperater those echos are different again:
can you run the troublesome command again and then view the file to confirm?
cat <<EOF > test
one
two
three
EOF
Would you like to run this code? (y/n)
y
cat <<EOF > test
one
two
three
EOF
cat test
Would you like to run this code? (y/n)
y
cat test
echo ""
one
echo ""
two
echo ""
three
echo ""
As confirmed, the file test contains:
one
two
three
^C
Exiting.....
Now I cat it outside of interperater:
$ cat test
echo "##active_line2##"
one
echo "##active_line3##"
two
echo "##active_line4##"
three
echo "##active_line5##"
You can see the files is actually different from what OI sees when it cats the file. This is also concerning as if files aren't being seen as what they actually are then that could cause all kinds of problems but that's maybe a separate issue.
Reproduce
load interpreter
ask " can you cat three lines (one,two,three) to a file using a heardoc, then view the file "
observe the output inside interpreter and also view the file outside of interpreter
Expected behavior
file should not have extra echo lines in it and when interpreter views it it should represent the actual file data
Screenshots
No response
Open Interpreter version
0.3.14
Python version
3.11.2
Operating System name and version
Devuan 5
Additional context
I tried --no_highlight_active_line but no difference
The text was updated successfully, but these errors were encountered:
bobemoe
changed the title
cat with heardoc is adding strange echo active_line lines!
cat with heardoc is adding strange echo "##active_lineX##" lines!
Oct 23, 2024
Describe the bug
I have just started trying this out and run into an issue where interpreter tries to create a file using a hear document, this seems a reasonable thing to do but the resulting file is not as expected. As you can see below creating the test file with three lines, when it cats it again its actually got echos between each line. Additionaly if I cat the file outside of interperater those echos are different again:
y
cat test
y
cat test
^C
Exiting.....
Now I cat it outside of interperater:
You can see the files is actually different from what OI sees when it cats the file. This is also concerning as if files aren't being seen as what they actually are then that could cause all kinds of problems but that's maybe a separate issue.
Reproduce
Expected behavior
file should not have extra echo lines in it and when interpreter views it it should represent the actual file data
Screenshots
No response
Open Interpreter version
0.3.14
Python version
3.11.2
Operating System name and version
Devuan 5
Additional context
I tried
--no_highlight_active_line
but no differenceThe text was updated successfully, but these errors were encountered: