~reykjalin/public-inbox

1

PHP_CS: No command found with the name "com.thorlaksson.phpcs.commands.getAvailableStandards"

Details
Message ID
<F702238C-79BC-4D48-98A2-C2CEE4BFCFDC@panic.com>
DKIM signature
missing
Download raw message
If you open a Nova project that has been stored in a state without any tabs open, then open its project settings and click on PHP_CodeSniffer, you will get an alert:

	No command found with the name “com.thorlaksson.phpcs.commands.getAvailableStandards”.
	Check to make sure the extension for the command is installed and up to date.

The quickest way to reproduce this is:

1. Create a new empty Finder folder, on your Desktop for example

2. Drag and drop that folder onto Nova's app icon

3. Open the Project Settings

4. Click PHP_CodeSniffer from the Project Settings sidebar

Logan tells me:

--------
The extension’s JavaScript slice is likely not running when the preferences view appears, and the preferences attempt to invoke a JavaScript function to build a dynamic list of values. It should start automatically when this happens, so perhaps there is a timing issue where their command is not being registered fast enough by the extension. 

As by default, extension JavaScript code does not start when you start Nova until it’s needed.

The extension author could remedy this by adding an activation event for that particular command name to the extension.json file, which would ensure that the JavaScript slice starts beforehand. 
--------

Hope this helps!

Steven
Details
Message ID
<89485970-FC1C-45C8-BBBC-2C52E7D59C37@thorlaksson.com>
In-Reply-To
<F702238C-79BC-4D48-98A2-C2CEE4BFCFDC@panic.com> (view parent)
DKIM signature
missing
Download raw message
Hi Steven!

Thanks for the detailed reproduction steps! I’ll try to take a look at this
later this week and apply the fix suggested by Logan.

-Kristófer R.
Reply to thread Export thread (mbox)