vite-plugin-vue-inspector icon indicating copy to clipboard operation
vite-plugin-vue-inspector copied to clipboard

Opens nano even VUE_EDITOR is set to phpstorm

Open eboye opened this issue 2 years ago • 3 comments

I've tried exporting the variable in .zshrc

export VUE_EDITOR=/usr/local/bin/phpstorm

and also

export VUE_EDITOR=phpstorm

but it opens the file in nano in the terminal emulator from which it was started.

I'm using:

OS: Arch Linux DE: Gnome 44 TE1: Terminator - installed from official Arch repo (not flatpak or something else) TE2: Gnome Terminal - installed from official Arch repo (not flatpak or something else) IDE: PHPStorm - installed as binary from JetBrains

Any suggestions on what should I try?

eboye avatar Sep 09 '23 01:09 eboye

Same as vscode on mac. OS: macOS Big Sur 11.6 Apple M1 Add export VUE_EDITOR=code or export VUE_EDITOR = /usr/local/bin/code in ~/.zshrc

still open /Applications/Sublime Text.app

devinRex avatar Jan 26 '24 01:01 devinRex

Try LAUNCH_EDITOR instead.

AlexGodbehere avatar Apr 16 '24 16:04 AlexGodbehere

LAUNCH_EDITOR is overwritten in /packages/core/src/index.ts:174 and it goes back to the value from DEFAULT_INSPECTOR_OPTIONS, which is code.

Smef avatar May 17 '24 19:05 Smef

Came here to say that I looked to launch zed editor instead of code (with no luck). IDK if there is an issue to open. If I can, I'll do some research beforehand.

0gust1 avatar May 29 '24 08:05 0gust1

Came here to say that I looked to launch zed editor instead of code (with no luck). IDK if there is an issue to open. If I can, I'll do some research beforehand.

Hi, In the latest version, you can try launchEditor option to specialize the editor.

webfansplz avatar May 29 '24 08:05 webfansplz

Thanks!

Hi, In the latest version, you can try launchEditor option to specialize the editor.

That's what I quickly tried. I'll do my homework (tries and code source read) and will come back if needed.

0gust1 avatar May 29 '24 11:05 0gust1

The env should be LAUNCH_EDITOR, not VUE_EDITOR. I believe the latest versions are now properly using this env value.

Smef avatar May 29 '24 12:05 Smef