Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-cli can't be found when globally installed #63

Closed
1 of 2 tasks
Chris2011 opened this issue Mar 28, 2018 · 3 comments
Closed
1 of 2 tasks

wp-cli can't be found when globally installed #63

Chris2011 opened this issue Mar 28, 2018 · 3 comments
Assignees

Comments

@Chris2011
Copy link
Contributor

Issue type

  • Bug
  • Enhancement

Overview description

I installed wp-cli via composer with composer global require wp-cli/wp-cli. When I click search in NetBeans, it says: No wp-cli scripts found.

The paths, where it was installed are:

C:\Users\Chrl\AppData\Roaming\Composer\vendor\bin\wp
C:\Users\Chrl\AppData\Roaming\Composer\vendor\bin\wp.bat

Steps to reproduce

  1. Open NetBeans with WordPress plugin
  2. Install composer
  3. Install wp-cli via composer composer global require wp-cli/wp-cli
  4. Go th NetBeans options -> PHP -> Frameworks & Tools -> WordPress
  5. Click on Search

Actual results

An popup opens and it says: No wp-cli scripts found

Expected results

It should appear inside the browse input field.

Your environment (NetBeans and plugin version, e.t.c.)

Windows 10, NetBeans 8.2, WordPress Plugin 0.9.2, PHP 7.1.1

@Chris2011
Copy link
Contributor Author

Chris2011 commented Mar 28, 2018

Maybe it is because of an old path or changed name. The plugin should handle the old variant and the new path/name. If there was a change. Now it is wp or wp.bat. As far as I can see, you expect wp or wp-cli.phar

junichi11 added a commit that referenced this issue Mar 28, 2018
@junichi11 junichi11 self-assigned this Mar 28, 2018
@junichi11
Copy link
Owner

Done. https://github.com/junichi11/netbeans-wordpress-plugin/releases/tag/v0.9.3 0.9.3.1-dev

NOTE: Probably, you have to add C:\Users\Chrl\AppData\Roaming\Composer\vendor\bin to your PATH (Path environment variable).

@Chris2011
Copy link
Contributor Author

Thx for the hint, the composer executable, does it automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants