#87 errors are erroneous and erratic

closed-works-for-me
LeO
Core (65)
5
2004-11-10
2004-08-25
Michael Sorens
No

First reported in forum on 2004.05.27 by me (http:
//sourceforge.net/forum/forum.php?
thread_id=1082953&forum_id=258688)...
then reported by Remco Douma on 2004.08.13 (https:
//sourceforge.net/forum/message.php?msg_id=2712764)..
.

Summary: I am consistently getting erroneous errors,
whether Unix or Windows line endings are used. First with
eclipse 2.1.3 (and epic 0.2.0), I then upgraded to eclipse
3.0 (and epic 0.3.0) and still get bogus (but different!)
errors. Also, trying the same project on different
computers (from the same eclipse .metadata) yields
different bogus errors. Finally, I'll mention for
completeness that my Java code runs flawlessly in
eclipse--no bogus errors. Any chance this is a memory
problem? I run only a 256MB machine.

Having seen no further posting since the request for
sample files a week or so ago, I took another look at the
issue. I closed all projects except my Perl one, and still
had lots of erroneous errors. I closed that project and
created a new test project. With just one file in
it--attached--the problems are still present. My system
shows 3 errors--all erroneous. If I then delete the large
comment block near the top of the file, they all go away.
(Depending on which pieces you delete, different things
happen.)

Discussion

<< < 1 2 3 4 > >> (Page 3 of 4)
  • Michael Sorens
    Michael Sorens
    2004-10-16

    Logged In: YES
    user_id=800488

    I won't be able to upgrade my perl version in the near future;
    let me know if you have other suggestions in the meantime.

     
  • LeO
    LeO
    2004-10-18

    Logged In: YES
    user_id=703323

    1) Try to disable the taint-option, what is the result?

    2) Try on a DOS-Box

    perl -c Generator.pm

    as well with the option -w and/or -T

    Attach the results to this entry.

     
  • Michael Sorens
    Michael Sorens
    2004-10-20

    Logged In: YES
    user_id=800488

    (1) Please let me know where you see the taint option
    enabled; I do not see a -T in any of my three files.

    (2) perl -c Generator.pm simply reports "Generator.pm OK"

    (3) In eclipse, I did try removing the -w from all 3 files and
    then doing a clean build, but with no change (i.e. same errors)
    .

     
  • LeO
    LeO
    2004-10-21

    Logged In: YES
    user_id=703323

    (1) In eclipse Window -> Preference -> EPIC, what
    preferences have you set on the main-page?

    (2) as I assumed

    but what is reported in a DOS-Box with

    perl -c -w Generator.pm
    perl -c -w -T Generator.pm

    ???
    (3) ????

     
  • Michael Sorens
    Michael Sorens
    2004-10-21

    Logged In: YES
    user_id=800488

    (1) Ahh... I wasn't thinking about Preferences. Here is what I
    have:
    EPIC main page preferences:
    interpreter type -- standard
    enable warnings -- off
    enable taint -- off
    validate source when idle for 400 ms

    I also tried switching warnings and taint to on, but there was
    no difference (i.e. still same erroneous warnings reported).

    (2) perl -c -w Generator.pm yields:
    Generator.pm syntax OK

    perl -c -w -T Generator.pm yields:
    Generator.pm syntax OK

    (3) I further reduced the size of my test case to just one file
    --Generator.pm -- with one include -- CGI. If I either remove
    or comment out the 'use CGI' the warnings go away.
    Therefore, I have bundled up the revised Generator.pm with
    my version of CGI.pm (v2.81) and its corresponding support
    CGI folder, copied from my \perl\lib directory. I am hoping that
    you could reproduce the problem with this version of CGI,
    since that seems to be the culprit.

     
  • Michael Sorens
    Michael Sorens
    2004-10-21

    Smaller test case--Generator and CGI only

     
    Attachments
  • LeO
    LeO
    2004-10-22

    Logged In: YES
    user_id=703323

    Hm, aobut (1) and (2) it's quite interesting, because the
    check from the plugin is exactly performed as you do it via
    Command-Line.

    ===> ????

    so, now there is the question, why there is difference
    between command line and Java-Code. The only reason I see
    currently is, different path OR different used Libs.

    try something like:

    perl -c -w -T -I <your CGI-path> Generator.pm

    what is the result?

    (3)
    a) Is it that you have Errors or Warnings?

    b) change in your Generator.pm

    use CGI qw(escapeHTML);

    to

    use CGI2 qw(escapeHTML);

    cause, then it is clear, you wanna use CGI2.pm (your
    modified CGI). and run the above test again.

    BottomLine:

    Even with your attached files, I am NOT able to reproduce
    this problem!!!

     
  • Michael Sorens
    Michael Sorens
    2004-11-03

    Logged In: YES
    user_id=800488

    With a "use CGI2" statement in Generator.pm, then

    perl -c -w -T -I.. Generator.pm

    indicates everything is fine.

    Inside eclipse, though, how do I specify the search path?
    Eclipse now complains (correctly) that it cannot find CGI2.
    (When it is just CGI, then I'm back to my incorrect warnings.)

     
  • LeO
    LeO
    2004-11-05

    Logged In: YES
    user_id=703323

    ?Hm? what kind of question. I've already assumed you have
    done this!

    Right-click on the Navigator on the root of your Project,
    select Properties, Perl-Include Path.

     
  • Michael Sorens
    Michael Sorens
    2004-11-10

    Logged In: YES
    user_id=800488

    Checking what you point to, my perl-include path was blank.
    Since all my referenced files were either in the Perl system
    directory, or in the perl project inside eclipse, eclipse had been
    finding all the right things. (Explicitly setting a path caused no
    differences.)

     
<< < 1 2 3 4 > >> (Page 3 of 4)