Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhino command line version doesn't work (MacOS) #3587

Open
archiecobbs opened this issue Dec 13, 2021 · 2 comments
Open

Rhino command line version doesn't work (MacOS) #3587

archiecobbs opened this issue Dec 13, 2021 · 2 comments

Comments

@archiecobbs
Copy link

archiecobbs commented Dec 13, 2021

I'm probably doing something dumb....

$ pwd
/Users/archie/Downloads/jshint-2.13.1
$ which rhino
/opt/homebrew/bin/rhino
$ brew info rhino
Warning: Treating rhino as a formula. For the cask, use homebrew/cask/rhino
rhino: stable 1.7.13 (bottled)
JavaScript engine
https://www.mozilla.org/rhino/
Conflicts with:
  nut (because both install `rhino` binaries)
/opt/homebrew/Cellar/rhino/1.7.13 (401 files, 12.7MB) *
  Poured from bottle on 2021-12-13 at 11:48:31
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/rhino.rb
License: MPL-2.0
==> Dependencies
Required: openjdk@11 ✔
==> Analytics
install: 71 (30 days), 206 (90 days), 1,085 (365 days)
install-on-request: 71 (30 days), 205 (90 days), 1,079 (365 days)
build-error: 0 (30 days)
$ cat bad.js 
var xx = {
    blah: blah;
}
$ ./dist/jshint-rhino.js bad.js
$
$ rhino dist/jshint-rhino.js bad.js 
$

What am I missing?

@jugglinmike
Copy link
Member

Hi there, Archie. JSHint's support for Rhino has been broken for quite some time. A contributor attempted to fix it years ago via gh-2855, but that patch has since gone stale.

@archiecobbs
Copy link
Author

OK thanks for the info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants