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

Oops1: Variable "$xml" is not imported at (eval 640) line 718 #744

Closed
rob-vh opened this issue Dec 30, 2017 · 1 comment
Closed

Oops1: Variable "$xml" is not imported at (eval 640) line 718 #744

rob-vh opened this issue Dec 30, 2017 · 1 comment

Comments

@rob-vh
Copy link

rob-vh commented Dec 30, 2017

I had to insert 4 blanks in front of the my command in
code/common/android_server.pl
lib/xml_server.pl

my $html = <<eof;

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
$style
<misterhouse>
$xml</misterhouse>

eof

Without the leading blanks, the line with my gets removed and starting misterhouse results in

12/30/17 02:05:36 PM Evaluating user code
12/30/17 02:05:36 PM Oops1: Variable "$json" is not imported at (eval 640) line 718.
12/30/17 02:05:36 PM Oops1: 	(Did you mean &json instead?)
12/30/17 02:05:36 PM Oops1: Variable "$xml" is not imported at (eval 640) line 718.
12/30/17 02:05:36 PM Oops1: 	(Did you mean &xml instead?)

The my statement was apparently added 4 months ago by

"The implementation of persistent connections should be 95% ..." 0b83158
and "HTTP 1.1 Update #1" d998b8a

gac410 added a commit to gac410/misterhouse that referenced this issue Apr 14, 2019
@rob-vh
Copy link
Author

rob-vh commented Sep 5, 2022

I just did a git clone -b master and was surprised the issue still exists. Several lib and code files have
my $json <<eof
...
eof

and result in

09/05/22 03:35:07 PM Evaluating user code
09/05/22 03:35:07 PM Oops1: Variable "$json" is not imported at (eval 672) line 2420.
09/05/22 03:35:07 PM Oops1: (Did you mean &json instead?)

and

09/05/22 03:35:07 PM Oops1: Variable "$xml" is not imported at (eval 672) line 2709.
09/05/22 03:35:07 PM Oops1: (Did you mean &xml instead?)

This causes the json_server to fail, which in turn makes ia7 less than responsive. I am not a star at git, so I will not attempt a pull request, however, here are the diffs
744.diff.txt

@hplato hplato closed this as completed Sep 18, 2022
@hplato hplato mentioned this issue Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants