Giter Site home page Giter Site logo

"JSON" error about jsdoc HOT 3 CLOSED

btipling avatar btipling commented on May 5, 2024
"JSON" error

from jsdoc.

Comments (3)

micmath avatar micmath commented on May 5, 2024

This same issue has come up twice before and it's starting to make me worry about using Rhino now. In both the other cases the OS was Mac. Can you confirm what your OS is?

In fact this same problem bit me about a year ago when I first started working with the newest version of Rhino, and like you I was convinced I had no other Rhinos installed to interfere. But here's how you can prove that one way or another: open a terminal and cd to the jsdoc directory. Enter the following command:
$ java org.mozilla.javascript.tools.shell.Main

If you 1) get an error because there is no Rhino found, or 2) if you see a message about like "Rhino 1.7 release 3 PRERELEASE 2010 03 24" then you are correct and no other Rhino is interfering.

However if you don't get an error, and you see a message about an earlier version of Rhino, then you do have another version of Rhino installed somewhere. If you are on a Mac I can tell you some places to look, but first try the test I described above.

from jsdoc.

btipling avatar btipling commented on May 5, 2024

I am on a mac, I'll try what you said monday. Thank you.

from jsdoc.

micmath avatar micmath commented on May 5, 2024

If you find that another Rhino is being run, have a look in the ~/Library/Java/Extensions/ directory for something named js.jar. On a Mac that folder is special because any classes found there will always take precedence over any other that you are trying to import. You can either remove the offending Rhino or replace it with a copy of the newer one.

from jsdoc.

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.