Closed
Bug 1211483
Opened 9 years ago
Closed 8 years ago
`./mach eslint` should warn if `./mach eslint --setup` is not yet run, or just run it
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: mcomella, Assigned: miker)
Details
The error I received when I hadn't run `--setup` was a stack trace with: "Error: Cannot find module 'eslint-plugin-mozilla'" Which is not intuitive. Patrick, quick fix or mentorable?
Flags: needinfo?(pbrosset)
Reporter | ||
Comment 1•9 years ago
|
||
It might be cleaner just to run it – this would also cover the case where we need to upgrade the dependencies.
Comment 2•9 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #1) > It might be cleaner just to run it – this would also cover the case where we > need to upgrade the dependencies. That's a good point. (In reply to Michael Comella (:mcomella) from comment #0) > The error I received when I hadn't run `--setup` was a stack trace with: > "Error: Cannot find module 'eslint-plugin-mozilla'" > > Which is not intuitive. > > Patrick, quick fix or mentorable? Forwarding this to Mike who worked on bug 1203520
Flags: needinfo?(pbrosset) → needinfo?(mratcliffe)
Assignee | ||
Comment 3•9 years ago
|
||
Interesting... we are better to check if the plugin exists so we can do that.
Assignee: nobody → mratcliffe
Flags: needinfo?(mratcliffe)
Assignee | ||
Comment 4•9 years ago
|
||
Can you try again with the latest version and report any errors?
Reporter | ||
Comment 5•9 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #4) > Can you try again with the latest version and report any errors? Me? How can I unset the `mach eslint --setup` state to try this?
Flags: needinfo?(mratcliffe)
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #5) > (In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #4) > > Can you try again with the latest version and report any errors? > > Me? How can I unset the `mach eslint --setup` state to try this? You don't need to as it will uninstall and then reinstall everything it needs to. You just need to run mach eslint --setup again.
Flags: needinfo?(mratcliffe)
Reporter | ||
Comment 7•9 years ago
|
||
No errors after running: mach eslint --setup mach eslint mobile/android Just to double-check we're on the same page, this bug was initially filed to solve the issue where I ran `mach eslint` without running `--setup` first and I received an unintuitive error.
Comment 8•9 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #4) > Can you try again with the latest version and report any errors? Per Mossop's firefox-dev post on 11/28, it sounds like nothing has changed here -- this is still an issue (for anyone who hasn't ever run ./mach eslint --setup)
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Assignee | ||
Updated•8 years ago
|
Assignee: mratcliffe → nobody
Comment 11•8 years ago
|
||
Fairly sure this is now implemented - Running ./mach eslint without --setup complains if things aren't present and runs the setup version for me after confirmation.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•