Giter Site home page Giter Site logo

Templates missing ? about antlr3 HOT 5 CLOSED

ohboyohboyohboy avatar ohboyohboyohboy commented on August 22, 2024
Templates missing ?

from antlr3.

Comments (5)

ohboyohboyohboy avatar ohboyohboyohboy commented on August 22, 2024

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.

xraid avatar xraid commented on August 22, 2024

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.

ohboyohboyohboy avatar ohboyohboyohboy commented on August 22, 2024

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.

xraid avatar xraid commented on August 22, 2024

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.

ohboyohboyohboy avatar ohboyohboyohboy commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.