#26 Syntax checking does not work on Windows 98

closed-accepted
Sven Köhler
None
5
2004-07-16
2003-09-09
unibon
No

Hello. I am using Windows 98 system and Eclipse 2.1.1.
I had some problem with EPIC plugin. The problem is that
there is no syntax checking report from EPIC plugin.

I think this is Java's problem, so I submit this question to
the following forum.
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?
topic=6160&forum=12&8
(It's wrtten in Japanese.)

In that forum, I found that we shoud better
send "__END__" or Ctrl-Z code to Perl's stdin.
I think the core part is PerSyntaxValidationThread.java
(it's package is org.epic.perleditor.editors).

The following code is a modified fragment of
PerSyntaxValidationThread.java.

--- from here ---
proc = Runtime.getRuntime().exec(cmdParams, null, new
File(workingDir));
Thread.sleep(1);

InputStream in = proc.getErrorStream();
OutputStream out = proc.getOutputStream();

out.write(text.getBytes());
// **********
out.write(0x1a); // ***** HERE ***** We shoud better
send Ctrl-Z (or "__END__" with newLine)
// **********
out.close();

String content =
PerlExecutableUtilities.readStringFromStream(in);

in.close();
--- end ---

Discussion

  • Jochen Ruehl
    Jochen Ruehl
    2003-09-09

    • assigned_to: nobody --> skoehler
     
  • Sven Köhler
    Sven Köhler
    2003-09-09

    • status: open --> closed
     
  • Sven Köhler
    Sven Köhler
    2003-09-09

    • status: closed --> closed-fixed
     
  • Sven Köhler
    Sven Köhler
    2003-09-09

    Logged In: YES
    user_id=98598

    Well, adding "\n__END__\n" to the end of a perl-program
    doesn't harm anything. The fix is in CVS HEAD. You can
    expect the next version to contain the fix.

     
  • Sven Köhler
    Sven Köhler
    2003-09-10

    Logged In: YES
    user_id=98598

    I must admit, that adding __END__ to the end of a
    perl-program is a problem. I now added Ctrl-Z at the end as
    suggested.

    Please report if this works for you. I don't have Win98 for
    testing.

     
  • Sven Köhler
    Sven Köhler
    2003-09-10

    • status: closed-fixed --> open-accepted
     
  • Jochen Ruehl
    Jochen Ruehl
    2004-07-16

    Logged In: YES
    user_id=274815

    Is this bug still present or can the report be closed ?

     
  • Sven Köhler
    Sven Köhler
    2004-07-16

    • status: open-accepted --> closed-accepted