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

Script get stuck at Opening Editor #328

Closed
ViditaRustagi opened this issue Nov 27, 2023 · 2 comments
Closed

Script get stuck at Opening Editor #328

ViditaRustagi opened this issue Nov 27, 2023 · 2 comments

Comments

@ViditaRustagi
Copy link

Screenshot 2023-11-27 at 12 53 47 PM I am trying to fix some eslint errors which are not not fixable by --fix but VS code is giving a quick fix suggestion. When I try to applySuggestion or makeForceFix, both got stuck.
@mizdra
Copy link
Owner

mizdra commented Nov 27, 2023

Thanks for reporting!

eslint-interactive launch the editor specified by EDITOR environment variable. If EDITOR is not set, eslint-interactive launch vi by default.

return process.env['EDITOR'] ?? DEFAULT_EDITOR_COMMAND;

Could you check the value of EDITOR on your terminal?

$ echo $EDITOR

Also, please check whether you have installed vi or not.

$ which vi

@ViditaRustagi
Copy link
Author

Thanks a lot, setting EDITOR variable as code editor, works for me.
export EDITOR="code --wait"
export VISUAL="$EDITOR"

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

No branches or pull requests

2 participants