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

Not find the commands inside bin #103

Open
gfirem opened this issue Sep 10, 2017 · 8 comments
Open

Not find the commands inside bin #103

gfirem opened this issue Sep 10, 2017 · 8 comments

Comments

@gfirem
Copy link

gfirem commented Sep 10, 2017

Hi i love your project. Is not working for me. I set the bin config in the json but it don't find the folder inside vendor/bin. I remove and is the same error. Exist some place where i can read more about the issue?
i always get the next error message.
Could not open input file: bin/jsonlint and if i disable Could not open input file: bin/phpunit or if i enable composer it throw other Composer files not found

@danitome24
Copy link
Contributor

Have you added this to composer.json?:

"config": {
    "bin-dir": "bin"
}

Have you typed composer install after that?

Try to create bin dir if it does not exists and run it again

@gfirem
Copy link
Author

gfirem commented Sep 11, 2017

I do it. I put to bin also to vendor/bin in my project i already have a bin folder with a script for unit test. When i put that config in the package.json it throw an error. Thanks for your help i want to make it work

@danitome24
Copy link
Contributor

You have to put this config line in composer.json file, not in package.json

@gfirem
Copy link
Author

gfirem commented Sep 11, 2017

Sorry i refer to composer.json.

@danitome24
Copy link
Contributor

Can you paste your error?

@bruli
Copy link
Owner

bruli commented Sep 20, 2017

@gfirem it works in your project?.

@maxfontana90
Copy link

@bruli I just pulled your project as a dependency into my application and I'm experiencing the same issue as @gfirem. I see in the console that its complaining about not locating the binaries.

Dump:

Pre-Commit tool
Running PHPLINT...................................0K
Checking code style with PHPCS....................
Fail

Could not open input file: bin/phpcs

I found where the issue is and the problem is here:

return 'bin'.DIRECTORY_SEPARATOR.$tool;

Its missing the vendor/ prefix.

Also looks like you wanted to bootstrap the composer/installed.json file and populate the installedPackages array to search for the binaries inside the package's folder but didn't finish the task.

@maxfontana90
Copy link

Its worth to mention that specifying the bin dir in composer.json isn't working for me right now, so I guess that is the problem. I still see the binaries inside vendor/bin.

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

4 participants