Comments (5)
hmmm -- every template should be in there. Here's my hunch -- do you have another version of ANTLR installed on your system and accessible from your CLASSPATH environmental variable? Missing templates probably means ANTLR's loading the half-implemented Ruby templates that it ships with.
On my system, antlr4ruby -fo CPP CPP.g works without any errors. However, in the past, I've occasionally had those `missing template' errors pop up, and usually it's due to some interference from the old ruby target creeping in somehow.
I checked to see if maybe there was some unnoticed issue with updates to the customized ANTLR jar (java/antlr-full-3.2.1.jar) by doing another full clone of the repository and then comparing the jar contents -- everything's identical. My template files also include those template definitions it's reporting as missing , so it appears as it should be. So my hunch is it's interference with another installation of antlr on your classpath, in which case perhaps the antlr4ruby script should make sure to unset that environmental variable before executing the java command...
If it is, try temporarily purging your install out of CLASSPATH and retrying
antlr4ruby CPP.g
Thanks for filing these reports -- they're really useful at this stage.
from antlr3.
Your hunch was correct . i had installed antlr3 in (OSX) ~/Library/Java/Extensions before in my frustrated attempts to get it running ...
after i switched to a 1.8.7 ruby runtime most/all of my earlier issues seems to have dissapered ...
thanks
from antlr3.
no problem -- I didn't think having another version just in your class path would interfere since it's all in the same jar, but guess it does ... I should probably modify antlr4rub to work around that since everything ANTLR needs is in that jar. Thanks -- feel free to report any other issues/ questions along the way. Good to hear that most of the drama seems to be wrapped up.
from antlr3.
just to clarify . it was the proper(?) antlr3 -jar and st.jar + antlr3_runtime.jar included ...
do these differ from the antlr4ruby antlr3 .jar in any way ? ...
from antlr3.
The antlr jar at java/antlr-full-3.2.1.jar is essentially the "full" project jar, which contains ST v3, ANTLR2, ANTLR3, GUnit, and the runtime java files -- everything ANTLR needs to run. The only difference is that there's a replacement for the RubyTarget class in the tool's source and there are 6 StringTemplate group files replacing the original Ruby template file it contained.
from antlr3.
Related Issues (20)
- DOT Tree Generation throws exception HOT 3
- Patch (v 1.8.11) for cygwin causes issues on (some) non-cygwin envs HOT 1
- Module Wrapper HOT 2
- Generated TreeParser seems to have wrong qualified base class HOT 1
- How to access the following[] tokens from state? HOT 1
- Tree Parser documentation is empty
- rake antlr doesn't work. it depends on missing 'isolate/installer' HOT 1
- Template output example
- Test rig failure
- bug in CommonTreeNodeStream
- License missing from gemspec HOT 2
- Exception when run "antlr4ruby" in Mac HOT 4
- Composite Grammar HOT 1
- Passing options to imports? HOT 1
- Importing Grammar causes Warning
- Contact info
- Ruby 1.9.1 + antlr3 1.7.5 - mismatched character "+"; expecting "+"? HOT 6
- Does not work on Rubinius HOT 7
- Issues with combined grammars HOT 2
- FreeBSD does not define SOL_TCP, and so cannot remotely debug grammars HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antlr3.