Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing Create Command-line Launcher in PhpStorm 2019.1

Tags:

phpstorm

The Tools | Create Command-line Launcher is missing in PhpStorm 2019.1 (cf documentation : https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html#enable-cmd)

Does anyone know how to do it now ? (I'm on MacOS Mojave)

Thanks :)

like image 696
Thlbaut Avatar asked Apr 03 '19 09:04

Thlbaut


People also ask

How do I get Intellij command line?

From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .

How do I start WebStorm from terminal?

This location should be within $PATH so that it can be invoked in the command prompt / terminal. After this is done, you can open a terminal or command prompt and user the "webstorm" command to launch WebStorm with a specific directory.

How do I open PhpStorm?

To run PhpStorm, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin. Run the PhpStorm app from the Applications directory, Launchpad, or Spotlight.

How do I open a project in PhpStorm using command line?

Create launcher script For the Linux and macOS users, PhpStorm suggests the ability to use command line to open projects and separate files by specifying the directory or filename: Select the Create a script for opening files and projects from the command line checkbox, and specify the name of the command-line launcher script to be created.

How do I create a launcher in PhpStorm?

In the main menu, choose . In the Create Launcher Script dialog, provide the name and the path of the launcher, or accept the suggested values. Outside of PhpStorm, add the path and the name of the launcher script to your path.

How do I launch PhpStorm from the toolbox app?

By default, the Toolbox App puts shell scripts in a directory from the system PATH environment variable, so you can run the name of the script as a command to launch PhpStorm from any working directory. Open the Toolbox App and click the Toolbox App menu icon in the top right corner.

How do I run JetBrains PhpStorm?

You can use the Toolbox App to run any JetBrains product. In case of a standalone installation, running PhpStorm depends on the operating system: To run PhpStorm, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin.


1 Answers

The Create Command-line Launcher... action is no longer available when the IDE is installed by Toolbox or Snap (the script hard-codes the installation path which changes with every update). Please see Answer in 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.
like image 141
lena Avatar answered Oct 06 '22 12:10

lena