- **Comment**:
Hi Dale, Thanks for the pointer. I was able to get the compile errors down to 36, and I think they're still related to Antlr. As you saw, this plugin depends on an older version of the Antlr plugin and was looking for the `antlr-4.4-complete.jar`, I don't see that jar with the new version of Antlr plugin, I see a `antlr4-4.5-opt.jar` instead. I changed the classpath path element to include all jars in the jedit.plugins.dir which brought it down to 36. Now, I'm thinking there's some difference between 4.4 and 4.5.1 that is causing the errors below? Tim, I suggest you up the dependency and test, because user's can't actually get 4.4 for jEdit 5.3 anymore unless they manually download and install it - Plugin manager only shows Antlr 4.5.1.
Here are the errors:
compileProtocolBuffer:
[mkdir] Created dir: /ProtocolBuffer/build/classesProtocolBuffer
[javac] /ProtocolBuffer/build.xml:63: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 19 source files to /ProtocolBuffer/build/classesProtocolBuffer
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:64: warning: [deprecation] getTokenNames() in Recognizer has been deprecated
[javac] public String[] getTokenNames() { return tokenNames; }
[javac] ^
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:15: error: cannot find symbol
[javac] static { RuntimeMetaData.checkVersion("4.4", RuntimeMetaData.VERSION); }
[javac] ^
[javac] symbol: variable RuntimeMetaData
[javac] location: class ProtoParserParser
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:15: error: cannot find symbol
[javac] static { RuntimeMetaData.checkVersion("4.4", RuntimeMetaData.VERSION); }
[javac] ^
[javac] symbol: variable RuntimeMetaData
[javac] location: class ProtoParserParser
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:77: error: no suitable constructor found for ParserATNSimulator(ProtoParserParser,ATN,DFA[],PredictionContextCache)
[javac] _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
[javac] ^
[javac] constructor ParserATNSimulator.ParserATNSimulator(ATN) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor ParserATNSimulator.ParserATNSimulator(Parser,ATN) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:277: error: incompatible types: List<CAP#1> cannot be converted to List<Option_line_defContext>
[javac] return getRuleContexts(Option_line_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_line_defContext from capture of ? extends Option_line_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:280: error: incompatible types: List<CAP#1> cannot be converted to List<Package_defContext>
[javac] return getRuleContexts(Package_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Package_defContext from capture of ? extends Package_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:292: error: incompatible types: List<CAP#1> cannot be converted to List<Message_defContext>
[javac] return getRuleContexts(Message_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Message_defContext from capture of ? extends Message_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:301: error: incompatible types: List<CAP#1> cannot be converted to List<Ext_defContext>
[javac] return getRuleContexts(Ext_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Ext_defContext from capture of ? extends Ext_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:308: error: incompatible types: List<CAP#1> cannot be converted to List<Enum_defContext>
[javac] return getRuleContexts(Enum_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Enum_defContext from capture of ? extends Enum_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:311: error: incompatible types: List<CAP#1> cannot be converted to List<Service_defContext>
[javac] return getRuleContexts(Service_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Service_defContext from capture of ? extends Service_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:317: error: incompatible types: List<CAP#1> cannot be converted to List<Import_defContext>
[javac] return getRuleContexts(Import_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Import_defContext from capture of ? extends Import_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:611: error: incompatible types: List<CAP#1> cannot be converted to List<TerminalNode>
[javac] public List<TerminalNode> COMMA() { return getTokens(ProtoParserParser.COMMA); }
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends TerminalNode from capture of ? extends TerminalNode
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:618: error: incompatible types: List<CAP#1> cannot be converted to List<Option_field_itemContext>
[javac] return getRuleContexts(Option_field_itemContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_field_itemContext from capture of ? extends Option_field_itemContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:781: error: incompatible types: List<CAP#1> cannot be converted to List<Option_value_itemContext>
[javac] return getRuleContexts(Option_value_itemContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_value_itemContext from capture of ? extends Option_value_itemContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:880: error: incompatible types: List<CAP#1> cannot be converted to List<TerminalNode>
[javac] public List<TerminalNode> FIELD_IDENTIFIER() { return getTokens(ProtoParserParser.FIELD_IDENTIFIER); }
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends TerminalNode from capture of ? extends TerminalNode
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1036: error: incompatible types: List<CAP#1> cannot be converted to List<Option_line_defContext>
[javac] return getRuleContexts(Option_line_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_line_defContext from capture of ? extends Option_line_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1045: error: incompatible types: List<CAP#1> cannot be converted to List<Enum_item_defContext>
[javac] return getRuleContexts(Enum_item_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Enum_item_defContext from capture of ? extends Enum_item_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1254: error: incompatible types: List<CAP#1> cannot be converted to List<Option_line_defContext>
[javac] return getRuleContexts(Option_line_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_line_defContext from capture of ? extends Option_line_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1260: error: incompatible types: List<CAP#1> cannot be converted to List<Message_item_defContext>
[javac] return getRuleContexts(Message_item_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Message_item_defContext from capture of ? extends Message_item_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1272: error: incompatible types: List<CAP#1> cannot be converted to List<Message_defContext>
[javac] return getRuleContexts(Message_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Message_defContext from capture of ? extends Message_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1275: error: incompatible types: List<CAP#1> cannot be converted to List<Message_ext_defContext>
[javac] return getRuleContexts(Message_ext_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Message_ext_defContext from capture of ? extends Message_ext_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1278: error: incompatible types: List<CAP#1> cannot be converted to List<Enum_defContext>
[javac] return getRuleContexts(Enum_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Enum_defContext from capture of ? extends Enum_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1419: error: incompatible types: List<CAP#1> cannot be converted to List<TerminalNode>
[javac] public List<TerminalNode> INTEGER_LITERAL() { return getTokens(ProtoParserParser.INTEGER_LITERAL); }
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends TerminalNode from capture of ? extends TerminalNode
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1575: error: incompatible types: List<CAP#1> cannot be converted to List<Option_line_defContext>
[javac] return getRuleContexts(Option_line_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_line_defContext from capture of ? extends Option_line_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1581: error: incompatible types: List<CAP#1> cannot be converted to List<Message_item_defContext>
[javac] return getRuleContexts(Message_item_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Message_item_defContext from capture of ? extends Message_item_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1590: error: incompatible types: List<CAP#1> cannot be converted to List<Message_defContext>
[javac] return getRuleContexts(Message_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Message_defContext from capture of ? extends Message_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1593: error: incompatible types: List<CAP#1> cannot be converted to List<Enum_defContext>
[javac] return getRuleContexts(Enum_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Enum_defContext from capture of ? extends Enum_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1761: error: incompatible types: List<CAP#1> cannot be converted to List<Option_line_defContext>
[javac] return getRuleContexts(Option_line_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_line_defContext from capture of ? extends Option_line_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1767: error: incompatible types: List<CAP#1> cannot be converted to List<Rpc_defContext>
[javac] return getRuleContexts(Rpc_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Rpc_defContext from capture of ? extends Rpc_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1833: error: incompatible types: List<CAP#1> cannot be converted to List<Option_line_defContext>
[javac] return getRuleContexts(Option_line_defContext.class);
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends Option_line_defContext from capture of ? extends Option_line_defContext
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1852: error: incompatible types: List<CAP#1> cannot be converted to List<TerminalNode>
[javac] public List<TerminalNode> PAREN_CLOSE() { return getTokens(ProtoParserParser.PAREN_CLOSE); }
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends TerminalNode from capture of ? extends TerminalNode
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserParser.java:1857: error: incompatible types: List<CAP#1> cannot be converted to List<TerminalNode>
[javac] public List<TerminalNode> PAREN_OPEN() { return getTokens(ProtoParserParser.PAREN_OPEN); }
[javac] ^
[javac] where CAP#1 is a fresh type-variable:
[javac] CAP#1 extends TerminalNode from capture of ? extends TerminalNode
[javac] /ProtocolBuffer/sidekick/protobuf/SideKickErrorListener.java:18: error: name clash: syntaxError(Recognizer<?,?>,Object,int,int,String,RecognitionException) in SideKickErrorListener and <T>syntaxError(Recognizer<T,?>,T,int,int,String,RecognitionException) in ANTLRErrorListener have the same erasure, yet neither overrides the other
[javac] public void syntaxError( Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e ) {
[javac] ^
[javac] where T,Symbol are type-variables:
[javac] T extends Symbol declared in method <T>syntaxError(Recognizer<T,?>,T,int,int,String,RecognitionException)
[javac] Symbol extends Object declared in interface ANTLRErrorListener
[javac] /ProtocolBuffer/sidekick/protobuf/SideKickErrorListener.java:17: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserLexer.java:15: error: cannot find symbol
[javac] static { RuntimeMetaData.checkVersion("4.4", RuntimeMetaData.VERSION); }
[javac] ^
[javac] symbol: variable RuntimeMetaData
[javac] location: class ProtoParserLexer
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserLexer.java:15: error: cannot find symbol
[javac] static { RuntimeMetaData.checkVersion("4.4", RuntimeMetaData.VERSION); }
[javac] ^
[javac] symbol: variable RuntimeMetaData
[javac] location: class ProtoParserLexer
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserLexer.java:63: error: no suitable constructor found for LexerATNSimulator(ProtoParserLexer,ATN,DFA[],PredictionContextCache)
[javac] _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
[javac] ^
[javac] constructor LexerATNSimulator.LexerATNSimulator(ATN) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor LexerATNSimulator.LexerATNSimulator(Lexer,ATN) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] /ProtocolBuffer/sidekick/protobuf/parser/ProtoParserLexer.java:70: warning: [deprecation] getTokenNames() in Lexer has been deprecated
[javac] public String[] getTokenNames() { return tokenNames; }
[javac] ^
[javac] 36 errors
[javac] 2 warnings
---
** [plugin-central-submission:#1016] Protocol Buffer Plugin v0.3.0 - Initial Version**
**Status:** pending
**Group:** None
**Created:** Wed Jul 06, 2016 08:40 PM UTC by Tim Blackler
**Last Updated:** Wed Nov 16, 2016 02:56 PM UTC
**Owner:** Townsfolk
{{{ ProtocolBuffer 0.3.0
Source: Source code is in GIT with the tag v0.3.0
Announcement: We are pleased to announce the initial release of the Protocol Buffer Plugin
Requires Java 1.7
Requires jEdit 05.03.00.00
Required plugins:
Antlr 4.4 (antlr.AntlrPlugin)
EclipseIcons 1.0 (eclipseicons.EclipseIconsPlugin)
ErrorList 1.9 (errorlist.ErrorListPlugin)
Info Viewer 1.6 (infoviewer.InfoViewerPlugin)
SideKick 1.7 (sidekick.SideKickPlugin)
Short Description: The Protocol Buffer plugin provides Sidekick parsing for Googles Protocol Buffer definitions.
Long Description: <p>The Protocol Buffer plugin provides features for editing Google Protocol Buffers, as well as generating C, Java and Python code from the proto file.</p>
<p>There is no protoc compiler included with this plugin. You should download the compiler for your operating system, and configure it using the Plugin Options.</p>
}}}
---
Sent from sourceforge.net because jedit-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jedit/plugin-central-submission/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-central-submission/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.