phpro / grumphp

A PHP code-quality tool
MIT License
4.11k stars 429 forks source link

Grumphp is not working specifically on Windows #1062

Closed Seema-Kashyap closed 9 months ago

Seema-Kashyap commented 1 year ago
Q A
Version vendor/bin/grumphp -V

GrumPHP 1.15.0

| Bug? | yes/no Yes

| New feature? | yes/no No

| Question? | yes/no Yes

| Documentation? | yes/no No

| Related tickets | comma-separated list of related tickets Grumphp is not working.

As , I am using windows system and the system configuration is processor is Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz 2.30 GHz, RAM is 4GB, System type is 64-bit operating system, x64-based processor and I setup the GRUMPHP on the windows systems. It's setup properly but the issue is that after setup it when i am running the commands for running for run GRUMPHP. It's just In-process and not happing after running the GRUMPHP commands. As I used these commands:- ./vendor/bin/grumphp git:init, ./vendor/bin/grumphp git:pre-commit, ./vendor/bin/grumphp run but after running these all commands nothing is happing. Furthermore, I also updated the php and composer version but still facing same issue.

My configuration

# grumphp.yml
# Please add a copy of your grumphp.yml file.

**Steps to reproduce:**
```sh
# Generate empty folder
mkdir tmp
cd tmp
git init
echo "vendor" > .gitignore

#pbpaste > grumphp.yml
git commit bitbucket-pipelines.yml -n

#composer require --dev phpro/grumphp

# Your actions
# Please add the steps on how to reproduce the issue here.

# Run GrumPHP:
git add -A && git commit -m"Test"
# or
./vendor/bin/grumphp run

Result:


# Please add the result of the run or git commit actions here.

$ composer diagnose
You are running Composer with SSL/TLS protection disabled.
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK git version 2.28.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: WARNING
Composer is configured to disable SSL/TLS protection. This will leave remote HTTPS requests vulnerable to Man-In-The-Middle attacks.
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: Warning: Accessing getcomposer.org over http which is an insecure protocol.
OK
Composer version: 2.5.1
PHP version: 8.1.6
PHP binary path: E:\xampp\php\php.exe
OpenSSL version: OpenSSL 1.1.1n  15 Mar 2022
cURL version: 7.77.0 libz 1.2.12 ssl OpenSSL/1.1.1n
zip: extension present, unzip present, 7-Zip not available
veewee commented 1 year ago

Did you find the source of this issue? I currently don't own a Windows computer and don't have this issues on my testing virtual machine - nor appveyor.

Feel free to provide some additional context.

veewee commented 9 months ago

Closing because of inactivity. If you are blocked by this issue, feel free to reopen an issue.