PhpStorm 2019.1中缺少创建命令行启动器

时间:2019-04-03 09:20:31

标签: phpstorm

PhpStorm 2019.1中缺少Tools | Create Command-line Launcher(参见文档:https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html#enable-cmd

有人知道现在该怎么做吗? (我在MacOS Mojave上)

谢谢:)

1 个答案:

答案 0 :(得分:6)

通过Toolbox或Snap安装IDE时,创建命令行启动器... 操作不再可用(脚本对每个更新的安装路径进行硬编码)。 请参阅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.