You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot open components with webstorm: spawn webstorm ENOENT. #9
3 years late here but for anyone who may come across this from Google trying to fix that vim issue.
If you set the env variable EDITOR="webstorm" it will open as expected. On Mac I've added this to my .zshrc:
# Adds support for various open in editor features in toolsexport EDITOR="webstorm"if [[ "$__CFBundleIdentifier"== com.jetbrains.* ]]
then# Removes "com.jetbrains." from the beginning of string# Then removes "-EAP" from end of string if neededexport EDITOR="${${__CFBundleIdentifier#"com.jetbrains."}%"-EAP"}"fi
Should detect which JetBrains tool you're using and set it accordingly. (Defaulting to webstorm)
If you only need Webstorm support you can add the env variable in the Terminal preferences inside Webstorm.
3 years late here but for anyone who may come across this from Google trying to fix that vim issue.
If you set the env variable EDITOR="webstorm" it will open as expected. On Mac I've added this to my .zshrc:
# Adds support for various open in editor features in toolsexport EDITOR="webstorm"if [[ "$__CFBundleIdentifier"== com.jetbrains.* ]]
then# Removes "com.jetbrains." from the beginning of string# Then removes "-EAP" from end of string if neededexport EDITOR="${${__CFBundleIdentifier#"com.jetbrains."}%"-EAP"}"fi
Should detect which JetBrains tool you're using and set it accordingly. (Defaulting to webstorm)
If you only need Webstorm support you can add the env variable in the Terminal preferences inside Webstorm.
@jdf221 I'd tip my hat to you sir, I've been fighting this issue since day-1 with macOS+Webstorm, your solution works like a charm (tested using Webstorm 2021.2 | error msg before: Error: spawn docker ENOENT)
Activity
Amorites commentedon Sep 4, 2018
solved by #4 (comment)
bokub commentedon Sep 4, 2018
Helps a little bit but it still doesn't work completely
After doing what's suggested in #4 , I can run
webstorm myFile.vue, and it works great.However, using your plugin, the file is opened with vim in the 'Terminal' tab of WebStorm, it's very strange...

jdf221 commentedon Jul 5, 2021
3 years late here but for anyone who may come across this from Google trying to fix that vim issue.
If you set the env variable
EDITOR="webstorm"it will open as expected. On Mac I've added this to my.zshrc:Should detect which JetBrains tool you're using and set it accordingly. (Defaulting to
webstorm)If you only need Webstorm support you can add the env variable in the Terminal preferences inside Webstorm.
Note: You may need to setup the shell script command launcher for the relevant program. I use JetBrains Toolbox so they're generated automatically in my path. https://www.jetbrains.com/help/webstorm/working-with-the-ide-features-from-command-line.html
icacho commentedon Oct 25, 2021
@jdf221 I'd tip my hat to you sir, I've been fighting this issue since day-1 with macOS+Webstorm, your solution works like a charm (tested using
Webstorm 2021.2| error msg before:Error: spawn docker ENOENT)vjpr commentedon Apr 17, 2024
Issue is that Jetbrains toolbox seems to use shell scripts shims/wrappers that run the binary.
launch-editorexpects a binary.launch-editorshould handle shell scripts.