Enabling Syntax Checking

Michael
2003-04-18
2003-09-05
  • Michael

    Michael - 2003-04-18

    Hello,

      Is there something special that must happen to enable syntax checking? It seems that it should be automatic but it is not working for me. I've left the "Perl executable" line in preferences set to the default "perl", plus changed it to "c:/perl/bin/perl" & "c:/perl/bin/wperl". None of these work.

      I would appreciate any suggestions for resolving this.

    Regards,
    Michael~

     
    • Jochen Ruehl

      Jochen Ruehl - 2003-04-19

      Hi,

      could you please start eclipse form a command prompt with the -debug uption.
      When opening a Perl file in eclipse output like the one below should be written to the console:
      -----------------------------------------
                 OUTPUT
      -----------------------------------------
      /tmp/epic1050785890680 syntax OK

      -----------------------------------------

      This is the output from the Perl interpreter.
      If something goes wrong you'll see exceptions on the console.

      Could you please post your output or send it to me by mail (luelljoc at users.sourceforge.net).

      Bye
      Jochen

       
    • Michael

      Michael - 2003-04-21

      Jochen,

        Thank you for the info. The problem appears to be a bug in Ecplise or EPIC that prevents it from working if installed in a directory path that contains spaces. I had installed in c:\program files\eclipse\.

        The output from the -debug option is pasted below. As you can see everything after the the space in the path is interpreted as part of the script name, which causes the problem. Moving the eclipse folder to a new location without a space in the path name resolves the issue.

      Thanks,
      Michael~

      -----------------------------------------
                 OUTPUT
      -----------------------------------------
      Can't open perl script "Files/eclipse/workspace/Test": No such file or directory

      -----------------------------------------
      -----------------------------------------
                 OUTPUT
      -----------------------------------------
      Can't open perl script "Files/eclipse/workspace/Aronos": No such file or directo
      ry

      -----------------------------------------

       
    • arup

      arup - 2003-09-04

      Hi
      I am getting the following problem when i open the perl file

          file:C:/arup/scea/tools/eclipse/eclipse/
      clr:ParserFactory init
      HRCParser count: 1
      ParserFactory count: 1
      Parsed Syntax File perl.xml
      clr:BaseEditor init: 1
      org.jdom.JDOMException: Error in building: SAX2 driver class org.apache.xerces.p
      arsers.SAXParser not found
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:306)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
              at org.epic.core.util.XMLUtilities.getIncludeEntries(XMLUtilities.java:5
      0)
              at org.epic.perleditor.editors.util.PerlExecutableUtilities.getPerlExecu
      tableCommandLine(PerlExecutableUtilities.java:125)
              at org.epic.perleditor.editors.util.PerlExecutableUtilities.getPerlExecu
      tableCommandLine(PerlExecutableUtilities.java:37)
              at org.epic.perleditor.editors.PerlSyntaxValidationThread.validateSyntax
      (PerlSyntaxValidationThread.java:149)
              at org.epic.perleditor.editors.PerlSyntaxValidationThread.run(PerlSyntax
      ValidationThread.java:118)
      Root cause: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParse
      r
              at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory
      .java:118)
              at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:411)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:283)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
              at org.epic.core.util.XMLUtilities.getIncludeEntries(XMLUtilities.java:5
      0)
              at org.epic.perleditor.editors.util.PerlExecutableUtilities.getPerlExecu
      tableCommandLine(PerlExecutableUtilities.java:125)
              at org.epic.perleditor.editors.util.PerlExecutableUtilities.getPerlExecu
      tableCommandLine(PerlExecutableUtilities.java:37)
              at org.epic.perleditor.editors.PerlSyntaxValidationThread.validateSyntax
      (PerlSyntaxValidationThread.java:149)
              at org.epic.perleditor.editors.PerlSyntaxValidationThread.run(PerlSyntax
      ValidationThread.java:118)
      -----------------------------------------
                 OUTPUT
      -----------------------------------------
      - syntax OK

      -----------------------------------------

      How can i get this rectified

      Arup

       
    • Jochen Ruehl

      Jochen Ruehl - 2003-09-04

      Hi,

      which EPIC version/JDK are you using?
      It seems that the class org.apache.xerces.parsers.SAXParse is not found.
      Please check if in the file eclipse/plugins/org.epic.perleditor_0.1.0/plugin.xml the followind line is present:
      <import plugin="org.apache.xerces"/>

      Bye
      Jochen

       
    • arup

      arup - 2003-09-05

      I am using 1.0 epic version and JDK1.4.

      I added the line you had suggested in the imports in the plugin. It did not work.

      After that i also put a xerces. jar in the folder and added it to the runtime library list.

      However the error is still coming

      Regards
      Arup

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks