Отсутствует средство запуска командной строки в PhpStorm 2019.1 - PullRequest
6 голосов
/ 03 апреля 2019

Tools | Create Command-line Launcher отсутствует в PhpStorm 2019.1 (см. Документацию: https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html#enable-cmd)

Кто-нибудь знает, как это сделать сейчас? (Я на MacOS Mojave)

Спасибо:)

1 Ответ

6 голосов
/ 03 апреля 2019

Действие Create Command-line Launcher ... больше не доступно, если IDE устанавливается с помощью Toolbox или Snap (сценарий жестко кодирует путь установки, который меняется при каждом обновлении). Пожалуйста, см. Ответ в IDEA-206235 :

The change is intentional, as generated launchers contain hard-coded paths and stop working after upgrade.

The recommended solution is using scripts provided by Toolbox (Settings | Generate shell scripts in TB app), which support same options as launchers.

At the moment, TB-generated scripts incorrectly pass arguments to the IDE on macOS, but the team is going to fix this (please follow TBX-3314). 
As a workaround, one may remove leading open -a part from the script.
...